Skip to content

engine: register all current Zen SKUs in ModelRegistry - #7

Merged
hanzo-dev merged 1 commit into
mainfrom
zen-sku-registry-fill-2026-05
May 30, 2026
Merged

hanzo-dev merged 1 commit into
mainfrom
zen-sku-registry-fill-2026-05

Conversation

@hanzo-dev

Copy link
Copy Markdown
Member

Summary

  • Adds mistralrs-server-core::model_registry as the single source of truth mapping every Zen SKU (zen3-*, zen4-*, zen5-*) to its HF source repo, backend arch, optional quant, and modality.
  • SKU set mirrors the intersection of zen-gateway/gateway/config.yaml::model_list 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 on main are recorded as ArchKind::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 on zen5/deepseek4, not yet merged to main)
    • zen5-nano-{0.8B,2B,4B,9B}, all zen3-vl-* -> qwen3-vl
    • zen3-asr, zen3-asr-0.6B, zen3-asr-aligner -> qwen3-asr
    • zen3-tts, zen3-tts-0.6B, zen3-tts-voice-design, zen3-tts-custom-voice -> qwen3-tts
    • zen3-omni -> qwen3-omni
    • zen4-max, zen4.1, zen4-mini -> proprietary upstreams (Anthropic / OpenAI); not portable.

Flipping any Unsupported to Supported is a one-line change once the arch lands in mistralrs-core.

Notes

  • No existing arch implementations were touched; this PR is registry entries only.
  • 4 unit tests cover SKU uniqueness, known-SKU resolution, explicit unsupported names, and the invariant that every supported arch name matches a real NormalLoaderType variant.
  • cargo check -p mistralrs-server-core and cargo test -p mistralrs-server-core --lib model_registry both pass locally.

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]>
@github-actions

Copy link
Copy Markdown
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

@hanzo-dev
hanzo-dev merged commit eceb4aa into main May 30, 2026
1 of 2 checks passed
@hanzo-dev
hanzo-dev deleted the zen-sku-registry-fill-2026-05 branch May 30, 2026 02:58
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]>
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.

2 participants