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

GKA-primed-HQwen3-32B-Reasoner

Date: 2026-11-15Commit: ef4e0eeSigned: 2DC28CC7B26A283B ✓

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

34.1B params68.3GBGKA-primed-HQwen3-32B-Reasonersafetensorspermissive
FactsParams34.1BSize68.3 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get amazon/GKA-primed-HQwen3-32B-Reasoner
# manifest sha256 cff864f91167… · 68.3 GB · 23 files
$ fw verify ./GKA-primed-HQwen3-32B-Reasoner amazon/GKA-primed-HQwen3-32B-Reasoner
From sourceHosted (signed)amazon/GKA-primed-HQwen3-32B-ReasonerLast check: 2026-11-15 03:56 UTC

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

Fine-tune of Qwen3-32B.

Works with

Overview

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

Original release from the publisher.

Base model: Qwen/Qwen3-32B

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 03:56 UTCpassed

Model card

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

GKA-primed-HQwen3-32B-Reasoner#

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

GKA (pronounced as gee-ka) is a State-Space Model layer inspired by the Kalman Filter that solves an online ridge regression problem at test time, with constant memory and linear compute cost in the sequence length.

By combining Attention with GKA, 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-32B
  • Hybrid Layer Type: Gated KalmaNet (GKA)
  • Hybrid Ratio: 50% (32 Attention + 32 GKA layers)
  • Parameters: ~32B
  • Context Length: 128K natively
  • Precision: bfloat16
  • License: Apache 2.0

Benchmark Results#

