* feat(xla): add Jamba hybrid Mamba1, attention, and MoE support
Jamba interleaves Mamba1 and attention blocks and ends every block in a dense or softmax-routed MoE FFN. The emitter rejected model_type jamba, and every recurrent layer was assumed to be a pure SSM block without an FFN.
- jamba_config parses the HF JambaConfig: attention and expert schedules from their period/offset, Mamba1 with learned dt/B/C RMSNorms, no RoPE, and HF routing (softmax over all experts, top-k, no renormalization). num_experts = 1 keeps every FFN dense.
- SsmKind::Mamba1 now carries a BcdtNorm (None, Weightless, Weighted). Falcon-Mamba stays Weightless and emits the same ops; Jamba takes dt_layernorm, b_layernorm and c_layernorm after D.
- A recurrent layer with an FFN goes through the general layer path (mixer weights last, pre_ff_layernorm as the post-mixer norm). Pure SSM layers keep the short list, so existing goldens are byte-identical.
- The WeightScheme::Jamba names reuse Falcon-H1's outer names, read the MoE router as feed_forward.router, and the checkpoint cross-check validates mixer norms, dense FFNs and stacked experts.
- A seeded four-block MoE fixture generator, registered goldens, emitter tests, an ignored device parity test, and a prompt-cache guard test for Jamba.
Refs #3349
* fix(xla): compile softmax MoE decodes without aggressive fusion
The decode compile adds --iree-dispatch-creation-enable-aggressive-fusion for every dense config (#3043). With a softmax MoE router it fuses the softmax with the tuple-reduction top-k argmax into one dispatch that llvm-cpu and CUDA cannot lower ('vector.store' op write affecting operations on global resources are restricted to workgroup distributed contexts, IREE 3.12.0rc20260721). The Jamba MoE ragged decode failed this way on local-task, and the committed Qwen2-MoE and OLMoE ragged goldens fail the same way with the flag and compile without it.
A config with a softmax-routed MoE now keeps the compiler defaults for its decode, like Gemma3n. Sigmoid routing (#3411) already uses a single-result argmax and keeps the flag, and no emitted graph changes.
Refs #3349
* update(xla): record Jamba CUDA and CPU acceptance evidence
Logs from runtime source 76a3dc4 on NVIDIA GB10 (IREE 3.12.0rc20260721, f32): validate_arch.sh batch 4 / requests 8 on the real AI21-Jamba-Reasoning-3B checkpoint (registered goldens, 40/40 HF oracle tokens, 170 reference-exact batched tokens), the 40-token engine test, CLI 40/40 plus four concurrent non-streaming and SSE completions equal to CLI stdout, and the seeded MoE fixture on local-task and CUDA (ragged logits within 3e-4 of HF, CLI 12/12, oracle check and batch bench exact). provenance.json lists every command, binary hash, and what was not verified.
Refs #3349
* update(xla): test the softmax-MoE decode fusion choice without IREE
The decode-flag unit test lives in an iree-gated module whose test binary cannot link on its own (the runtime archives are linked by the root crate), so it was only type-checked. The softmax-router predicate moves to Config::has_softmax_moe, which the default lib tests now exercise for Jamba MoE, dense Jamba, Qwen2-MoE, OLMoE, Llama, and sigmoid-routed Nemotron-H. Behaviour is unchanged.
Also records that the raw per-expert HF MoE layout is refused at load with a missing switch_mlp tensor error.
Refs #3349
* docs(xla): add Jamba findings and technical reports
Record the weighted dt/B/C norm design, HF routing choice, the softmax-MoE decode fusion exemption (Qwen2-MoE and OLMoE ragged decode goldens also fail to compile with aggressive fusion on main), the synthetic MoE fixture, CUDA and CPU acceptance results, and the ROCm handoff.
* update(xla): record Jamba acceptance after the Plamo2 rebase
The branch was rebased onto main 01e6516 (Falcon-H1 plain RoPE #3452, Plamo2 #3449). The integrated-* logs come from runtime source b9b5545 on NVIDIA GB10: every registered golden byte-exact, clippy --all-targets clean, the Jamba 3B validate_arch gate, the 40-token engine test, CLI 40/40 and 8/8 concurrent server parity, and the Jamba synthetic MoE parity on CUDA and local-task. The Plamo2, Falcon-H1, Mamba SSM and Nemotron-H CUDA suites pass too. The provenance and the report validation sections name the new head.
Refs #3349
Post-merge correction for the Falcon-H1 OpenXLA path from #3414.
The Falcon-H1 config parser spreads
Config::llama_3_2_1b()and never setrope, so it inherited Llama3 scaling (factor 32, original context 8192). HF Falcon-H1 uses plain RoPE. Llama3 scaling only changes bands with wavelengths above 2048 tokens, and Tiny90M (rope_theta = 1e11, head width 64) has 24 of 32 frequency pairs there. The 40-token oracle compares tokens only, and the logit gate ran only on the tiny fixtures, where the scaling is a numeric no-op.RopeScaling::Plain, with a unit test.rope_scalingblock is now rejected. HF folds it intorope_parameters, but the loader ignored it.falcon_h1_oracle.py --long-modelwrites native HF fp32 CPU logits for prefixes of 32, 512, 2048, and 3584 tokens. The ignoredfalcon_h1_original_checkpoint_long_positionstest compares them through ragged prefill and decode (max abs below1e-3, matching argmax).Before the fix, 8 of 16 argmaxes differed. After it, all 16 match. Logs and provenance are in
spike/openxla/falcon_h1_reference/(cpu-long-*.log,long-position-provenance.json).Audit: the other
..Config::llama_3_2_1b()spreads (Mamba1, Mamba2, Nemotron-H) setrope,rope_theta,tie_word_embeddings, dims,vocab, andlayer_mixersexplicitly. The remaining base fields are neutral defaults. The densefrom_json_strpath builds a full literal and maps absentrope_scalingto plain RoPE. Every other use is in test code.Test plan
cargo test -p mlxcel-xla --lib(567 passed), fmt,cargo clippy -p mlxcel-xla --all-targets -- -D warningstests/xla_falcon_h1.rson local-task: synthetic parity, 40-token oracle, and the new long-position testcheck_used_by.py,check_env_var_docs.pyRefs #3346