---
title: "Apriel-H1: The Surprising Key to Distilling Efficient Reasoning Models"
description: "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."
url: "https://swe.quest/articles/apriel-h1-the-surprising-key-to-distilling-efficient-reasoning-models-6fe42e5e9de282bc"
canonical: "https://huggingface.co/blog/ServiceNow-AI/apriel-h1"
source: "Hugging Face"
published: "2025-11-19"
difficulty: "hard"
kind: "Research"
reading_minutes: 8
tags: ["model-training","llms","inference","machine-learning"]
---

# Apriel-H1: The Surprising Key to Distilling Efficient Reasoning Models

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-11-19, 8 min read, Research. Original: [https://huggingface.co/blog/ServiceNow-AI/apriel-h1](https://huggingface.co/blog/ServiceNow-AI/apriel-h1)

## Summary

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.

Written by swe.quest, not by the author.

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

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- knowledge distillation
- transformer attention
- state space models / Mamba
- KL divergence

## Keywords

Apriel-H1, Mamba, Fast-LLM, Mamba-in-Llama, reverse KL divergence, vLLM, Hugging Face Transformers

## Related posts

- [Productizing Large Language Models](https://swe.quest/articles/productizing-large-language-models-5be0923873af50a1.md): Replit · 2022-09-21 · Medium · 6 min read · Inference & serving, LLMs, AI for coding, Evaluation, Kubernetes
  Replit 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.
- [Bamba: Inference-Efficient Hybrid Mamba2 Model](https://swe.quest/articles/bamba-inference-efficient-hybrid-mamba2-model-f1478e8a124ba6bc.md): Hugging Face · 2024-12-18 · Hard · 21 min read · LLMs, Inference & serving, Model training, Evaluation
  Bamba-9B is a hybrid Mamba2 language model from IBM, Princeton, CMU and UIUC, trained on 2.2T tokens of fully open data.
- [Can we change an AI model’s architecture without retraining it from scratch?](https://swe.quest/articles/can-we-change-an-ai-model-s-architecture-without-retraining-it-from-scratch-c231ad096fc1d55f.md): Amazon Science · 2026-10-12 · Hard · 11 min read · LLMs, Model training, Inference & serving, Performance engineering
  Priming converts pretrained Transformers into hybrid state space models by reusing attention query/key/value projections as SSM input projections.
- [Welcome Falcon Mamba: The first strong attention-free 7B model](https://swe.quest/articles/welcome-falcon-mamba-the-first-strong-attention-free-7b-model-207d13ee4cb1b108.md): Hugging Face · 2024-08-12 · Medium · 8 min read · LLMs, Inference & serving, Evaluation, Model training
  Falcon Mamba 7B from TII is a pure Mamba state space language model with extra RMS normalization layers for stable training at scale.
- [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.

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)
