Skip to content

feat: inferencing default, automatic tool parsing fallback and wire min_p#9092

Merged
mudler merged 6 commits into
masterfrom
feat/inferencing-defaults
Mar 21, 2026
Merged

feat: inferencing default, automatic tool parsing fallback and wire min_p#9092
mudler merged 6 commits into
masterfrom
feat/inferencing-defaults

Conversation

@mudler

@mudler mudler commented Mar 21, 2026

Copy link
Copy Markdown
Owner

Description

This PR takes inspiration from unsloth and enables fallback of automatic parsing of tool calls even if not specified. It was actually already at the back of my head, but always forgot to have a look at it. This is gated via variable so this behavior can be disabled (enabled by default). Basically we wire already to the parser we have, even if the user didn't passed any specific tool calls. This alleviate tool call issues with models that hallucinate or are relatively small.

Besides, it wires min_p correctly, and introduces inferencing defaults for models. It piggies back to unsloth, I've give it a thought and even if this is something I was willing to maintain myself, and I've tried already in the past, it's much better to align with other projects and contribute there as necessary so we avoid maintenance burden.

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

mudler added 4 commits March 21, 2026 17:31
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Instead of trying to re-invent the wheel and maintain here the inference
defaults, prefer to consume unsloth ones, and contribute there as
necessary.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@netlify

netlify Bot commented Mar 21, 2026

Copy link
Copy Markdown

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 178eaf7
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69bf0a94960c87000848ed0a
😎 Deploy Preview https://deploy-preview-9092--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

mudler added 2 commits March 21, 2026 17:43
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler force-pushed the feat/inferencing-defaults branch from c4df162 to 178eaf7 Compare March 21, 2026 21:16
@mudler mudler added the enhancement New feature or request label Mar 21, 2026
@mudler mudler merged commit 031a36c into master Mar 21, 2026
43 of 45 checks passed
@mudler mudler deleted the feat/inferencing-defaults branch March 21, 2026 23:57
localai-bot pushed a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
…in_p (mudler#9092)

* feat: wire min_p

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* feat: inferencing defaults

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* chore(refactor): re-use iterative parser

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* chore: generate automatically inference defaults from unsloth

Instead of trying to re-invent the wheel and maintain here the inference
defaults, prefer to consume unsloth ones, and contribute there as
necessary.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* chore: apply defaults also to models installed via gallery

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* chore: be consistent and apply fallback to all endpoint

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant