alt.freeweights.qwen / GDN-primed-HQwen3-8B-Reasoner
From: amazon <huggingface.co/amazon>Newsgroups: alt.freeweights.qwenSubject:

GDN-primed-HQwen3-8B-Reasoner

Date: 2026-11-15Commit: 62a72fcSigned: 2DC28CC7B26A283B ✓

Text generation model with 8.5B parameters. Safetensors weights, 17.0 GB in all. Published by amazon under Apache-2.0.

8.5B params17.0GBGDN-primed-HQwen3-8B-Reasonersafetensorspermissive
FactsParams8.5BSize17.0 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get amazon/GDN-primed-HQwen3-8B-Reasoner
# manifest sha256 dc8c9e0f46a6… · 17.0 GB · 12 files
$ fw verify ./GDN-primed-HQwen3-8B-Reasoner amazon/GDN-primed-HQwen3-8B-Reasoner
From sourceHosted (signed)amazon/GDN-primed-HQwen3-8B-ReasonerLast check: 2026-11-15 04:14 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Qwen3-8B.

Works with

Overview

Size
17.0 GB
Weights
17.0 GB (safetensors)
Parameters
8.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
12, each with a sha256
Publisher
amazon
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen3-8B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:14 UTCpassed

Model card

From the publisher at commit 62a72fc. Shown as plain text with links; images open at the publisher.

GDN-primed-HQwen3-8B-Reasoner#

GDN-primed-HQwen3-8B-Reasoner is a Hybrid language model consisting of 50% Attention layers and 50% Gated DeltaNet (GDN) layers, primed from Qwen3-8B using the Hybrid Model Factory Priming pipeline. The model is trained for long-context reasoning and supports context lengths of 128K tokens.

GDN is a State-Space Model layer with constant memory and linear compute cost in the sequence length.

By combining Attention with GDN, our Hybrid model achieves up to 2× faster inference at long contexts while closely matching the base Transformer's quality.

Why Hybrid?#

Each Primed Hybrid model is initialized from a base Transformer by converting a portion of its Attention layers into State-Space Model (SSM) layers that maintain a fixed-size recurrent state instead of a growing KV cache. At a 50% Hybrid ratio, roughly half the KV cache (which grows linearly with sequence length) is replaced with fixed-size SSM state. The practical benefits:

  • Higher throughput at long contexts — less memory on KV cache means more memory for batching
  • More concurrent sequences — ~2× as many concurrent sequences before hitting memory limits
  • Growing advantage with context length — at long contexts, Attention dominates the forward pass while SSM layers remain negligible in cost. Since the Hybrid model makes roughly half as many Attention calls as the base Transformer, the throughput advantage grows with context length

Increasing hybridization ratio, replacing more Attention layers with SSM layers, further reduces memory and increases throughput, typically at the expense of performance.

Model Overview#

  • Type: Causal Language Model (Hybrid Attention + SSM)
  • Base Model: Qwen3-8B
  • Hybrid Layer Type: Gated DeltaNet (GDN)
  • Hybrid Ratio: 50% (18 Attention + 18 GDN layers)
  • Parameters: ~8B
  • Context Length: 128K natively
  • Precision: bfloat16
  • License: Apache 2.0

Benchmark Results#

We consider the following Transformer as a baseline:

  1. Qwen3-8B (thinking, from HF): The original Qwen model evaluated in thinking mode, which is the intended mode for reasoning tasks. This serves as the base Transformer from which we start the Priming procedure.
Reasoning Benchmarks#

Evaluations on math reasoning (AIME24/25), science (GPQA), coding (LiveCodeBenchv5, Scicode), tool-calling (BFCLv3/v4), and instruction-following (IFBench). Evaluations are done using the Nemo Evaluator SDK. We have provided the evaluation configuration examples/evaluation/nemo_reasoning_evals.yaml for reproducibility. Evaluations are done at 64K generation length.

ModelAIME24AIME25GPQALiveCodeBench-v5BFCLv4 (minus web-search)BFCLv3IFBenchSciCodeAverage
Qwen3-8B (thinking, from HF)78.6771.057.7757.9468.3066.4631.6010.6355.29
GKA-primed-HQwen3-8B-Reasoner82.0073.6761.8163.1066.4762.2038.966.4156.82
GDN-primed-HQwen3-8B-Reasoner82.0073.3361.4962.9463.2757.4437.802.5055.10

For BFCLv4, we remove the web-search subtask and weight each task by the number of entries (test examples) for that task.

How close are the Hybrid models to the Transformer baseline on complex reasoning tasks? Our Primed Hybrid models are competitive with the Qwen3-8B (thinking, from HF) model despite <0.5% of the base Transformer's pre-training token budget. In particular, Primed GKA outperforms the Transformer baseline by ~1.5 points on average.

Which SSM layer type performs best? Primed GKA uniformly outperforms GDN across all reasoning tasks, with a +1.73 point average gain — consistent with the expressiveness order of their respective SSM layers.

About Gated DeltaNet (GDN)#

Gated DeltaNet is a State-Space Model layer with diagonal + low-rank transition dynamics. It extends Mamba2 with the Delta Update rule, improving expressiveness through gated state transitions while retaining Mamba2's efficiency.

For more details, see the GDN paper.

Architecture Details#
ComponentDetails
Number of Layers36 (18 Attention + 18 GDN)
Hidden Dimension4096
Attention Heads32 (Q) / 8 (KV)
Head Dimension128
Intermediate Dimension (FFN)12288
Vocabulary Size151,936
Position EncodingRoPE (θ = 5,000,000)
Layer LayoutGDN layer indices were selected with our selective hybridization procedure
Inference Efficiency#

Sustained decode throughput (tokens/s) on 8× H200 GPUs (TP=8), measured during pure decode with a saturated KV cache. Benchmarked with random data (no prefix-caching benefits). See the full Inference guide for methodology and additional models.

Model16K32K64K128K
GDN-primed-HQwen3-8B-Reasoner17,479 (1.95×)10,080 (1.95×)5,521 (2.01×)2,863 (2.33×)
GKA-primed-HQwen3-8B (num_iter=30, default)15,892 (1.78×)9,159 (1.77×)5,173 (1.89×)2,736 (2.23×)
Mamba2-primed-HQwen3-8B16,844 (1.88×)9,966 (1.93×)5,460 (1.99×)2,825 (2.30×)
BMOJOF-primed-HQwen3-8B7,854 (0.88×)5,597 (1.08×)3,573 (1.30×)2,153 (1.75×)
Qwen3-8B (thinking, from HF)8,9515,1742,7401,227

Mean TTFT at the Transformer's saturated batch size (Hybrid model has memory to spare):

Model16K32K64K128K
GDN-primed-HQwen3-8B-Reasoner27,805 ms (1.00×)30,975 ms (0.95×)36,151 ms (0.85×)46,389 ms (0.74×)
GKA-primed-HQwen3-8B (num_iter=30, default)35,013 ms (1.26×)38,502 ms (1.18×)44,893 ms (1.06×)53,606 ms (0.85×)
Mamba2-primed-HQwen3-8B28,668 ms (1.03×)31,405 ms (0.96×)36,666 ms (0.86×)46,618 ms (0.74×)
BMOJOF-primed-HQwen3-8B44,763 ms (1.61×)47,600 ms (1.46×)52,272 ms (1.23×)61,702 ms (0.98×)
Qwen3-8B (thinking, from HF)27,736 ms32,661 ms42,462 ms62,922 ms

The decode throughput advantage grows with context length — from 1.95× at 16K to 2.33× at 128K — thanks to GDN layers maintaining a fixed-size recurrent state instead of a growing KV cache. TTFT crosses over at 32K and reaches 0.74× (26% faster) at 128K.

Usage#

Install the Hybrid Model Factory vLLM plugin in your local environment, then serve:

vllm serve amazon/GDN-primed-HQwen3-8B-Reasoner \
  --enable-prefix-caching \
  --mamba-cache-mode align \
  --mamba-cache-dtype float32 \
  --mamba-ssm-cache-dtype float32 \
  --enable-auto-tool-choice \
  --tool-call-parser hermes \
  --reasoning-parser qwen3

