Repository navigation
Add Qwen2.5 Coder model support to registry and chat templates - #4221
Conversation
This comment has been minimized.
This comment has been minimized.
This comment was marked as low quality.
This comment was marked as low quality.
# Conflicts: # unsloth/chat_templates.py # unsloth/registry/_qwen.py
|
@codex review |
|
@codex security review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3615b18a08
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| DEFAULT_SYSTEM_MESSAGE["qwen2.5"] = qwen25_default_system_message | ||
|
|
||
| qwen25_coder_ollama = _ollama_template("qwen-25-coder") | ||
| CHAT_TEMPLATES["qwen-2.5-coder"] = (qwen25_template, qwen25_template_eos_token, False, qwen25_coder_ollama,) |
There was a problem hiding this comment.
Register the qwen-25-coder alias
Add the hyphenated qwen-25-coder spelling alongside these aliases. This is the established name in both OLLAMA_TEMPLATES and OLLAMA_TEMPLATE_TO_MODEL_MAPPER, and the adjacent base Qwen template accepts the corresponding qwen-25 spelling; callers that therefore pass qwen-25-coder to get_chat_template() currently get a KeyError because that function indexes CHAT_TEMPLATES directly.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 4b9752a: added the qwen-25-coder alias with the coder Ollama modelfile.
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Replacement for #3436 due to Studio rebasing.
Qwen_2_5_CoderMeta,register_qwen_2_5_coder_models, called fromregister_qwen_models).NONEandBNBonly. There are nounsloth/Qwen2.5-Coder-*-unsloth-bnb-4bituploads, so registeringUNSLOTHadded 12 ids that do not exist on the Hub and failedtests/test_model_registry.py.qwen-2.5-coder,qwen-25-coder,qwen2.5-coderandqwen25-coderchat template aliases. They reuse the Qwen2.5 Jinja template, which renders identically to the Qwen2.5-Coder tokenizer's own template, and use the existingqwen-25-coderOllama modelfile, which includes the FIM (.Suffix) path.unsloth/registry/REGISTRY.md.All 47 existing chat template keys are unchanged.