[WIP] Qwen2.5 7B on-device code docstrings generation for macOS Silicon#8
Open
[WIP] Qwen2.5 7B on-device code docstrings generation for macOS Silicon#8
Conversation
- Add model configuration registry (src/training/models.py) with SamplingConfig and ModelConfig dataclasses - Support Qwen 2.5 Coder (7B, 14B, 32B) and Qwen3 Coder 30B-A3B (MoE) - Add per-request model selection via API and environment variable - Apply model-specific sampling parameters (Qwen3 uses temp=1.0, top_p=0.95) - Add /models endpoint to list available configurations - Update health endpoint to report active model info - Add --model-key and --list-models CLI options - Add .gitattributes for cross-platform line endings - Add Windows PowerShell/CMD examples in documentation - Add 48 new tests (20 for models, 10 for serve model selection) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4 tasks
Add multi-model support for Qwen 2.5 and Qwen3 Coder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enabling multiple Qwen Coder models.
Changes
Model Configuration Registry (
src/training/models.py)SamplingConfigandModelConfigdataclassesAPI Enhancements (
src/training/serve.py)modelparameter/modelsendpoint to list available configurationskeep_alivesettings (300s for MoE models)CLI Improvements (
scripts/run_ollama.py)--model-keyfor registry-based model selection--list-modelsto display available modelsCross-Platform Support
.gitattributesfor consistent line endingsAvailable Models
qwen2.5-coder-32bqwen2.5-coder-14bqwen2.5-coder-7bqwen3-coder-30bTest plan
🤖 Generated with Claude Code