We consider the following Transformer as a baseline:

  1. Qwen3-32B (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-32B (thinking, from HF)86.3370.0065.4064.4469.3069.5732.6115.9459.20
GKA-primed-HQwen3-32B-Reasoner87.6781.6767.3070.2470.1466.3448.2212.3462.99

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

How close is the Hybrid model to the Transformer baseline on complex reasoning tasks? Our Primed GKA Hybrid outperforms the Qwen3-32B (thinking, from HF) baseline by ~3.8 points on average, despite using <0.5% of the base Transformer's pre-training token budget. This is enabled by our multi-stage reasoning training pipeline coupled with higher throughput of Hybrid architectures.

About Gated KalmaNet (GKA)#

Gated KalmaNet is a State-Space Model layer that is more expressive than both Mamba2 and Gated DeltaNet. GKA achieves this by employing the Kalman Filter to compute the optimal state at each time-step based on the entire past. In contrast, SSMs like Mamba2 and GDN rely on instantaneous objectives (that rely solely on the current input and loss estimate of the past) to compute their state.

Unlike other SSM-based hybrid layers, GKA gives you a runtime knob for trading compute against speed — with no retraining nor architecture changes. The num_iter parameter controls how many iterations the GKA solver runs during inference. No other hybrid layer type offers this: GDN and Mamba2 have fixed compute per layer, so their speed is fixed a priori. GKA lets you slide along the compute–latency curve per deployment, making it uniquely suited for scenarios where different endpoints or traffic tiers have different latency budgets.

For details on controlling GKA's compute–speed tradeoff at serving time via num_iter, see GKA Compute Control, and for more details on the modeling choices see the GKA paper.

This release includes optimized Triton kernels for GKA's Chebyshev solver, enabling the throughput numbers reported in Inference Efficiency. The training kernels are in training/.../gated_kalmanet/ops/chebyshev/ and the inference kernels in vllm-inference/.../gka/ops/.

Architecture Details#
ComponentDetails
Number of Layers64 (32 Attention + 32 GKA)
Hidden Dimension5120
Attention Heads64 (Q) / 8 (KV)
Head Dimension128
Intermediate Dimension (FFN)25600
Vocabulary Size151,936
Position EncodingRoPE (θ = 5,000,000)
Layer LayoutGKA layer indices were selected with our selective hybridization procedure
Trade-off inference FLOPs for accuracy.#

As discussed above, GKA offers the unique ability to adjust the inference FLOPs by tuning the num_iter parameter. Here we summarize reasoning performance across different num_iter settings.

ModelAvg. Reasoning Performance
GKA-primed-HQwen3-32B-Reasoner (num_iter=30, default)62.99
GKA-primed-HQwen3-32B-Reasoner (num_iter=10)62.63
GKA-primed-HQwen3-32B-Reasoner (num_iter=5)61.77
GKA-primed-HQwen3-32B-Reasoner (num_iter=1)60.04
Qwen3-32B (thinking, from HF)59.20

For most practical scenarios, we recommend setting num_iter=10 for the best trade-off. See next section for inference gains upon reducing number of iterations.

Note. Interestingly, setting num_iter=0 effectively converts the GKA model to a Gated Linear Attention (GLA) model. Thus, one can think of increasing num iters as improving upon the initial solution of the GLA model.

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
GKA-primed-HQwen3-32B-Reasoner (num_iter=30, default)6,810 (1.29×)4,152 (1.45×)2,385 (1.82×)1,168 (1.99×)
GKA-primed-HQwen3-32B-Reasoner (num_iter=10)7,778 (1.47×)4,534 (1.58×)2,537 (1.94×)1,200 (2.05×)
GKA-primed-HQwen3-32B-Reasoner (num_iter=5)8,039 (1.52×)4,621 (1.61×)2,569 (1.96×)1,206 (2.06×)
GKA-primed-HQwen3-32B-Reasoner (num_iter=1)8,177 (1.54×)4,678 (1.63×)2,593 (1.98×)1,210 (2.06×)
GDN-primed-HQwen3-32B8,133 (1.53×)4,876 (1.70×)2,688 (2.06×)1,238 (2.11×)
Qwen3-32B (thinking, from HF)5,2992,8651,308586

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

Model16K32K64K128K
GKA-primed-HQwen3-32B-Reasoner (num_iter=30, default)52,053 ms (1.32×)58,613 ms (1.21×)68,241 ms (1.05×)84,935 ms (0.90×)
GKA-primed-HQwen3-32B-Reasoner (num_iter=10)48,560 ms (1.23×)55,039 ms (1.13×)64,766 ms (0.99×)81,410 ms (0.86×)
GKA-primed-HQwen3-32B-Reasoner (num_iter=5)47,958 ms (1.22×)54,320 ms (1.12×)63,826 ms (0.98×)80,369 ms (0.85×)
GKA-primed-HQwen3-32B-Reasoner (num_iter=1)46,726 ms (1.19×)53,061 ms (1.09×)62,645 ms (0.96×)79,321 ms (0.84×)
GDN-primed-HQwen3-32B42,492 ms (1.08×)48,417 ms (1.00×)57,525 ms (0.88×)73,145 ms (0.77×)
Qwen3-32B (thinking, from HF)39,421 ms48,527 ms65,104 ms94,479 ms

The decode throughput advantage grows with context length — from 1.29× at 16K to 1.99× at 128K (2.06× with num_iter=1) — thanks to GKA layers maintaining a fixed-size recurrent state instead of a growing KV cache. TTFT crosses over at long contexts: GKA prefills 10–16% faster than the Transformer at 128K depending on num_iter. Reducing num_iter progressively improves both decode and TTFT, with the effect more pronounced at 32B than 8B. See Trade-off inference FLOPs for accuracy for details.

Usage#

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

vllm serve amazon/GKA-primed-HQwen3-32B-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/GKA-primed-HQwen3-32B-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/GKA-primed-HQwen3-32B-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/GKA-primed-HQwen3-32B-Reasoner", trust_remote_code=True
).to("cuda")
tokenizer = AutoTokenizer.from_pretrained("amazon/GKA-primed-HQwen3-32B-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}
}

