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 18b617a
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
- implement exact Jamba mixed attention/Mamba-1 execution with
multi-token prefill, decode, heterogeneous KV/conv/recurrent state
threading, batch reorder, and snapshot replay
- add exact dense/routed-MoE scheduling, float32 full-softmax top-k
routing without selected-weight renormalization, no-RoPE attention,
fused and stacked expert preprocessing, and tied-head handling
- import dense and MoE Jamba GGUFs with strict suffix-aware tensor
closure and logical shape validation; preserve compatible
attention/dense/expert MatMul quantization while dequantizing
Mamba/state-sensitive roles
- keep released generic ORT GenAI packaging deferred to #605 because its
cache schema cannot represent heterogeneous state slots
- update generated support documentation from dense-only to the
evidence-backed routed-MoE subset
## Validation
- `python -m pytest src/mobius/integrations/gguf/ -q --tb=short` — 2608
passed
- `python -m pytest tests/build_graph_test.py
tests/synthetic_parity_test.py
src/mobius/integrations/gguf/_config_mapping_test.py
src/mobius/integrations/gguf/_builder_test.py -k 'jamba' -q --tb=short`
— 34 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` — 7096 passed, 52 skipped
- initialized `lintrunner` and formatted/linted all changed Python files
- generated GGUF support documentation is current
- two independent reviews completed; all high-confidence findings fixed
The unfiltered broad suite still has the existing `glm_moe_dsa`
symbolic-shape inference/checker failure (2 tests), reproduced
independently and unrelated to these Jamba paths.
## Upstream evidence
Audited llama.cpp at `8d9af256337d1a501250f9bbf4c0859a654bddd6` and
current Transformers Jamba. `ai21labs/Jamba-tiny-dev` at
`ed303361004ac875426a61675edecf8e9d976882` is the smallest suitable
public real-weight follow-up candidate (~637 MB), but this PR makes no
real-checkpoint or runtime-generation support claim without that
separate evidence.
Stacked on #612 (`justinchuby-plamo2-gguf`).
---------
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`|
@@ -411,7 +411,7 @@ before graph construction or durable output.
411
411
|`internlm2`| — | model=`internlm2`; tensor=`llama`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | 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. The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. Use keep_quantized=False for explicit float import. |
412
412
|`jais`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | JAIS combines fused biased QKV, causal ALiBi, 1/head_dim attention scaling, parallel SwiGLU, and converter-baked MuP embedding/output scales. Reusing Falcon or Llama would lose required value transforms. |
413
413
|`jais2`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | JAIS2 is a distinct RoPE, bias-bearing LayerNorm decoder with split Q/K/V and a non-gated ReLU-squared FFN. It is not the ALiBi/SwiGLU JAIS graph and has no exact Mobius tensor recipe. |
414
-
|`jamba`| — | model=`jamba`; tensor=`jamba`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected|Config extraction, exact pinned tensor-name closure, GGUF value transforms, and synthetic recurrent-state execution are covered, but no representative real-weight GGUF has yet passed independent full-logit parity and deterministic multi-token stateful ORT generation. Runtime packaging remains deferred until that evidence exists. The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. Use keep_quantized=False for explicit float import. |
414
+
|`jamba`| — | model=`jamba`; tensor=`jamba`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported|Exact mixed attention/Mamba and dense/routed-MoE schedules, strict tensor closure and shapes, GGUF value transforms, compatible projection quantization, value-checked expert ordering, reduced Transformers parity, and multi-token ORT state threading, reorder, and replay are covered. Generic ORT GenAI runtime packaging remains deferred because its released cache schema cannot represent heterogeneous KV, convolution, and recurrent state slots; tracked by #605. |
415
415
|`jina-bert-v2`| — | none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | JinaBERT v2 uses ALiBi, optional full-width Q/K norms, an extra attention norm, and either separate or fused GeGLU inputs. Mobius has no graph with that exact combination. |
416
416
|`jina-bert-v3`| — | none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | JinaBERT v3 uses RoPE and may alternate dense GELU and routed MoE layers. BertModel has absolute positions and no MoE path. |
417
417
|`kimi-k3`| — | none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | Kimi-K3 alternates KDA recurrent and NoPE MLA layers and requires convolution plus matrix state, sigmoid routed latent MoE with SiTU experts, optional shared experts, and cross-layer residual banks. Kimi-Linear is not an alias: its gates, expert activation, latent projections, and residual contract differ. Mobius has no exact graph or mixed-state task for either ABI. |
@@ -559,19 +559,26 @@ independent full-logit and generation parity.
559
559
### Second hybrid cohort
560
560
561
561
`jamba`, `nemotron_h`, and `granitehybrid` have graph-import support for exact
0 commit comments