Repository navigation
engine: register all current Zen SKUs in ModelRegistry - #7
Merged
Merged
Conversation
Adds mistralrs-server-core::model_registry as the single source of truth mapping every Zen SKU (zen3-*, zen4-*, zen5-*) to its HF source repo (zenlm/*), backend arch, optional quant variant, and modality. Mirrors the intersection of zen-gateway config.yaml and pricing/src/models.mjs zenCatalog so /v1/messages and /v1/chat/completions can resolve user- facing model names without each handler re-implementing the map. Supported arches route to in-tree NormalLoaderType variants (qwen3, qwen3moe, deepseekv3, glm4moe, llama, mixtral, gpt_oss). Arches not yet ported (deepseek-v4-flash for zen5-pro/max/ultra, qwen3-vl for zen5-nano-* / zen3-vl-*, qwen3-asr, qwen3-tts, qwen3-omni) are recorded as ArchKind::Unsupported with the planned arch name so handlers can return a clean 501 with a useful pointer instead of a 500 from deep in the loader. Flipping these to Supported is a one-line change once the arch lands in mistralrs-core. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Code Metrics Report━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Language Files Lines Code Comments Blanks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ C Header 5 305 210 52 43 CSS 5 1462 1288 39 135 CUDA 60 20622 16570 1656 2396 Dockerfile 1 38 21 8 9 JavaScript 19 3972 3089 488 395 Jinja2 7 694 656 5 33 JSON 27 9400 9397 0 3 Makefile 1 6 5 0 1 MDX 1 147 0 132 15 Metal Shading Lan| 34 13466 10542 1117 1807 PowerShell 1 300 227 30 43 Python 131 10161 8357 462 1342 Shell 4 948 765 106 77 Plain Text 3 3723 0 2413 1310 TOML 30 1427 1237 46 144 TypeScript 11 1607 1371 66 170 YAML 4 41 39 2 0 ───────────────────────────────────────────────────────────────────────────────── HTML 4 782 695 38 49 |- CSS 1 578 544 14 20 |- JavaScript 1 24 23 0 1 (Total) 1384 1262 52 70 ───────────────────────────────────────────────────────────────────────────────── Jupyter Notebooks 3 122 83 23 16 |- Markdown 1 60 30 22 8 |- Python 1 122 113 1 8 (Total) 304 226 46 32 ───────────────────────────────────────────────────────────────────────────────── Markdown 210 19178 0 13456 5722 |- BASH 123 1399 1090 190 119 |- Dockerfile 3 6 6 0 0 |- JSON 35 1175 1175 0 0 |- PowerShell 5 7 7 0 0 |- Python 45 1717 1459 65 193 |- Rust 64 2423 2048 56 319 |- TOML 16 318 250 4 64 |- YAML 3 18 17 1 0 (Total) 26241 6052 13772 6417 ───────────────────────────────────────────────────────────────────────────────── Rust 601 260732 230046 6654 24032 |- Markdown 399 9598 454 7978 1166 (Total) 270330 230500 14632 25198 ───────────────────────────────────────────────────────────────────────────────── Svelte 18 1831 1696 50 85 |- CSS 1 4 4 0 0 |- JavaScript 18 876 727 24 125 (Total) 2711 2427 74 210 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Total 1180 369289 294241 35198 39850 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
zeekay
pushed a commit
that referenced
this pull request
Jul 26, 2026
Adds mistralrs-server-core::model_registry as the single source of truth mapping every Zen SKU (zen3-*, zen4-*, zen5-*) to its HF source repo (zenlm/*), backend arch, optional quant variant, and modality. Mirrors the intersection of zen-gateway config.yaml and pricing/src/models.mjs zenCatalog so /v1/messages and /v1/chat/completions can resolve user- facing model names without each handler re-implementing the map. Supported arches route to in-tree NormalLoaderType variants (qwen3, qwen3moe, deepseekv3, glm4moe, llama, mixtral, gpt_oss). Arches not yet ported (deepseek-v4-flash for zen5-pro/max/ultra, qwen3-vl for zen5-nano-* / zen3-vl-*, qwen3-asr, qwen3-tts, qwen3-omni) are recorded as ArchKind::Unsupported with the planned arch name so handlers can return a clean 501 with a useful pointer instead of a 500 from deep in the loader. Flipping these to Supported is a one-line change once the arch lands in mistralrs-core. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
hanzo-dev
added a commit
that referenced
this pull request
Jul 27, 2026
Adds mistralrs-server-core::model_registry as the single source of truth mapping every Zen SKU (zen3-*, zen4-*, zen5-*) to its HF source repo (zenlm/*), backend arch, optional quant variant, and modality. Mirrors the intersection of zen-gateway config.yaml and pricing/src/models.mjs zenCatalog so /v1/messages and /v1/chat/completions can resolve user- facing model names without each handler re-implementing the map. Supported arches route to in-tree NormalLoaderType variants (qwen3, qwen3moe, deepseekv3, glm4moe, llama, mixtral, gpt_oss). Arches not yet ported (deepseek-v4-flash for zen5-pro/max/ultra, qwen3-vl for zen5-nano-* / zen3-vl-*, qwen3-asr, qwen3-tts, qwen3-omni) are recorded as ArchKind::Unsupported with the planned arch name so handlers can return a clean 501 with a useful pointer instead of a 500 from deep in the loader. Flipping these to Supported is a one-line change once the arch lands in mistralrs-core. Co-authored-by: Antje Worring <[email protected]>
zeekay
added a commit
that referenced
this pull request
Sep 15, 2026
Adds mistralrs-server-core::model_registry as the single source of truth mapping every Zen SKU (zen3-*, zen4-*, zen5-*) to its HF source repo (zenlm/*), backend arch, optional quant variant, and modality. Mirrors the intersection of zen-gateway config.yaml and pricing/src/models.mjs zenCatalog so /v1/messages and /v1/chat/completions can resolve user- facing model names without each handler re-implementing the map. Supported arches route to in-tree NormalLoaderType variants (qwen3, qwen3moe, deepseekv3, glm4moe, llama, mixtral, gpt_oss). Arches not yet ported (deepseek-v4-flash for zen5-pro/max/ultra, qwen3-vl for zen5-nano-* / zen3-vl-*, qwen3-asr, qwen3-tts, qwen3-omni) are recorded as ArchKind::Unsupported with the planned arch name so handlers can return a clean 501 with a useful pointer instead of a 500 from deep in the loader. Flipping these to Supported is a one-line change once the arch lands in mistralrs-core. Co-authored-by: Antje Worring <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
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
mistralrs-server-core::model_registryas the single source of truth mapping every Zen SKU (zen3-*,zen4-*,zen5-*) to its HF source repo, backend arch, optional quant, and modality.zen-gateway/gateway/config.yaml::model_listandpricing/src/models.mjs::zenCatalogso/v1/messagesand/v1/chat/completionscan resolve user-facing model names without each handler re-implementing the map.NormalLoaderTypevariants:qwen3,qwen3moe,deepseekv3,glm4moe,llama,mixtral,gpt_oss.mainare recorded asArchKind::Unsupported(planned_name)so handlers can return a clean 501 instead of a 500 from deep in the loader. Affected SKUs:zen5-pro,zen5-max,zen5-ultra->deepseek-v4-flash/deepseek-v4-pro(the DS4 port lives onzen5/deepseek4, not yet merged tomain)zen5-nano-{0.8B,2B,4B,9B}, allzen3-vl-*->qwen3-vlzen3-asr,zen3-asr-0.6B,zen3-asr-aligner->qwen3-asrzen3-tts,zen3-tts-0.6B,zen3-tts-voice-design,zen3-tts-custom-voice->qwen3-ttszen3-omni->qwen3-omnizen4-max,zen4.1,zen4-mini-> proprietary upstreams (Anthropic / OpenAI); not portable.Flipping any
UnsupportedtoSupportedis a one-line change once the arch lands inmistralrs-core.Notes
NormalLoaderTypevariant.cargo check -p mistralrs-server-coreandcargo test -p mistralrs-server-core --lib model_registryboth pass locally.