@inproceedings{gka2026,
  title = {Gated KalmaNet: A Fading Memory Layer Through Test-Time Ridge Regression},
  year = {2026},
  booktitle = {CVPR},
  url = {https://arxiv.org/abs/2511.21016}
}

License#

This model is licensed under the Apache 2.0 License.

Files

23 files · 68.3 GBWeights 68.3 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 23 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md17.6 KB2491f2961425d40bf6a8ceec8743957185f7dcfa43cbb60303c2301713590de5
chat_template.jinja4.57 KBa78bd121442d6a30e147a65b52114431ca07eb2a97069fa5fc7fb3fb345f9a38
config.json2.19 KBa4c89ff6861050161cdceace0152e6c469bc36a93a0d563e6055f1e73a40821f
generation_config.json143 Bf37ab3e1060168ba66e953535c0ffeabd01408c2d171bc83a9e388683513bcb5
model-00001-of-00015.safetensors4.83 GB478cec5089c8f65c97ebdfcbba77f82bda3c26a3892ee0a49995010b4542db14
model-00002-of-00015.safetensors4.79 GBb475b8aea354cc8ac54ee23ca0fe44f7dfcbe6c81b97ad1364ea1bd3d92ffa9a
model-00003-of-00015.safetensors4.77 GB2c35391cbea643bec0be9c48c7c95b2a2f777f574e8ecdbf0f58ff82cd88accd
model-00004-of-00015.safetensors4.97 GB6cb6ff1a978dfae5947c5f0b3f4587eb40335e08547470b13c3da1d484f9bd2f
model-00005-of-00015.safetensors4.77 GB684b9dffd9d8cc64df58a62b374ab3a0a61dd11b547ad504592d16a60f4ac376
model-00006-of-00015.safetensors4.95 GB9ad9e54dce88233680e44c7ff8fc99f12a21326e4f239fe150f041bd1d99aa97
model-00007-of-00015.safetensors4.88 GB71d5076ceee0f0c0e30fdb093bcfba3a0b0c05cfbc49dff433c73d323dc097c4
model-00008-of-00015.safetensors4.95 GB40452ed9c358aa4f265a21076b6e6b1a0f8104d12b24d8d60004bd76d0a51a2e
model-00009-of-00015.safetensors4.87 GBdc3d567871f9920acd67c20823b4a3a13d1500e889165f45b4d2aed9432ea5c7
model-00010-of-00015.safetensors4.87 GB99b013d4b035929154f1cacd3ad36cb7d7b5a43289dfccb99abe66568d1930e7
model-00011-of-00015.safetensors4.88 GB40d49a3c53df9a3972f57f329c40eff612b840b928417f35780b72e6f11025fc
model-00012-of-00015.safetensors4.88 GBf5e12c0ff19cc950cc76a7416a9927916285f4ac4b304361a4ed5b84c58b3d5a
model-00013-of-00015.safetensors4.77 GB6eb490d766b6b254b5478020df5096dd96874fb0f63fad5a4d1fc0576cfba00f
model-00014-of-00015.safetensors3.55 GB9db6929d470db5d6abccde0d233cc02794de60585faa7983278bb11ae072905b
model-00015-of-00015.safetensors1.56 GB32a177f7e42cdf5d80fa75d653b87965c786f8f0458164d4c754b62e8171d670
model.safetensors.index.json81.6 KBdb465a54f0169795df4b8231585e9abe56db2f5fac34e8572589441959dc6b76
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
ef4e0ee205 pinned now2026-11-15 03:56 UTC23 files · 68.3 GB

Use it

$ fw get amazon/GKA-primed-HQwen3-32B-Reasoner
# manifest sha256 cff864f91167… · 68.3 GB · 23 files
$ fw verify ./GKA-primed-HQwen3-32B-Reasoner amazon/GKA-primed-HQwen3-32B-Reasoner
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/amazon/GKA-primed-HQwen3-32B-Reasoner.json --dir ./GKA-primed-HQwen3-32B-Reasoner $ python3 fw.py verify ./GKA-primed-HQwen3-32B-Reasoner ./amazon__GKA-primed-HQwen3-32B-Reasoner.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download amazon/GKA-primed-HQwen3-32B-Reasoner --revision ef4e0ee205468cbdc0512655fb0d8952268b4891 --local-dir ./GKA-primed-HQwen3-32B-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/GKA-primed-HQwen3-32B-Reasoner", revision="ef4e0ee205468cbdc0512655fb0d8952268b4891") model = AutoModelForCausalLM.from_pretrained("amazon/GKA-primed-HQwen3-32B-Reasoner", revision="ef4e0ee205468cbdc0512655fb0d8952268b4891", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve amazon/GKA-primed-HQwen3-32B-Reasoner --revision ef4e0ee205468cbdc0512655fb0d8952268b4891

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
2491f2961425d40bf6a8ceec8743957185f7dcfa43cbb60303c2301713590de5
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: GKA-primed-HQwen3-32B-ReasonerDate: 2026-11-15Commit: ef4e0eeSigned: 2DC28CC7B26A283B ✓
Upstream
amazon/GKA-primed-HQwen3-32B-Reasoner
Pinned commit
ef4e0ee205468cbdc0512655fb0d8952268b4891
Manifest
GKA-primed-HQwen3-32B-Reasoner.json · .minisig
Manifest sha256
cff864f9116741483fa46e028203f086672dae517493f276d24bf718b33e9031
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:56 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/amazon/GKA-primed-HQwen3-32B-Reasoner.json $ curl -O https://freeweights.allternit.com/manifests/amazon/GKA-primed-HQwen3-32B-Reasoner.json.minisig $ minisign -Vm GKA-primed-HQwen3-32B-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-32B · 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/GKA-primed-HQwen3-32B-Reasoner
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. GKA-primed-HQwen3-32B-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