Repository navigation
chore: models 2026 refresh - #207
Conversation
WalkthroughThe change expands model metadata extraction for additional model families, architectures, aliases, publishers, and quantisation formats. Embedded defaults mirror the YAML configuration, and tests cover extraction, capability inference, normalisation, and fallback behaviour. ChangesModel metadata recognition
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/adapter/unifier/metadata_extractor_test.go`:
- Around line 312-321: Update extractFamilyAndVariant so a recognized model-name
family takes precedence over an ambiguous architecture mapping, ensuring
kimi-k2-instruct resolves to "kimi" even when arch is "deepseek". Use
ArchitectureMappings only when name-pattern matching yields a generic or unknown
family, and update the affected test expectation and comments accordingly.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: a18a6653-183e-41c1-8d20-7a40177cb883
📒 Files selected for processing (4)
config/models.yamlinternal/adapter/unifier/metadata_extractor_test.gointernal/adapter/unifier/model_config.gointernal/adapter/unifier/model_config_test.go
| // Known limitation, not a bug to fix here: Kimi-K2 GGUF files often | ||
| // report general.architecture "deepseek2" (Kimi-K2 and DeepSeek-V3 | ||
| // share the same underlying transformer architecture), so | ||
| // architecture-based extraction misclassifies a Kimi model as | ||
| // "deepseek" whenever arch metadata is present - architecture-based | ||
| // lookup is tried before name-pattern matching in | ||
| // extractFamilyAndVariant, so it wins over the "kimi" pattern. | ||
| // ArchitectureMappings is a flat 1:1 table, so this ambiguity is | ||
| // unavoidable without a redesign - out of scope for this pass. | ||
| {"kimi model with deepseek arch (known collision)", "kimi-k2-instruct", "deepseek", "deepseek", ""}, |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Do not preserve the Kimi misclassification.
When arch is "deepseek", this test accepts "deepseek" for kimi-k2-instruct. The unifier then stores the wrong family in the unified model. Prefer a recognised model-name family over an ambiguous architecture mapping. Use architecture mapping only when the name is generic or unknown.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/adapter/unifier/metadata_extractor_test.go` around lines 312 - 321,
Update extractFamilyAndVariant so a recognized model-name family takes
precedence over an ambiguous architecture mapping, ensuring kimi-k2-instruct
resolves to "kimi" even when arch is "deepseek". Use ArchitectureMappings only
when name-pattern matching yields a generic or unknown family, and update the
affected test expectation and comments accordingly.
Updates the latest models catalog for 2026 based on Alloy and FoundryOS tickers.
Summary by CodeRabbit