core/config/gen_inference_defaults/README.md
This tool fetches per-model-family inference parameter defaults from unsloth's inference_defaults.json, validates the data, remaps field names to LocalAI conventions, and writes core/config/inference_defaults.json.
inference_defaults.json from unsloth's repotemperature, top_p, top_k)repetition_penalty → repeat_penalty (LocalAI naming)temperature, top_p, top_k, min_p, repeat_penalty, presence_penaltycore/config/inference_defaults.json# Only regenerate if the file is missing (runs during make build)
make generate
# Force re-fetch from unsloth
make generate-force
# Or directly via go generate
go generate ./core/config/...
The GitHub Actions workflow .github/workflows/bump-inference-defaults.yml runs make generate-force daily and opens a PR if the upstream data changed.