Fix llama-server router mode removes "UD-" prefix from auto-discovere… - #24695
Fix llama-server router mode removes "UD-" prefix from auto-discovere…#24695adityabagchi24 wants to merge 1 commit into
Conversation
…d unsloth model names
|
This is not a bug, the real tag is Q4_K_XL, there is no |
@angt how? Unsloth uses |
|
That's why they use |
|
@angt Thank you for the explanation. But with that implementation in place I will always have two entries for the same model in the API response /v1/models. As it is impossible to have the name/id matching from the cache and in the preset. Is that true or have I missed something? Example This results in a two models from a API call to /v1/models:
From an end user perspective this does not help two have two models displayed in a frontend. |
|
I guess we need to fix the places where |
|
@angt please check this commit once as this did fix it |
|
|
|
@itn3rd77 stripping |
Overview
Fix an issue in
llama-serverrouter mode where auto-discovered Unsloth models lose theUD-prefix in their generated model IDs.Previously, a model downloaded with:
would be auto-discovered in router mode as:
instead of the expected:
This caused the generated model ID, alias, and
hf-repovalue to differ from the original repository identifier even though the GGUF filename correctly contained theUD-prefix.The fix preserves the full quantization suffix when constructing model identifiers for auto-discovered Hugging Face models, ensuring Unsloth models retain their correct names.
Fixes #24690.
Additional information
The issue was reproducible with Unsloth GGUF models using quantization variants such as
UD-Q4_K_XL. Router mode incorrectly stripped theUD-portion during model discovery, resulting in mismatched model IDs and launch arguments.Requirements