You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2b46fc0
Browse filesBrowse the repository at this point in the historyBrowse files
Add dedicated Falcon-H1 model and GGUF import (#610)
## Summary
- add a dedicated Falcon-H1 decoder where attention and Mamba2 run in
parallel from the same normalized input, followed by the exact residual
and SwiGLU topology
- add a dynamic four-state-per-layer ABI ordered as attention key,
attention value, convolution state, and SSM state
- add strict Falcon-H1 GGUF metadata, tensor-closure, bias-family,
transform, and quantization validation against llama.cpp
`8d9af256337d1a501250f9bbf4c0859a654bddd6`
- register the model/task/config, update the generated GGUF census, and
add graph, parity, state, import, CLI, save/reload, and failure-path
coverage
## Validation
- `python -m pytest tests/falcon_h1_test.py tests/build_graph_test.py
tests/weight_alignment_test.py tests/synthetic_parity_test.py -q -k
'falcon_h1' --tb=short` — 11 passed
- `python -m pytest tests/falcon_h1_test.py -m integration -k pinned -q
--tb=short` — pinned
`tiiuae/Falcon-H1-Tiny-90M-Base@7994372e93b62822ae25f8bfb19f653649cea3a3`
full-logit parity passed
- `python -m pytest src/mobius/integrations/gguf -q --tb=short -n auto`
— 2,583 passed
- `python -m pytest tests/yaml_schema_test.py tests/falcon_h1_test.py
tests/build_graph_test.py tests/weight_alignment_test.py
tests/synthetic_parity_test.py -q -k 'falcon_h1 or yaml_schema'
--tb=short -n auto` — 261 passed
- `python -m pytest tests/build_graph_test.py tests/cli_test.py src/ -q
-k 'not phi4mm and not apply_weights_unknown and not glm_moe_dsa'
--tb=short -n auto` — 7,056 passed, 52 skipped
- `python scripts/generate_gguf_support_docs.py --check` — passed
- `lintrunner f --output oneline --all-files && lintrunner -a` — clean
after initialized lintrunner
## Reviews
- independent architecture review: no high-confidence findings;
confirmed parallel branch topology, multiplier placement, Mamba
ordering, grouped gated RMSNorm, clamp/masking, and backward-compatible
defaults
- independent state/GGUF review: found missing package config, unstamped
output ABI, and late malformed-decay rejection; all fixed with
regression coverage
## Runtime and quantization verdict
Graph construction and GGUF import are supported. Runtime packaging
remains **DEFERRED** because the downstream package schema cannot
represent heterogeneous K/V plus convolution/SSM states; tracked by
#605. No ORT GenAI runtime-support claim is made.
Quantized Falcon-H1 sources can be imported through explicit
dequantization. `keep_quantized=True` fails closed because the current
route cannot preserve only compatible attention/FFN MatMul roles while
safely dequantizing recurrent/state-sensitive tensors and retaining
every quantization sidecar.
## Waivers
- L4/L5 ORT GenAI package/generation goldens: blocked by the
heterogeneous four-state package schema tracked in #605. The pinned real
checkpoint has direct full-logit graph parity, but downstream stateful
generation is not claimed.
- CUDA and reduced-precision runtime evidence: not claimed by this PR;
support remains limited to the validated graph/import surface.
---------
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
| Tokenizer pre identifiers | 87 | 56 semantic groups; all default to deferred and become exact-copy only with a validated embedded `tokenizer.huggingface.json`|
@@ -382,7 +382,7 @@ before graph construction or durable output.
382
382
|`exaone-moe`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | EXAONE-MoE serializes a dense trailing NextN block after an iSWA routed/shared expert trunk, but the pinned loader skips appended blocks. Mobius has no exact SWA schedule, remapped global-MTP transform, or executable head contract. |
383
383
|`exaone4`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | EXAONE4 serializes attention/FFN post-norm trailing blocks and NextN tensors with optional synthetic Llama3 RoPE factors, but the pinned loader skips them. No Mobius task owns those preserved-only semantics. |
384
384
|`falcon`| — | model=`falcon`; tensor=`falcon`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | 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. Runtime packaging remains deferred until that evidence exists. |
385
-
|`falcon-h1`| — |none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported |Falcon-H1 executes attention and Mamba2 in parallel in every block and requires KV and recurrent states simultaneously; FalconCausalLMModel is not compatible with that graph or state ABI. |
385
+
|`falcon-h1`| — |model=`falcon_h1`; tensor=`falcon_h1`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported |The dedicated graph and GGUF importer preserve parallel Attention+Mamba2 layers and their four-state ABI, but runtime packaging remains deferred pending heterogeneous-state schema support (onnxruntime/mobius#605) and real full-logit plus deterministic stateful-generation evidence. |
386
386
|`gemma`| — | model=`gemma`; tensor=`llama`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | 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. Runtime packaging remains deferred until that evidence exists. |
387
387
|`gemma-embedding`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | Gemma Embedding is a bidirectional stateless embedding graph with alternating sliding-window attention, four norm sites, sqrt(hidden) embedding scaling, and optional pooling/dense modules. Causal Gemma3 text/VLM tasks expose the wrong ABI. |
388
388
|`gemma2`| — | model=`gemma2`; tensor=`llama`+`gemma2_extras`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | 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. Runtime packaging remains deferred until that evidence exists. |
@@ -583,13 +583,20 @@ real-artifact full-logit and stateful-generation parity.
583
583
-`static_cache=True` and non-hybrid task dispatch are rejected for these mixed
584
584
state ABIs.
585
585
586
-
`minimax-01`, `plamo2`, and `falcon-h1` are deferred before config extraction.
587
-
MiniMax-01's pinned Lightning schedule and decay/scaling semantics do not match
588
-
the current graph; PLaMo2 needs a dedicated fused-QKV Mamba1/attention graph;
589
-
Falcon-H1 executes attention and Mamba2 in parallel in every block and therefore
590
-
needs KV plus conv/SSM states simultaneously. It is not an alias of ordinary
591
-
Falcon. `nemotron_h_moe` remains rejected because its folded MTP attention+MoE
592
-
head has no equivalent package contract.
586
+
`minimax-01` and `plamo2` are deferred before config extraction. MiniMax-01's
587
+
pinned Lightning schedule and decay/scaling semantics do not match the current
588
+
graph; PLaMo2 needs a dedicated fused-QKV Mamba1/attention graph.
589
+
590
+
Falcon-H1 graph/import support is dedicated rather than aliased to Falcon. Every
591
+
layer exposes `(key, value, conv_state, ssm_state)` in that order. Static cache is
592
+
rejected, and quantized-source imports require `--dequantize` until the mixed graph
593
+
can preserve only exact attention/FFN MatMul roles. Runtime packaging remains
594
+
deferred pending the heterogeneous-state schema tracked by
595
+
[`onnxruntime/mobius#605`](https://github.com/onnxruntime/mobius/issues/605) and
596
+
real full-logit plus deterministic stateful-generation evidence.
597
+
598
+
`nemotron_h_moe` remains rejected because its folded MTP attention+MoE head has
0 commit comments