Model reference · open weights

AHN-Mamba2-for-Qwen-2.5

Available as managed deployment Licence fee LLMs ByteDance-Seed Text gen 3 variants 202 dl/mo

AHN-Mamba2-for-Qwen-2.5 is an open-weight language model from ByteDance-Seed. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

MakerByteDance-Seed
TypeLanguage models
TaskText gen
Parameters (lead)12M
Runs withtransformers
Based onQwen/Qwen2.5-3B
Released2025-10-08
Popularity202 downloads / month
LicenceCommercial licence needed

About

What AHN-Mamba2-for-Qwen-2.5 is

Introduction

Artificial Hippocampus Networks (AHNs) transform lossless memory into fixed-size compressed representations for long-context modeling. Lossless memory (e.g., attention’s key-value (KV) cache) stores exact input information but grows with sequence length, making it inefficient for long sequences. In contrast, compressed memory (e.g., RNNs’ hidden state) maintains a constant size and offers fixed computational costs per input token, but this comes at the cost of information loss. To harness the benefits of both memory types, AHNs continually convert lossless memory outside the sliding attention window into compressed form. AHNs can be instantiated with any RNN-like architectures. The model then integrates both memory types to make predictions across long contexts.

This repository hosts the model weights for AHN. For installation, usage instructions, and further documentation, please visit our GitHub repository.

Method

(a) Illustration of the model augmented with Artificial Hippocampus Networks (AHNs). In this example, the sliding window length is 3. When the input sequence length is less than or equal to the window length, the model operates identically to a standard Transformer. For longer sequences, AHNs continually compress the token outside the window into a compact memory representation. The model then utilizes both the lossless information within window, and the compressed memory to generate the next token. (b) Self-distillation training framework of AHNs based on an open-weight LLM. During training, the base LLM's weights are frozen, and only the AHNs' parameters are trained.

Model Zoo

base modelAHN module#paramscheckpoint (AHN only)
Qwen2.5-3B-InstructMamba211.9M🤗model
Qwen2.5-3B-InstructDeltaNet11.8M🤗model
Qwen2.5-3B-InstructGatedDeltaNet13.0M🤗model
Qwen2.5-7B-InstructMamba218.6M🤗model
Qwen2.5-7B-InstructDeltaNet18.5M🤗model
Qwen2.5-7B-InstructGatedDeltaNet21.3M🤗model
Qwen2.5-14B-InstructMamba251.4M🤗model
Qwen2.5-14B-InstructDeltaNet51.1M🤗model
Qwen2.5-14B-InstructGatedDeltaNet61.0M🤗model

Evaluation

LV-Eval & InfiniteBench Results

LongBench Results

Contact

  • Yunhao Fang: yunhao.fang@bytedance.com
  • Weihao Yu (corresponding author): weihao.yu@bytedance.com

Citation

BibTeX:

@article{fang2025artificial,
  title={Artificial hippocampus networks for efficient long-context modeling},
  author={Fang, Yunhao and Yu, Weihao and Zhong, Shu and Ye, Qinghao and Xiong, Xuehan and Wei, Lai},
  journal={arXiv preprint arXiv:2510.07318},
  year={2025}
}

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys ahn-mamba2-for-qwen-2-5 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (ahn-mamba2-for-qwen-2-5 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"ahn-mamba2-for-qwen-2-5","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms