---
title: "Can we change an AI model’s architecture without retraining it from scratch?"
description: "Priming converts pretrained Transformers into hybrid state space models by reusing attention query/key/value projections as SSM input projections."
url: "https://swe.quest/articles/can-we-change-an-ai-model-s-architecture-without-retraining-it-from-scratch-c231ad096fc1d55f"
canonical: "https://www.amazon.science/blog/can-we-change-an-ai-models-architecture-without-retraining-it-from-scratch"
source: "Amazon Science"
published: "2026-10-12"
difficulty: "hard"
kind: "Research"
reading_minutes: 11
tags: ["llms","model-training","inference","performance"]
---

# Can we change an AI model’s architecture without retraining it from scratch?

A post on [Amazon Science](https://swe.quest/sources/amazon-science.md), published 2026-10-12, 11 min read, Research. Original: [https://www.amazon.science/blog/can-we-change-an-ai-models-architecture-without-retraining-it-from-scratch](https://www.amazon.science/blog/can-we-change-an-ai-models-architecture-without-retraining-it-from-scratch)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Transformer attention and KV cache ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- state space models
- knowledge distillation
- LLM inference serving ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))

## Keywords

Priming, Gated KalmaNet, Gated DeltaNet, Mamba-2, Qwen3, vLLM, PICASO, AIME 2025

## Related posts

- [Mamba-3](https://swe.quest/articles/mamba-3-6a6e43d2a6b849a6.md): Together AI · 2026-03-17 · Hard · 12 min read · LLMs, Inference & serving, Machine learning, Performance engineering, Hardware
  Mamba-3 is a state space model redesigned around inference efficiency rather than training speed.
- [Aurora](https://swe.quest/articles/aurora-30d7e4dc2968c60f.md): Together AI · 2026-03-31 · Hard · 7 min read · Inference & serving, LLMs, Model training, Performance engineering
  Aurora 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.
- [Introducing Olmicro: Small, efficient hybrid models built in the open](https://swe.quest/articles/introducing-olmicro-small-efficient-hybrid-models-built-in-the-open-47ed4f87fc956ac5.md): Hugging Face · 2026-11-30 · Hard · 9 min read · LLMs, Model training, Open source, Evaluation
  Olmicro is a suite of five fully open base language models (275M to 2.7B parameters) trained with one three-stage recipe.
- [DeepMath: A lightweight math reasoning Agent with smolagents](https://swe.quest/articles/deepmath-a-lightweight-math-reasoning-agent-with-smolagents-e010b89eb984330e.md): Hugging Face · 2025-12-04 · Hard · 5 min read · Model training, AI agents, LLMs, Evaluation, Sandboxing & isolation
  DeepMath 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.
- [Run fast, private agents on-device with LFM2.5-24B-A2B](https://swe.quest/articles/run-fast-private-agents-on-device-with-lfm2-5-24b-a2b-52b7fe0729873bfd.md): Hugging Face · 2026-10-13 · Medium · 7 min read · LLMs, AI agents, Model training, Inference & serving, Evaluation
  LFM2.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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
