Can we change an AI model’s architecture without retraining it from scratch?
Priming 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.
Related posts
- 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.
- Aurora
Together AI hardMasterAurora is an open-source framework that trains speculative decoding draft models online from live inference traces, framing drafting as asynchronous reinforcement learning: the drafter is the policy, the target verifier is the environment, and accepted and rejected tokens serve as positive and counterfactual rewards. An inference server built on SGLang or vLLM streams accepted and rejected tokens plus hidden states to a buffer. A separate training server updates a copy of the drafter using tree attention over speculative branches and hot-swaps the new weights in without interrupting serving. On shifting multi-domain traffic it recovers acceptance length within about 10k requests and adds a 1.25x speedup over a well-trained static EAGLE-3 speculator. Trained from scratch on mixed traffic, it reached an acceptance length of 3.08 versus 2.63 for the static baseline.
- Introducing Olmicro: Small, efficient hybrid models built in the open
Hugging Face hardMasterOlmicro is a suite of five fully open base language models (275M to 2.7B parameters) trained with one three-stage recipe. The models use a hybrid architecture of 80% Gated DeltaNet recurrent layers and 20% full-attention layers with no positional encodings, and support 64K context. Olmicro 2.7B roughly matches SmolLM3 3B on OlmoBaseEval (56.5 vs 56.7) with less than half the training tokens, and needs an estimated 1.55 GiB of context memory at 65K tokens versus 7.50 GiB for an all-attention equivalent. RL alone at least doubles MATH-500 accuracy across all sizes in 400 steps, and the release includes 1,707 intermediate checkpoints, data and code for small-compute research.
- DeepMath: A lightweight math reasoning Agent with smolagents
Hugging Face hardMasterDeepMath fine-tunes Qwen3-4B Thinking with GRPO so it emits short Python snippets for intermediate math steps, runs them in a sandbox (module allow-list, no file I/O or network, per-snippet timeouts), and feeds results back into its reasoning. The agent is built on smolagents with vLLM inference, and TRL's vLLM client/server was modified so GRPO candidates are generated by the agent. Rewards cover correctness and code use, completions are capped at 5k tokens, temperature is scheduled linearly from 1.2 to 0.7, and training uses the OpenMathReasoning TIR subset. On MATH500, AIME, HMMT and HLE, agentic inference alone cuts output length by up to 66% with mixed accuracy, and combining it with GRPO training gives the best accuracy with shorter traces.
- Run fast, private agents on-device with LFM2.5-24B-A2B
Hugging Face mediumAdeptLFM2.5-24B-A2B is an open-weight 24B-parameter MoE reasoning model with 2B active parameters per token, aimed at running tool-using agents on local hardware. It keeps LFM2's 40-layer hybrid of gated short convolutions and GQA with 64 experts and top-4 routing. The context window grows from 32K to 131K tokens, the vocabulary doubles to 128K, pre-training scales to ~33T tokens, and post-training runs SFT, teacher specialization, two on-policy distillation stages and agentic RL inside harnesses like OpenClaw and Hermes Agent. It leads larger MoEs such as Qwen3.6-35B-A3B on most tool-use and instruction-following benchmarks but trails on knowledge and coding tasks like SWE-Bench Verified. It decodes 184 tok/s on an M5 Max and up to 21K tok/s on a B300, and ships with transformers code and an OpenAI-compatible harness configuration.