Query the server:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "amazon/GDN-primed-HQwen3-8B-Reasoner",
    "messages": [
      {"role": "user", "content": "What is Linear Attention in the context of LLMs?"}
    ],
    "temperature": 1.0,
    "top_p": 1.0
  }'

Tip. The --mamba-cache-dtype float32 and --mamba-ssm-cache-dtype float32 flags are important for accurate long-context generation. See the Inference guide for details on all recommended flags.

Tip. Similarly to NVIDIA-Nemotron-3-Nano-30B-A3B-BF16, for generic reasoning tasks (e.g. Math, Science) we recommend setting temperature=1.0 and top_p=1.0. For tool-calling we recommend temperature=0.6, top_p=0.95.

Thinking Versus Non-thinking Setting#

Our reasoning model supports thinking on/off modes. Whenever thinking mode is on, the model will reason for multiple tokens in a segment delimited by <think> and </think> (which is extracted by the reasoning parser) before producing a response. This is necessary for difficult queries and increases response quality at the expense of higher latency. Thinking mode is enabled by default, however thinking mode can be turned off via the chat template.

If you want to query the model with thinking mode off, query the model as follows:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "amazon/GDN-primed-HQwen3-8B-Reasoner",
    "messages": [
      {"role": "user", "content": "What is Linear Attention in the context of LLMs?"}
    ],
    "chat_template_kwargs": {"enable_thinking": false}
  }'
With Hugging Face Transformers#

Warning. Due to the long generations produced by reasoning models, the lower latency provided by vLLM is preferred over Hugging Face for evaluations and in production settings. We recommend Hugging Face generation primarily for quick debugging or testing.

from transformers import AutoModelForCausalLM, AutoTokenizer
import hmf.model.hybrid_zoo.models.model_register  # Register Hybrid models

model = AutoModelForCausalLM.from_pretrained(
    "amazon/GDN-primed-HQwen3-8B-Reasoner", trust_remote_code=True
).to("cuda")
tokenizer = AutoTokenizer.from_pretrained("amazon/GDN-primed-HQwen3-8B-Reasoner")

messages = [{"role": "user", "content": "What is linear attention in the context of LLMs?"}]
prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=True
)
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=65536, temperature=1.0, top_p=1.0)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

In order to turn thinking mode off, simply specify enable_thinking=False when applying the chat template:

messages = [{"role": "user", "content": "What is linear attention in the context of LLMs?"}]
prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)

Training data#

These models were produced through the multi-stage Priming pipeline from Hybrid Model Factory. Training data spans web documents, mathematics, long-context documents, and instruction-following and reasoning examples — each targeting a different capability axis. This diversity is critical: it allows the Priming procedure to convert a base Transformer into a more memory- and compute-efficient Hybrid architecture at nearly the same level of performance, using <0.5% of the base Transformer model's pre-training token budget.

Responsible AI Considerations#

At Amazon, we are committed to developing AI responsibly and take a people-centric approach that prioritizes education, science, and our customers, to integrate responsible AI across the end-to-end AI lifecycle. We believe the use of AI must respect the rule of law and human rights, and we encourage the safe and responsible development of AI. When downloaded or used in accordance with AWS Responsible AI Policy, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. Please report model quality, risk, security vulnerabilities or Amazon AI Concerns here.

Citation#

@software{hybrid_model_factory,
  title = {Hybrid Model Factory},
  year = {2026},
  url = {https://github.com/awslabs/hybrid-model-factory}
}

@misc{yang2025gateddeltanetworksimproving,
      title={Gated Delta Networks: Improving Mamba2 with Delta Rule}, 
      author={Songlin Yang and Jan Kautz and Ali Hatamizadeh},
      year={2025},
      eprint={2412.06464},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2412.06464}, 
}

License#

This model is licensed under the Apache 2.0 License.

Files

12 files · 17.0 GBWeights 17.0 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md14.0 KBa131ea8d30dec6ea2e70b76c27ae06b2143054d57b6e953b982526e4fefa3845
chat_template.jinja4.57 KBa78bd121442d6a30e147a65b52114431ca07eb2a97069fa5fc7fb3fb345f9a38
config.json1.66 KB2b89ce363ae692a34a1e01f311117af32c28ea442fd87cb55305ed979a464d54
generation_config.json121 Ba52b5c482438cc48a8bd0ded9b282f6bb5990be8071e944e9cd57e60921b8550
model-00001-of-00004.safetensors4.92 GBb565ab078017a497bec4179a05ec7f8a5a020070bd8bdba2ad7de191cd5b2f14
model-00002-of-00004.safetensors4.92 GBed7062111752fdb86da884dea5bc83f02470c57fae37685a3edee0caa778e6e7
model-00003-of-00004.safetensors4.99 GBc06d4cf817baa2331ae570c7852860885bb7c3f194515ee0ff688dd9d196b194
model-00004-of-00004.safetensors2.16 GB8d5eea7c341e3ccb562ef3fa7892eb20428b9d9c5770bce2017a93e5a1b63aa8
model.safetensors.index.json41.8 KBa913b3d51eaa789709f151e6ec88857c5c0f4cf9ddd9b9d566de326759fd0bcb
tokenizer.json11.4 MBbe75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
tokenizer_config.json375 B47fb9a938aadb92d2023e81b4b4eca16772853d8a4da9654f1444e0e2c89373a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
62a72fc0e1 pinned now2026-11-15 04:14 UTC12 files · 17.0 GB

Use it

$ fw get amazon/GDN-primed-HQwen3-8B-Reasoner
# manifest sha256 dc8c9e0f46a6… · 17.0 GB · 12 files
$ fw verify ./GDN-primed-HQwen3-8B-Reasoner amazon/GDN-primed-HQwen3-8B-Reasoner
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/amazon/GDN-primed-HQwen3-8B-Reasoner.json --dir ./GDN-primed-HQwen3-8B-Reasoner $ python3 fw.py verify ./GDN-primed-HQwen3-8B-Reasoner ./amazon__GDN-primed-HQwen3-8B-Reasoner.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download amazon/GDN-primed-HQwen3-8B-Reasoner --revision 62a72fc0e1ae2a12b40f7b008a5353dce4b48f7d --local-dir ./GDN-primed-HQwen3-8B-Reasoner
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("amazon/GDN-primed-HQwen3-8B-Reasoner", revision="62a72fc0e1ae2a12b40f7b008a5353dce4b48f7d") model = AutoModelForCausalLM.from_pretrained("amazon/GDN-primed-HQwen3-8B-Reasoner", revision="62a72fc0e1ae2a12b40f7b008a5353dce4b48f7d", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve amazon/GDN-primed-HQwen3-8B-Reasoner --revision 62a72fc0e1ae2a12b40f7b008a5353dce4b48f7d

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
a131ea8d30dec6ea2e70b76c27ae06b2143054d57b6e953b982526e4fefa3845
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: amazon <huggingface.co/amazon>Newsgroups: alt.freeweights.qwenSubject: GDN-primed-HQwen3-8B-ReasonerDate: 2026-11-15Commit: 62a72fcSigned: 2DC28CC7B26A283B ✓
Upstream
amazon/GDN-primed-HQwen3-8B-Reasoner
Pinned commit
62a72fc0e1ae2a12b40f7b008a5353dce4b48f7d
Manifest
GDN-primed-HQwen3-8B-Reasoner.json · .minisig
Manifest sha256
dc8c9e0f46a64e93f9ce154c15fe84a242eb390192d5093ff0792afe10e5e97b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:14 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/amazon/GDN-primed-HQwen3-8B-Reasoner.json $ curl -O https://freeweights.allternit.com/manifests/amazon/GDN-primed-HQwen3-8B-Reasoner.json.minisig $ minisign -Vm GDN-primed-HQwen3-8B-Reasoner.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen3-8B · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download amazon/GDN-primed-HQwen3-8B-Reasoner
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. GDN-primed-HQwen3-8B-Reasoner.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF