Skip to content

chore: models 2026 refresh - #207

Merged
thushan merged 3 commits into
mainfrom
feature/models-2026-refresh
Aug 5, 2026
Merged

thushan merged 3 commits into
mainfrom
feature/models-2026-refresh

Conversation

@thushan

@thushan thushan commented Aug 5, 2026 •

Copy link
Copy Markdown
Owner

Updates the latest models catalog for 2026 based on Alloy and FoundryOS tickers.

Summary by CodeRabbit

  • New Features
    • Added support for recognising a wider range of model families and variants, including GPT-OSS, GLM, Kimi, Granite, Nemotron, EXAONE, Hunyuan, MiniMax, OLMo, InternLM, SmolLM, Command-R and Forge.
    • Improved identification of model publishers, architectures and family aliases.
    • Added recognition for MXFP4 and NVFP4 quantisation formats.
    • Improved capability detection for newly supported models.

@thushan thushan self-assigned this Aug 5, 2026
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The 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.

Changes

Model metadata recognition

Layer / File(s) Summary
Model configuration mappings
config/models.yaml
Adds extraction patterns, architecture mappings, family aliases, publisher mappings, and MXFP4/NVFP4 quantisation mappings.
Embedded default mappings
internal/adapter/unifier/model_config.go
Mirrors the expanded model family, alias, architecture, publisher, and quantisation mappings in embedded defaults.
Metadata extraction validation
internal/adapter/unifier/*_test.go
Adds coverage for new model families, publishers, variants, capabilities, quantisation formats, architecture collisions, and dynamic fallback pattern counts.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • thushan/olla#206: Both changes update model family and mapping definitions in config/models.yaml and model_config.go.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: a 2026 refresh of the model catalogue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/models-2026-refresh

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between ee08930 and b0a558e.

📒 Files selected for processing (4)
  • config/models.yaml
  • internal/adapter/unifier/metadata_extractor_test.go
  • internal/adapter/unifier/model_config.go
  • internal/adapter/unifier/model_config_test.go

Comment on lines +312 to +321
// 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", ""},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.

@thushan
thushan merged commit a268548 into main Aug 5, 2026
5 checks passed
@thushan
thushan deleted the feature/models-2026-refresh branch August 5, 2026 11:00
@thushan thushan mentioned this pull request Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant