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

BMOJOF-primed-HQwen3-8B-Instruct

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

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

9.3B params18.5GBBMOJOF-primed-HQwen3-8B-Instructsafetensorspermissive
FactsParams9.3BSize18.5 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get amazon/BMOJOF-primed-HQwen3-8B-Instruct
# manifest sha256 da11c26520e2… · 18.5 GB · 12 files
$ fw verify ./BMOJOF-primed-HQwen3-8B-Instruct amazon/BMOJOF-primed-HQwen3-8B-Instruct
From sourceHosted (signed)amazon/BMOJOF-primed-HQwen3-8B-InstructLast 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
18.5 GB
Weights
18.5 GB (safetensors)
Parameters
9.3B
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 ce03c9a. Shown as plain text with links; images open at the publisher.

BMOJOF-primed-HQwen3-8B-Instruct#

BMOJOF-primed-HQwen3-8B-Instruct is a Hybrid language model consisting of 50% Attention layers and 50% B'MOJO-F layers, primed from Qwen3-8B using the Hybrid Model Factory Priming pipeline. The model is instruction-tuned and supports context lengths up to 128K tokens.

The B'MOJO-F layer is a hybrid layer that couples sliding-window Attention (eidetic memory for precise local context) with a State-Space Model (fading memory for a compressed summary of the unbounded past) within a single layer, rather than alternating separate Attention and SSM layers across the model. This makes it unique among hybrid architectures because each B'MOJO-F layer simultaneously maintains both forms of memory, exact recall of recent tokens and an approximate, ever-updating representation of the full history, allowing the model to flexibly trade off between high-fidelity local retrieval and efficient long-range context compression.

