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

GKA-primed-HQwen3-32B-Instruct

Date: 2026-11-15Commit: 4642223Signed: 2DC28CC7B26A283B ✓

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

34.4B params68.9GBGKA-primed-HQwen3-32B-Instructsafetensorspermissive
FactsParams34.4BSize68.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get amazon/GKA-primed-HQwen3-32B-Instruct
# manifest sha256 b43ff11e1e1e… · 68.9 GB · 23 files
$ fw verify ./GKA-primed-HQwen3-32B-Instruct amazon/GKA-primed-HQwen3-32B-Instruct
From sourceHosted (signed)amazon/GKA-primed-HQwen3-32B-InstructLast check: 2026-11-15 03:54 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.9 GB
Weights
68.9 GB (safetensors)
Parameters
34.4B
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:54 UTCpassed

Model card

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

GKA-primed-HQwen3-32B-Instruct#

GKA-primed-HQwen3-32B-Instruct 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 instruction-tuned and supports context lengths up to 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

Note, this is an Instruction-tuned model and is not a thinking model, that is, it does not natively produce chain-of-thought thinking tokens in its generation trace. Tool calling is not supported by this checkpoint. If you need tool calling capabilities, use the Reasoner checkpoints.

Benchmark Results#

Below we report benchmark performance for all our instruction-tuned Primed models. All Hybrid models use a 50% Hybrid ratio and are Primed from Qwen3-32B.

We consider the following Transformer as a baseline:

  • Qwen3-32B (Long): The Qwen model fine-tuned on our priming data, extending its native context length from 32K to 128K. All Primed Hybrid models use the same training hyperparameters and data as this baseline, making it a fair comparison for differing architectures.

On both long- and short-context benchmarks, our Primed Hybrid models closely match the performance of the Transformer model while having considerably lower deployment costs, showcasing the efficacy of the Priming process.

Long-Context Benchmarks#

Evaluated on HELMET, MRCR, and BABILong across context lengths from 8K to 128K, using a weighted average with geometrically increasing weights for longer contexts.

The plot below shows performance averaged over context lengths from 8K to 128K.

Image: image

How close are the Hybrid models to the Transformer baseline on long context tasks? Primed GKA and GDN hybrids have competitive long-context capabilities with a gap of ~2.5-3 points on average with the Transformer [Qwen3-32B (Long)], while being 1.5–2× faster at inference on long contexts.

Short-Context NLP Benchmarks#

Evaluations on Tulu3-dev from OLMES. All tasks are over a short-context length (≤ 8K). Each category in the table below averages the following Tulu3-dev subtasks:

  1. Math: GSM8K, MATH.
  2. Knowledge: MMLU, PopQA, TruthfulQA.
  3. Coding: HumanEval, HumanEval+.
  4. Reasoning: BigBenchHard.
  5. Instruction Following: IFEval.
ModelMathKnowledgeCodingReasoningInstruction FollowingAverage
Qwen3-32B [Long]74.4354.4794.5482.8981.5277.56
GKA-primed-HQwen3-32B-Instruct74.0253.9593.4380.3178.7476.09
GDN-primed-HQwen3-32B-Instruct73.6554.3594.4080.9979.376.54

How close are the Hybrid models to the Transformer baseline on short context tasks? Our Primed Hybrid models are within ~1-1.5 points of the average performance of the Transformer [Qwen3-32B (Long)] using <0.5% of the base Transformer model’s pre-training token budget.

Note. For applications to complex reasoning and coding problems check out our Primed Hybrid Reasoning models.

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 long context performance across different num_iter settings.

