Apriel-H1: The Surprising Key to Distilling Efficient Reasoning Models
ServiceNow converted its 15B Apriel reasoning model into a Mamba/attention hybrid via distillation, reaching 2.1x throughput with small benchmark shifts (MATH500 up, GPQA and AIME24 slightly down) using 76.8B tokens. The key finding is that distilling on the teacher's high-quality SFT reasoning traces works, while pretraining data or mixed data degrades reasoning. Reverse KL beat forward KL. A staged procedure does the conversion: leave-one-out layer importance for the first 25 layers, then a dynamic MIL-Mamba-Replacement loss heuristic to progressively reach 30–40 Mamba layers, with the 40-layer variant reaching 3.4x throughput. Training uses the open-source Fast-LLM framework, inference runs on Transformers and vLLM, and the authors warn that hybrid deployment tooling is still immature.
Related posts
- Productizing Large Language Models
Replit mediumAdeptReplit runs transformer models from ~100M parameters (search, spam) through 1-10B (GhostWriter code autocomplete) to 100B+ in production, and shares lessons on making them usable. Nonsense and repetition loops are handled with temperature and frequency penalty tuning, cycle detection, multi-temperature sampling, reranking with a second model, and fine-tuning on user feedback. Quality is tracked with HumanEval, loop and nonsense rates, and A/B tests. Inference cost is cut with FasterTransformer, distillation and quantization, and GPUs are run at 70-80% utilization on Kubernetes so request queues stay bounded while autoscaling has headroom.
- Bamba: Inference-Efficient Hybrid Mamba2 Model
Hugging Face hardMasterBamba-9B is a hybrid Mamba2 language model from IBM, Princeton, CMU and UIUC, trained on 2.2T tokens of fully open data. It interleaves full attention layers with Mamba2 layers to keep KV-cache growth small. In vLLM on an H100, it reaches about 2.5x the throughput and 2x lower latency of Llama 3.1 8B at larger batch sizes and sequence lengths. On benchmarks it trails SOTA transformers mainly on math and MMLU, which the team attributes to fewer training tokens and no benchmark-aligned annealing data, and it beats Olmo 7B trained on the same token budget. Checkpoints, training recipes, a stateful data loader and support in transformers, TRL, vLLM and llama.cpp are released.
- Can we change an AI model’s architecture without retraining it from scratch?
Amazon Science hardMasterPriming converts pretrained Transformers into hybrid state space models by reusing attention query/key/value projections as SSM input projections. Layers that tolerate sliding-window substitution are distilled into SSM layers, and the full hybrid is then fine-tuned, using under 0.5% of the source model's pretraining tokens. In controlled comparisons Gated KalmaNet beats Gated DeltaNet, which beats Mamba-2, and SSM hybrids beat sliding-window attention hybrids even when the window gets 2–4× the memory. A 32B GKA hybrid matches Qwen3-32B on reasoning while decoding up to 2× faster at 128K context, offers a runtime iteration knob trading accuracy for speed, and extends to 256K context training-free via state composition. Models, training code, Triton kernels and a vLLM plugin are released under Apache 2.0.
- Welcome Falcon Mamba: The first strong attention-free 7B model
Hugging Face mediumAdeptFalcon Mamba 7B from TII is a pure Mamba state space language model with extra RMS normalization layers for stable training at scale. Trained on roughly 5,500 GT of mostly RefinedWeb data, it matches or beats similarly sized transformers and hybrid SSM models on Open LLM Leaderboard benchmarks, averaging 15.04 on v2 and 64.09 on v1. Because an SSM keeps only a recurrent state, decoding runs at constant throughput and memory regardless of context length. Parallel prefill still makes memory grow with prompt length, but sequential or chunked prefill lets the model handle arbitrarily long prompts on a single 24GB A10. The model loads through Hugging Face transformers (>4.45.0) and supports 4-bit bitsandbytes quantization, torch.compile and an instruction-tuned variant.
- Mamba-3
Together AI hardMasterMamba-3 is a state space model redesigned around inference efficiency rather than training speed. It adds an exponential-trapezoidal discretization that yields a more expressive recurrence, complex-valued state transitions implemented via data-dependent RoPE, and a MIMO variant that adds FLOPs to otherwise memory-bound decode steps at almost no latency cost. Architecture changes include BCNorm (QKNorm), removal of the short causal convolution and interleaved MLPs. At 1.5B scale on an H100, Mamba-3 SISO posts the fastest prefill+decode latency against Mamba-2, Gated DeltaNet and vLLM-served Llama-3.2-1B, and MIMO adds over 1 point of downstream accuracy at the cost of longer training. The open-sourced kernels combine Triton, TileLang and CuTe DSL.