By combining Attention with B'MOJO-F, our Hybrid model achieves up to 1.75× 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: B'MOJO-F
  • Hybrid Ratio: 50% (18 Attention + 18 B'MOJO-F layers)
  • Parameters: ~8B
  • 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-8B.

We consider two baselines:

  1. Qwen3-8B (non-thinking, from HF): The original Qwen model evaluated in non-thinking mode, which is the intended mode for an Instruct model. This serves as the base Transformer from which we start the Priming procedure.
  2. Qwen3-8B (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.

Note. For the Qwen3-8B (non-thinking, from HF) model, we used YaRN to evaluate on long-context tasks as directed in the model card

Image: image

How close are the Hybrid models to the Transformer baseline on long context tasks? Primed GKA and GDN Hybrids are within ~1.5 points of Qwen3-8B (Long) on average, while being 1.5–2× faster at inference. Primed B'MOJO-F matches GKA/GDN in quality but is slower due to unfused SSM+SWA kernels (details). Primed Mamba2 lags further behind (approx. 3 point gap), consistent with GKA and GDN's higher expressivity.

Why SSM layers over Sliding Window Attention (SWA)? All Hybrid SSM models outperform the Hybrid SWA model (50% Attention + 50% SWA, window size 512). Even though SWA uses ~2× the effective state size of GKA at BF16, SSM layers retain information from the remote past, while SWA forgets everything beyond its window.

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-8B [non-thinking, from HF]81.3649.3391.7774.3185.5976.47
Qwen3-8B [Long]64.5649.759176.2774.4971.21
GKA-primed-HQwen3-8B-Instruct64.1547.9090.4672.6070.9869.22
GDN-primed-HQwen3-8B-Instruct59.5448.4191.1872.9773.5769.13
Mamba2-primed-HQwen3-8B-Instruct57.7746.9189.5670.9974.8668.02
BMOJOF-primed-HQwen3-8B-Instruct65.6948.6390.0276.4275.6071.27

How close are the Hybrid models to the Transformer baseline on short context tasks? All Primed Hybrid models are within ~3 points of Qwen3-8B (Long), using <0.5% of the base Transformer's pre-training token budget. Note, B'MOJO-F fully matches the Transformer baseline but is slower to deploy (see above).

Which SSM layer type performs best? Among the non B'MOJO-F Hybrids, GKA ranks first (~2 point gap with Qwen3-8B [Long]), followed by GDN, then Mamba2. This ranking correlates with the expressiveness order of their respective SSM layers.

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

About B'MOJO-F#

B'MOJO-F is a hybrid layer that fuses two forms of memory within a single layer: sliding-window Attention (eidetic memory) for exact recall of recent tokens, and a State-Space Model (fading memory) for a compressed, continuously updated summary of the full sequence history. In contrast, other hybrid architectures in this model zoo (GKA, GDN, Mamba2) use entire layers dedicated to one memory type or the other, Attention layers for eidetic memory and SSM layers for fading memory. B'MOJO-F couples both within every hybrid layer, so each layer can simultaneously retrieve precise local context and reference a global summary of the past.

The SSM component inside B'MOJO-F is configurable, this release uses GKA as the SSM mixer. The sliding window size (default 2048 tokens) controls the size of the fading and eidetic memory. For more details, see the B'MOJO paper.

Architecture Details#
ComponentDetails
Number of Layers36 (18 Attention + 18 B'MOJO-F)
Hidden Dimension4096
Attention Heads32 (Q) / 8 (KV)
Head Dimension128
Intermediate Dimension (FFN)12288
Vocabulary Size151,936
Position EncodingRoPE (θ = 5,000,000)
Layer LayoutB'MOJO-F 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
BMOJOF-primed-HQwen3-8B-Instruct7,854 (0.88×)5,597 (1.08×)3,573 (1.30×)2,153 (1.75×)
GKA-primed-HQwen3-8B15,892 (1.78×)9,159 (1.77×)5,173 (1.89×)2,736 (2.23×)
GDN-primed-HQwen3-8B17,479 (1.95×)10,080 (1.95×)5,521 (2.01×)2,863 (2.33×)
Mamba2-primed-HQwen3-8B16,844 (1.88×)9,966 (1.93×)5,460 (1.99×)2,825 (2.30×)
Qwen3-8B (Long)8,9515,1742,7401,227

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

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

B'MOJO-F surpasses the Transformer from 32K onward and reaches 1.75× decode throughput at 128K. Its lower throughput relative to other Hybrid models reflects three forward passes per hybrid layer, which we expect to improve with future kernel optimizations. TTFT converges toward the Transformer at long contexts (0.98× at 128K).

Usage#

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

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

@misc{zancato2024bmojohybridstatespace,
      title={B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memory}, 
      author={Luca Zancato and Arjun Seshadri and Yonatan Dukler and Aditya Golatkar and Yantao Shen and Benjamin Bowman and Matthew Trager and Alessandro Achille and Stefano Soatto},
      year={2024},
      eprint={2407.06324},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2407.06324}, 
}

License#

This model is licensed under the Apache 2.0 License.

Files

12 files · 18.5 GBWeights 18.5 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md17.8 KB9bc6eb532ef1659a7fa2095b634a7fa04f224d14bb14fdfce568c1cfe8bc2d9c
chat_template.jinja4.08 KB3238fb7abc74405749888d6bf679a62d8a4c5b4aef71eafbbe9d92c20d5ea37f
config.json2.05 KB8026eff50ae02570d5e772ed3fcf5b222cdf72134655083acc4d12a1c9b4a578
generation_config.json121 Ba52b5c482438cc48a8bd0ded9b282f6bb5990be8071e944e9cd57e60921b8550
model-00001-of-00004.safetensors4.94 GB2b65c0bca14b2d71d0deed5f90969c31d4c624d522f28220df40b2483c18387c
model-00002-of-00004.safetensors4.99 GB1958fdb3d9ba7f608921d31d4c661c3f5ed2191d5c5320f7f04f4ba70efafe89
model-00003-of-00004.safetensors4.92 GB15f5aac1ad482862007067808a9f922611271559200c1893a7c7e595a0fd7138
model-00004-of-00004.safetensors3.66 GB428c29e2539ab3a66862f73218e87303bc97917976f3a8cae9f2935c46ac6330
model.safetensors.index.json58.1 KBaeb48e5fa8d96bdf90eb0cc02e5dae9d7a423209ad5b127cb9aec1b4cd47000b
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
ce03c9afd2 pinned now2026-11-15 04:14 UTC12 files · 18.5 GB

Use it

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

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
9bc6eb532ef1659a7fa2095b634a7fa04f224d14bb14fdfce568c1cfe8bc2d9c
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: BMOJOF-primed-HQwen3-8B-InstructDate: 2026-11-15Commit: ce03c9aSigned: 2DC28CC7B26A283B ✓
Upstream
amazon/BMOJOF-primed-HQwen3-8B-Instruct
Pinned commit
ce03c9afd23aa88e991662054048f6d5cf64c4d6
Manifest
BMOJOF-primed-HQwen3-8B-Instruct.json · .minisig
Manifest sha256
da11c26520e24cd143d0a45b8648539c0b1bce3ab7425d9948b919f000cd2990
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/BMOJOF-primed-HQwen3-8B-Instruct.json $ curl -O https://freeweights.allternit.com/manifests/amazon/BMOJOF-primed-HQwen3-8B-Instruct.json.minisig $ minisign -Vm BMOJOF-primed-HQwen3-8B-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-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/BMOJOF-primed-HQwen3-8B-Instruct
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. BMOJOF-primed-HQwen3-8B-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: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF
From: mlx-community <huggingface.co/mlx-community>Subject: CLM-v0.1-8B-MLX-8bit