ModelAvg. Long-context Performance
GKA-primed-HQwen3-32B-Instruct (num_iter=30, default)52.4
GKA-primed-HQwen3-32B-Instruct (num_iter=10)51.9
GKA-primed-HQwen3-32B-Instruct (num_iter=5)51.6
GKA-primed-HQwen3-32B-Instruct (num_iter=1)49.5
GKA-primed-HQwen3-32B-Instruct (num_iter=0)41.7
Qwen3-32B (Long)55.0

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-Instruct (num_iter=30, default)6,810 (1.29×)4,152 (1.45×)2,385 (1.82×)1,168 (1.99×)
GKA-primed-HQwen3-32B-Instruct (num_iter=10)7,778 (1.47×)4,534 (1.58×)2,537 (1.94×)1,200 (2.05×)
GKA-primed-HQwen3-32B-Instruct (num_iter=5)8,039 (1.52×)4,621 (1.61×)2,569 (1.96×)1,206 (2.06×)
GKA-primed-HQwen3-32B-Instruct (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 (Long)5,2992,8651,308586

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

Model16K32K64K128K
GKA-primed-HQwen3-32B-Instruct (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-Instruct (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-Instruct (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-Instruct (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 (Long)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 most of the gain coming from 30 → 10. 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-Instruct \
  --enable-prefix-caching \
  --mamba-cache-mode align \
  --mamba-cache-dtype float32 \
  --mamba-ssm-cache-dtype float32

Query the server:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "amazon/GKA-primed-HQwen3-32B-Instruct",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "What is Linear Attention in the context of LLMs?"}
    ]
  }'

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.

With Hugging Face Transformers#

See the Inference guide for details on when we recommend the Hugging Face Transformers implementation as opposed to the highly optimized vLLM one.

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

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
)
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training-Free Context Extension#

This model supports training-free context extension 2-4× its native context via an extension to Hybrid models of PICASO cache composition. See the State Composition guide for usage. Note, this is currently supported in Hugging Face Transformers only.

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.9 GBWeights 68.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 23 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md18.0 KB4b5ba3fe6996009cd2a742c111d6e87c90ebda35b89141ab0114a165aad5308c
chat_template.jinja4.08 KB3238fb7abc74405749888d6bf679a62d8a4c5b4aef71eafbbe9d92c20d5ea37f
config.json2.25 KBb5ce1b9d35b770b32c5515cc73d787058e69bb864d502d69dc493c0ab425d515
generation_config.json143 Bf37ab3e1060168ba66e953535c0ffeabd01408c2d171bc83a9e388683513bcb5
model-00001-of-00015.safetensors4.85 GB43a715af5ddbd37c646e7f42797d57027ffe311418461cbda13f30bcc5272bbc
model-00002-of-00015.safetensors4.82 GB942979ea6e6d148d5d963cc40414c10a0224b4711065417d257dca0f4317c450
model-00003-of-00015.safetensors4.84 GBe64578200adbcc0020dc9820e25b82cfe84fa383fc176487be80865251ba425a
model-00004-of-00015.safetensors4.98 GBc39c7d8cf9151ad9fd6c63a5a1d8f5a3997130e3e2aaf04e9d7886c1e891aad1
model-00005-of-00015.safetensors4.88 GB68a44692fd50ca572479da6d7bfdc39310cd7c8f644d7e64774d9ff45109e18d
model-00006-of-00015.safetensors4.74 GB36c39df8b64e7fed771192346a1f3f4e169c76bf2f5564c50530275166bcf312
model-00007-of-00015.safetensors4.96 GB933897f06b29616326b25eb3deda130c9e56b793f7581485d40174535c0bbdd9
model-00008-of-00015.safetensors4.99 GB9a9e20d3d5655509a4ceed3f1484e2bcb24f1319671dd6175b426656eede4d5c
model-00009-of-00015.safetensors5.00 GB1ae1f696bed0a173b378caa87f3b1114ae1e116d2e6952db1c2959b093baf933
model-00010-of-00015.safetensors4.87 GB6148dd46d5d9f4402648621e14aed0b701e38efbca383766c63da6494e691b22
model-00011-of-00015.safetensors4.88 GB95330cc71867ca1c3b84b94cdecae4e09df1928904b0db566ca841d968ebd6ee
model-00012-of-00015.safetensors4.88 GBe0e0711ed592ea2c3d95a4d85f7d5a9e4b4793cf216efa714523e1bb26d192f2
model-00013-of-00015.safetensors4.79 GB9863ea8d959acbeeb1413a7b9ab3be24eb0cd12213581a7c4b2773d9193d9606
model-00014-of-00015.safetensors3.85 GB5cbfbf92b06545366489f7bfdddfcca802b98a0fa7d0ebe39f33df230c57a72a
model-00015-of-00015.safetensors1.56 GB4a91db3cb0a773dbacb813a93d11999d4fdd1056de356b0b6a9c2329fa6bfa74
model.safetensors.index.json96.9 KBb7658f5150a68bed57f308e019d63f8f0a662a461755328598a937afa3e08abc
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
46422230ab pinned now2026-11-15 03:54 UTC23 files · 68.9 GB

Use it

$ fw get amazon/GKA-primed-HQwen3-32B-Instruct
# manifest sha256 b43ff11e1e1e… · 68.9 GB · 23 files
$ fw verify ./GKA-primed-HQwen3-32B-Instruct amazon/GKA-primed-HQwen3-32B-Instruct
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-Instruct.json --dir ./GKA-primed-HQwen3-32B-Instruct $ python3 fw.py verify ./GKA-primed-HQwen3-32B-Instruct ./amazon__GKA-primed-HQwen3-32B-Instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download amazon/GKA-primed-HQwen3-32B-Instruct --revision 46422230abe3b0084dc8433ec02457b6b39f62e0 --local-dir ./GKA-primed-HQwen3-32B-Instruct
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-Instruct", revision="46422230abe3b0084dc8433ec02457b6b39f62e0") model = AutoModelForCausalLM.from_pretrained("amazon/GKA-primed-HQwen3-32B-Instruct", revision="46422230abe3b0084dc8433ec02457b6b39f62e0", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve amazon/GKA-primed-HQwen3-32B-Instruct --revision 46422230abe3b0084dc8433ec02457b6b39f62e0

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
4b5ba3fe6996009cd2a742c111d6e87c90ebda35b89141ab0114a165aad5308c
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-InstructDate: 2026-11-15Commit: 4642223Signed: 2DC28CC7B26A283B ✓
Upstream
amazon/GKA-primed-HQwen3-32B-Instruct
Pinned commit
46422230abe3b0084dc8433ec02457b6b39f62e0
Manifest
GKA-primed-HQwen3-32B-Instruct.json · .minisig
Manifest sha256
b43ff11e1e1ee25b44fe8270eb73c057e804004e963d87d247e26130ce20b1e2
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:54 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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