Skip to content

Commit 2605d6d

Browse files
justinchubyCopilot
andauthored
Add exact Hunyuan V3 GGUF graph support (#679)
## Summary - add dedicated `hy_v3` trunk and NextN graph/task implementations from authoritative Tencent Transformers and llama.cpp semantics rather than aliasing a neighboring architecture - implement full attention, per-head Q/K RMSNorm, ordinary pre-norm residual blocks (the official model has no hyper-connections), a contiguous dense prefix, and selection-biased sigmoid routed SwiGLU experts with an always-on ungated shared expert - emit one independently cached MTP block for combined artifacts while accepting llama.cpp target-only split artifacts without a sidecar; reject static cache only when the physical MTP head is present - enforce exact tensor/shape closure, fused and split QKV/expert layouts, explicit-float router/norm/correction tensors, and fail-closed quantized-import classification - update GGUF route census, pinned llama.cpp capability evidence, generated docs, registry coverage, and revision-neutral routing ## Evidence Authoritative semantics were checked against Tencent's official HyV3 Transformers implementation and pinned llama.cpp source. The official checkpoint is approximately 600 GiB (112 shards near 5.36 GiB each), so no representative artifact under the 16 GiB policy limit exists and no payload was pinned or downloaded. - focused GGUF suite: 3407 passed, 1 skipped - focused HyV3 graph/parity/registry selection: 5 passed, 1 skipped - broad serial non-integration suite: 8641 passed, 64 skipped, 12 deselected - post-review builder/MTP/HyV3 regression selection: 558 passed - formatter/linter: clean - targeted mypy for the three new production modules: clean - independent final review: no high-confidence findings ## Deferred evidence / waivers - real-weight L3 parity is unavailable because no immutable representative artifact is within 16 GiB; bounded header/source evidence is used instead - L4 golden and L5 generation, ORT GenAI downstream runtime, CUDA, Foundry Local, and Olive validation remain runtime-deferred pending an admissible artifact and runtime resources - quantized preservation is intentionally rejected because the separate selection/mixing scores and required tensor transforms cannot be represented exactly by the current quantized ABI - repository-wide mypy remains blocked by unrelated pre-existing diagnostics; the new HyV3 model, task, and exact validator modules pass targeted strict checking Production routing does not pin, default, reject, or special-case Hugging Face revisions by model ID: `revision=None` remains normal and arbitrary explicit revisions continue to forward. --------- Signed-off-by: Justin Chu <[email protected]> Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4d631b7b-5551-4cbd-bd00-4e53f18bf75e
1 parent e8f1ad0 commit 2605d6d

26 files changed

Lines changed: 1983 additions & 52 deletions

‎docs/api/build_from_gguf.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Support is capability-specific: graph import does not imply runtime packaging.
99

1010
| Census | Total | Closure |
1111
|---|---:|---|
12-
| Architectures | 148 | graph verdicts: {'deferred': 47, 'rejected': 2, 'supported': 99}; importable: 98; quantized import: {'rejected': 40, 'supported': 108}; runtime: {'deferred': 142, 'rejected': 2, 'supported': 4} |
12+
| Architectures | 148 | graph verdicts: {'deferred': 46, 'rejected': 2, 'supported': 100}; importable: 99; quantized import: {'rejected': 41, 'supported': 107}; runtime: {'deferred': 142, 'rejected': 2, 'supported': 4} |
1313
| Active stored qtypes | 25 | 24 have an import route; 1 are explicitly deferred with no route |
1414
| Serialized projector strings | 60 | {'graph-importable': 9, 'runtime-supported': 0} |
1515
| Tokenizer pre identifiers | 87 | 56 semantic groups; route dispositions: {'deferred-compiled-semantics': 45, 'deferred-pinned-artifact-evidence': 11, 'validated-pinned-source': 31} |
@@ -94,13 +94,13 @@ remain machine-readable in `_route_census.py`; this table groups only shared nex
9494
| `artifact-unavailable` | `tokenizer-artifact-replacement` | `tokenizer:gpt-4o`, `tokenizer:granite-embed-multi-311m`, `tokenizer:jina-v1-en`, `tokenizer:llama4` | replacement complete artifact; matching official tokenizer source |
9595
| `dependency-or-runtime-abi-blocked` | `architecture-abi-dependencies` | `architecture:falcon-h1`, `architecture:granitehybrid`, `architecture:jamba`, `architecture:kimi-k3`, `architecture:kimi-linear`, `architecture:minimax-01`, `architecture:nemotron_h_moe`, `architecture:plamo2` | ORT GenAI heterogeneous-state schema (issue #605); stateful runtime package parity |
9696
| `dependency-or-runtime-abi-blocked` | `architecture-abi-dependencies` | `architecture:qwen4exp` | dedicated graph topology; cache/state contract; synthetic parity |
97-
| `dependency-or-runtime-abi-blocked` | `architecture-abi-dependencies` | `architecture:afmoe`, `architecture:arwkv7`, `architecture:bailingmoe3`, `architecture:chameleon`, `architecture:cogvlm`, `architecture:cohere2moe`, `architecture:deepseek2`, `architecture:deepseek2-ocr`, `architecture:deepseek32`, `architecture:deepseek4`, `architecture:gemma3n`, `architecture:gemma4-assistant`, `architecture:gpt-oss`, `architecture:granite_swa`, `architecture:graniteswitch`, `architecture:hunyuan_vl`, `architecture:hy_v3`, `architecture:laguna`, `architecture:llama4`, `architecture:mellum`, `architecture:mimo2`, `architecture:minimax-m3`, `architecture:mistral3`, `architecture:nanbeige`, `architecture:paddleocr`, `architecture:plamo3`, `architecture:pockettts`, `architecture:qwen3tts`, `architecture:qwen3vl`, `architecture:qwen3vlmoe`, `architecture:rwkv6`, `architecture:rwkv6qwen2`, `architecture:rwkv7`, `architecture:step35`, `architecture:wavtokenizer-dec` | exact metadata extraction; tensor closure; dedicated graph and parity |
98-
| `dependency-or-runtime-abi-blocked` | `mtp-specialized-abi` | `mtp:bailingmoe3`, `mtp:cohere2moe`, `mtp:deepseek2`, `mtp:deepseek32`, `mtp:deepseek4`, `mtp:glm-dsa`, `mtp:hy_v3`, `mtp:mimo2`, `mtp:nemotron_h_moe`, `mtp:qwen35moe`, `mtp:qwen3next`, `mtp:step35` | specialized sidecar graph; routed/cache state ABI |
97+
| `dependency-or-runtime-abi-blocked` | `architecture-abi-dependencies` | `architecture:afmoe`, `architecture:arwkv7`, `architecture:bailingmoe3`, `architecture:chameleon`, `architecture:cogvlm`, `architecture:cohere2moe`, `architecture:deepseek2`, `architecture:deepseek2-ocr`, `architecture:deepseek32`, `architecture:deepseek4`, `architecture:gemma3n`, `architecture:gemma4-assistant`, `architecture:gpt-oss`, `architecture:granite_swa`, `architecture:graniteswitch`, `architecture:hunyuan_vl`, `architecture:laguna`, `architecture:llama4`, `architecture:mellum`, `architecture:mimo2`, `architecture:minimax-m3`, `architecture:mistral3`, `architecture:nanbeige`, `architecture:paddleocr`, `architecture:plamo3`, `architecture:pockettts`, `architecture:qwen3tts`, `architecture:qwen3vl`, `architecture:qwen3vlmoe`, `architecture:rwkv6`, `architecture:rwkv6qwen2`, `architecture:rwkv7`, `architecture:step35`, `architecture:wavtokenizer-dec` | exact metadata extraction; tensor closure; dedicated graph and parity |
98+
| `dependency-or-runtime-abi-blocked` | `mtp-specialized-abi` | `mtp:bailingmoe3`, `mtp:cohere2moe`, `mtp:deepseek2`, `mtp:deepseek32`, `mtp:deepseek4`, `mtp:glm-dsa`, `mtp:mimo2`, `mtp:nemotron_h_moe`, `mtp:qwen35moe`, `mtp:qwen3next`, `mtp:step35` | specialized sidecar graph; routed/cache state ABI |
9999
| `dependency-or-runtime-abi-blocked` | `projector-runtime-abi` | `projector:resampler` | dynamic processor-to-graph media shape ABI |
100100
| `dependency-or-runtime-abi-blocked` | `tokenizer-compiled-semantics` | `tokenizer:afmoe`, `tokenizer:bloom`, `tokenizer:chameleon`, `tokenizer:codeshell`, `tokenizer:command-r`, `tokenizer:dbrx`, `tokenizer:deepseek-coder`, `tokenizer:deepseek-llm`, `tokenizer:deepseek-v3`, `tokenizer:default`, `tokenizer:exaone`, `tokenizer:exaone-moe`, `tokenizer:falcon`, `tokenizer:gpt3-finnish`, `tokenizer:granite-docling`, `tokenizer:granite-embed-multi-97m`, `tokenizer:grok-2`, `tokenizer:hunyuan`, `tokenizer:hunyuan-dense`, `tokenizer:jais`, `tokenizer:jais-2`, `tokenizer:joyai-llm`, `tokenizer:kimi-k2`, `tokenizer:laguna`, `tokenizer:megrez`, `tokenizer:mellum2`, `tokenizer:minerva-7b`, `tokenizer:minicpm5`, `tokenizer:minimax-m2`, `tokenizer:mpt`, `tokenizer:olmo`, `tokenizer:poro-chat`, `tokenizer:refact`, `tokenizer:sarvam-moe`, `tokenizer:seed-coder`, `tokenizer:smaug-bpe`, `tokenizer:solar-open`, `tokenizer:stablelm2`, `tokenizer:starcoder`, `tokenizer:superbpe`, `tokenizer:tekken`, `tokenizer:trillion`, `tokenizer:viking`, `tokenizer:whitespace`, `tokenizer:youtu` | compiled pinned llama.cpp oracle; dispatch-equivalence fixture |
101-
| `evidence-only` | `architecture-runtime-evidence` | `architecture:apertus`, `architecture:arcee`, `architecture:arctic`, `architecture:baichuan`, `architecture:bailingmoe`, `architecture:bert`, `architecture:bitnet`, `architecture:bloom`, `architecture:chatglm`, `architecture:codeshell`, `architecture:cohere2`, `architecture:command-r`, `architecture:dbrx`, `architecture:deci`, `architecture:deepseek`, `architecture:dflash`, `architecture:dots1`, `architecture:dream`, `architecture:eagle3`, `architecture:ernie4_5`, `architecture:ernie4_5-moe`, `architecture:eurobert`, `architecture:exaone`, `architecture:falcon`, `architecture:gemma`, `architecture:gemma-embedding`, `architecture:gemma2`, `architecture:gemma3`, `architecture:gemma4`, `architecture:gpt2`, `architecture:gptneox`, `architecture:granite`, `architecture:granitemoe`, `architecture:hunyuan-dense`, `architecture:internlm2`, `architecture:jais`, `architecture:jais2`, `architecture:jina-bert-v2`, `architecture:jina-bert-v3`, `architecture:lfm2moe`, `architecture:llada`, `architecture:llada-moe`, `architecture:llama-embed`, `architecture:maincoder`, `architecture:mamba`, `architecture:mamba2`, `architecture:minicpm`, `architecture:minicpm3`, `architecture:modern-bert`, `architecture:mpt`, `architecture:muse-glimmer`, `architecture:nemotron`, `architecture:nemotron_h`, `architecture:neo-bert`, `architecture:nomic-bert`, `architecture:nomic-bert-moe`, `architecture:olmo`, `architecture:olmo2`, `architecture:olmoe`, `architecture:openelm`, `architecture:orion`, `architecture:pangu-embedded`, `architecture:phi2`, `architecture:phi3`, `architecture:phimoe`, `architecture:plamo`, `architecture:plm`, `architecture:qwen`, `architecture:qwen2moe`, `architecture:qwen2vl`, `architecture:qwen3`, `architecture:qwen35`, `architecture:qwen3moe`, `architecture:qwen3next`, `architecture:refact`, `architecture:rnd1`, `architecture:seed_oss`, `architecture:smallthinker`, `architecture:smollm3`, `architecture:stablelm`, `architecture:starcoder`, `architecture:starcoder2`, `architecture:t5`, `architecture:t5encoder`, `architecture:talkie`, `architecture:xverse` | immutable representative GGUF; full-logit prefill and cached-decode parity; deterministic generation/state evidence |
101+
| `evidence-only` | `architecture-runtime-evidence` | `architecture:apertus`, `architecture:arcee`, `architecture:arctic`, `architecture:baichuan`, `architecture:bailingmoe`, `architecture:bert`, `architecture:bitnet`, `architecture:bloom`, `architecture:chatglm`, `architecture:codeshell`, `architecture:cohere2`, `architecture:command-r`, `architecture:dbrx`, `architecture:deci`, `architecture:deepseek`, `architecture:dflash`, `architecture:dots1`, `architecture:dream`, `architecture:eagle3`, `architecture:ernie4_5`, `architecture:ernie4_5-moe`, `architecture:eurobert`, `architecture:exaone`, `architecture:falcon`, `architecture:gemma`, `architecture:gemma-embedding`, `architecture:gemma2`, `architecture:gemma3`, `architecture:gemma4`, `architecture:gpt2`, `architecture:gptneox`, `architecture:granite`, `architecture:granitemoe`, `architecture:hunyuan-dense`, `architecture:hy_v3`, `architecture:internlm2`, `architecture:jais`, `architecture:jais2`, `architecture:jina-bert-v2`, `architecture:jina-bert-v3`, `architecture:lfm2moe`, `architecture:llada`, `architecture:llada-moe`, `architecture:llama-embed`, `architecture:maincoder`, `architecture:mamba`, `architecture:mamba2`, `architecture:minicpm`, `architecture:minicpm3`, `architecture:modern-bert`, `architecture:mpt`, `architecture:muse-glimmer`, `architecture:nemotron`, `architecture:nemotron_h`, `architecture:neo-bert`, `architecture:nomic-bert`, `architecture:nomic-bert-moe`, `architecture:olmo`, `architecture:olmo2`, `architecture:olmoe`, `architecture:openelm`, `architecture:orion`, `architecture:pangu-embedded`, `architecture:phi2`, `architecture:phi3`, `architecture:phimoe`, `architecture:plamo`, `architecture:plm`, `architecture:qwen`, `architecture:qwen2moe`, `architecture:qwen2vl`, `architecture:qwen3`, `architecture:qwen35`, `architecture:qwen3moe`, `architecture:qwen3next`, `architecture:refact`, `architecture:rnd1`, `architecture:seed_oss`, `architecture:smallthinker`, `architecture:smollm3`, `architecture:stablelm`, `architecture:starcoder`, `architecture:starcoder2`, `architecture:t5`, `architecture:t5encoder`, `architecture:talkie`, `architecture:xverse` | immutable representative GGUF; full-logit prefill and cached-decode parity; deterministic generation/state evidence |
102102
| `evidence-only` | `draft-runtime-evidence` | `draft:dflash`, `draft:eagle3` | target acceptance loop; draft cache orchestration; deterministic speedup parity |
103-
| `evidence-only` | `mtp-runtime-evidence` | `mtp:qwen35` | target acceptance loop; cache-threaded draft/target parity |
103+
| `evidence-only` | `mtp-runtime-evidence` | `mtp:hy_v3`, `mtp:qwen35` | target acceptance loop; cache-threaded draft/target parity |
104104
| `evidence-only` | `projector-runtime-evidence` | `projector:adapter`, `projector:gemma3`, `projector:gemma4v`, `projector:ldp`, `projector:ldpv2`, `projector:mlp`, `projector:muse-glimmer`, `projector:qwen2.5vl_merger`, `projector:qwen2vl_merger` | paired text target; processor boundary; deterministic multimodal package execution |
105105
| `evidence-only` | `tokenizer-artifact-evidence` | `tokenizer:bailingmoe`, `tokenizer:bailingmoe2`, `tokenizer:chatglm-bpe`, `tokenizer:cohere2moe`, `tokenizer:glm4`, `tokenizer:llada-moe`, `tokenizer:tiny_aya` | immutable GGUF/source pair; ordered vocabulary and encoding parity |
106106
| `immediately-implementable` | `architecture-implementation` | `architecture:grok`, `architecture:grovemoe`, `architecture:hunyuan-moe`, `architecture:minimax-m2`, `architecture:mistral4` | exact metadata extraction; tensor closure; dedicated graph and parity |
@@ -216,7 +216,7 @@ Reason codes are concise user-facing categories; detailed architecture audits re
216216
| `hunyuan-dense` | `hunyuan_v1_dense` | model=`hunyuan_v1_dense`; tensor=`llama`+`hunyuan_extras` | not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | RUNTIME_EVIDENCE_PENDING — Config extraction, exact tensor-name closure, and a full synthetic GGUF graph build are covered, but no representative real-weight GGUF has yet passed ORT parity or generation validation. |
217217
| `hunyuan-moe` | — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | CONFIG_DEFERRED — Hunyuan-MoE applies Q/K normalization after RoPE and runs normalized routed experts with an always-parallel shared branch in every layer. |
218218
| `hunyuan_vl` | — | none (fails before config extraction) | exact-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | CONFIG_DEFERRED — The pinned Hunyuan-VL decoder uses its own M-RoPE and Q/K-normalized text contract and pairs with a hunyuanvl clip sidecar. |
219-
| `hy_v3` | — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | CONFIG_DEFERRED — Hunyuan-V3 executes a full-attention NextN head with Q/K norms and optional sigmoid routed/shared experts, seeded from target hidden state. |
219+
| `hy_v3` | — | model=`hy_v3`; tensor=`llama`+`hy_v3_extras` | audited-direct-loader-conditional-union | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — Exact full-attention trunk and independently cached NextN sidecar graphs are covered, including per-head Q/K RMSNorm, a contiguous dense prefix, selection-biased sigmoid routed SwiGLU experts, and an ungated shared expert. |
220220
| `internlm2` | — | model=`internlm2`; tensor=`llama` | not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. |
221221
| `jais` | — | model=`jais`; module=`gguf_legacy`; tensor=`legacy_layernorm` | audited-direct-loader-conditional-union | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — Converter-baked MuP scales are retained exactly, while fused biased QKV must be split and therefore cannot preserve packed quantization. |
222222
| `jais2` | — | model=`jais2`; tensor=`legacy_layernorm` | audited-direct-loader-conditional-union | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | RUNTIME_EVIDENCE_PENDING — Config extraction, exact tensor-name closure, and a full synthetic GGUF graph build are covered, but no representative real-weight GGUF has yet passed ORT parity or generation validation. |

‎src/mobius/_configs/__init__.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
Gemma4Config,
4141
GlmAsrConfig,
4242
GraniteMoeHybridConfig,
43+
HyV3Config,
44+
HyV3MtpConfig,
4345
Jais2Config,
4446
JambaConfig,
4547
JetMoeConfig,
@@ -126,6 +128,8 @@
126128
"Gemma4Config",
127129
"GlmAsrConfig",
128130
"GraniteMoeHybridConfig",
131+
"HyV3Config",
132+
"HyV3MtpConfig",
129133
"Jais2Config",
130134
"JambaConfig",
131135
"JetMoeConfig",

‎src/mobius/_configs/_base.py‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,63 @@ def from_transformers(cls, config, parent_config=None) -> Qwen35MtpConfig:
25292529
return cls(**fields)
25302530

25312531

2532+
@dataclasses.dataclass
2533+
class HyV3Config(CausalLMConfig):
2534+
"""Configuration for Hunyuan-V3 dense-prefix and routed/shared MoE blocks."""
2535+
2536+
enable_moe_fp32_combine: bool = True
2537+
routing_weight_normalization_epsilon: float | None = None
2538+
2539+
@classmethod
2540+
def from_transformers(cls, config, parent_config=None) -> HyV3Config:
2541+
base = ArchitectureConfig.from_transformers(config, parent_config)
2542+
fields = _shallow_fields(base)
2543+
layer_types = list(
2544+
getattr(config, "mlp_layer_types", None)
2545+
or ["dense"] + ["sparse"] * max(int(base.num_hidden_layers) - 1, 0)
2546+
)
2547+
if len(layer_types) != base.num_hidden_layers:
2548+
raise ValueError("HYV3 mlp_layer_types must have one entry per decoder layer")
2549+
dense_prefix = 0
2550+
while dense_prefix < len(layer_types) and layer_types[dense_prefix] == "dense":
2551+
dense_prefix += 1
2552+
if any(kind != "sparse" for kind in layer_types[dense_prefix:]):
2553+
raise ValueError(
2554+
"HYV3 supports a contiguous leading dense prefix followed by sparse layers"
2555+
)
2556+
num_shared = int(getattr(config, "num_shared_experts", None) or 1)
2557+
moe_width = int(
2558+
getattr(config, "moe_intermediate_size", None) or base.intermediate_size
2559+
)
2560+
fields.update(
2561+
first_k_dense_replace=dense_prefix,
2562+
shared_expert_intermediate_size=moe_width * num_shared,
2563+
n_shared_experts=num_shared,
2564+
routed_scaling_factor=float(
2565+
getattr(config, "router_scaling_factor", None) or base.routed_scaling_factor
2566+
),
2567+
norm_topk_prob=True,
2568+
routing_weight_normalization_floor=None,
2569+
routing_weight_normalization_epsilon=1e-20,
2570+
scoring_func="sigmoid",
2571+
topk_method="noaux_tc",
2572+
use_expert_bias=True,
2573+
disable_qmoe=True,
2574+
attn_qk_norm=True,
2575+
attn_qk_norm_full=False,
2576+
enable_moe_fp32_combine=bool(getattr(config, "enable_moe_fp32_combine", True)),
2577+
)
2578+
return cls(**fields)
2579+
2580+
2581+
@dataclasses.dataclass
2582+
class HyV3MtpConfig(HyV3Config):
2583+
"""Configuration for one independently cached Hunyuan-V3 NextN block."""
2584+
2585+
use_dedicated_embeddings: bool = False
2586+
use_dedicated_lm_head: bool = False
2587+
2588+
25322589
def _speculators_layer_namespace(layer_cfg: dict):
25332590
"""Build a config-like namespace from a speculators ``transformer_layer_config``.
25342591

‎src/mobius/_registry.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
Gemma3nMultiModalConfig,
3131
Gemma4AssistantConfig,
3232
Gemma4Config,
33+
HyV3Config,
3334
Jais2Config,
3435
KimiK3Config,
3536
KimiLinearConfig,
@@ -92,6 +93,8 @@
9293
HunYuanMoEV1CausalLMModel,
9394
HunYuanV1DenseCausalLMModel,
9495
HunYuanVLMoTModel,
96+
HyV3CausalLMModel,
97+
HyV3MtpModel,
9598
InternLM2CausalLMModel,
9699
Jais2CausalLMModel,
97100
KimiK3CausalLMModel,
@@ -576,6 +579,11 @@ def _detect_fallback_registration(hf_config) -> ModelRegistration | None:
576579
"gptj": ModelRegistration(GPTJCausalLMModel),
577580
"granite": ModelRegistration(GraniteCausalLMModel),
578581
"hunyuan_v1_dense": ModelRegistration(HunYuanV1DenseCausalLMModel),
582+
"hy_v3": ModelRegistration(
583+
HyV3CausalLMModel,
584+
config_class=HyV3Config,
585+
test_model_id="tencent/Hy3",
586+
),
579587
"internlm2": ModelRegistration(InternLM2CausalLMModel),
580588
"llama4_text": ModelRegistration(Llama4CausalLMModel),
581589
"lfm2": ModelRegistration(Lfm2CausalLMModel, config_class=Lfm2Config),
@@ -614,6 +622,9 @@ def _detect_fallback_registration(hf_config) -> ModelRegistration | None:
614622
"Qwen35MtpModel": ModelRegistration(
615623
Qwen35MtpModel, task="qwen35-mtp", family="qwen", variant="mtp"
616624
),
625+
"HyV3MtpModel": ModelRegistration(
626+
HyV3MtpModel, task="hy-v3-mtp", family="hunyuan", variant="mtp"
627+
),
617628
"Eagle3LlamaForCausalLM": ModelRegistration(
618629
Eagle3DraftModel,
619630
task="eagle3-draft",

0 commit comments

Comments
 (0)