Mindket

Qwen3.8-27B QSA BF16

Newversion 1 · updated

Overview

BF16 source weights of Qwen3.8-27B with learned sparse attention indexers added, plus a reference Transformers loader, for people studying or deploying Qwen Sparse Attention.

Qwen3.8-27B QSA BF16 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • The packaged requirements file, which the card says to install
  • torch 2.14.1 with CUDA 12.6 and torchvision 0.29.1, the captured environment, while the native runtime uses CUDA 12.9
  • About 55.7 GB of disk for the BF16 weights
Runs in
  • Python with transformers, as a reference loader for checking correctness
  • A custom llama.cpp engine for QSA, which the card says is needed because stock llama.cpp does not support QSA files
  • Windows, macOS or Linux, with Python for the download step
Start with
pip install -U huggingface_hub
hf download higa2515/Qwen3.8-27B-QSA-BF16

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Qwen3.8-27B QSA BF16 is Qwen3.8-27B with learned indexers added for Qwen Sparse Attention, or QSA. The original backbone, vision and MTP weight files are unchanged, byte for byte. The only new weights are FP32 indexers, 52,434,944 of them, placed in the 16 layers that use full attention. The other 48 layers keep their Gated DeltaNet design.

QSA uses a compressed indexer to pick which context blocks each token attends to. The card says all original KV entries are kept, so this is not KV-cache compression.

Who it suits

It suits researchers and engineers who study sparse attention or want to deploy QSA models. The record lists 27.8B parameters and about 55.7 GB in BF16.

IndustryWho uses itHow they use itExample
ResearchML researchersStudy learned sparse attention on a 27B modelReading how the indexers pick context
Inference engineeringRuntime developersBuild or test sparse-kernel servingRunning the QSA engine on a GGUF file
SoftwareDevelopersRun a long-context multimodal model locallyAsking questions over a long document
Model toolingQuantization engineersConvert the BF16 source to other formatsMaking a Q8_0 file

Skip it if you want a plain chat model. This is a source release with a special engine behind it.

Where to use it

  • Python with transformers, as a reference loader for checking correctness
  • A custom llama.cpp engine for QSA, which the card says is needed because stock llama.cpp does not support QSA files
  • Windows, macOS or Linux, with Python for the download step
Use caseWhoWhat they get back
Reference loadingResearchersA Transformers load that checks correctness, without native sparse speed
DeploymentEngineersA QSA GGUF run through the dedicated engine
ConversionTooling developersThe BF16 source for building other quants

How to set it up

You need a few things in place first.

  • Python and pip
  • The packaged requirements file, which the card says to install
  • torch 2.14.1 with CUDA 12.6 and torchvision 0.29.1, the captured environment, while the native runtime uses CUDA 12.9
  • About 55.7 GB of disk for the BF16 weights
  1. Install the Hugging Face hub package with pip.
  2. Download the repository with the hf command.
  3. Install the requirements file and read the packaged custom code before you enable it.
pip install -U huggingface_hub
hf download higa2515/Qwen3.8-27B-QSA-BF16

How to use it

For a correctness check, load the model through transformers with remote code enabled, as below. The card says this wrapper has no native sparse-kernel speed, text uses a standard attention mask, and MTP is not implemented.

from transformers import AutoModelForImageTextToText, AutoProcessor

path = "higa2515/Qwen3.8-27B-QSA-BF16"
processor = AutoProcessor.from_pretrained(path, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
    path, trust_remote_code=True, dtype="auto", device_map="auto",
    attn_implementation="sdpa",
)

For deployment, you pick a GGUF variant and start the QSA engine. The card sets the model file and folder through two environment variables on the launch script.

QSA_MODEL=Qwen3.8-27B-QSA-Unsloth-UD-Q5_K_M.gguf QSA_MODEL_DIR=/path/to/gguf ./qsa27b-runtime/launch.sh
VariantSourceSize
Q8_0Converted from this QSA BF16 release29.26 GB
UD-Q4_K_MUnsloth's mixed-precision weights, with the indexers added16.67 GB
UD-Q5_K_MUnsloth's mixed-precision weights, with the indexers added19.98 GB
UD-Q6_KUnsloth's mixed-precision weights, with the indexers added22.19 GB

Example

You pick the UD-Q5_K_M file, set the two environment variables and run the launch script. The engine then serves the model with native QSA for text, images and video, and you chat with it as you would with any local model.

For newcomers and experts

This is an advanced release. If you are new, try an ordinary Qwen3.8-27B GGUF first, and come back when you want to see QSA at work.

The indexer picks context in blocks of four tokens, using a fixed K of 2,048 plus the current block. The 12.5 percent figure describes K at 16k tokens only, not a constant ratio. Indexer training took 300 steps at a sequence length of 16,384. Half of the data was multimodal, and generated OCR, table and shape exercises were added. The backbone and vision weights were left alone.

File sizes in the card
Q8_0 GGUF29.26 GB
UD-Q4_K_M GGUF16.67 GB
UD-Q5_K_M GGUF19.98 GB
UD-Q6_K GGUF22.19 GB
BF16 source55.7 GB
  1. Download the BF16 source or a GGUF
  2. Pick a variant that fits your memory
  3. Start the QSA engine
  4. Chat with sparse attention on

Good to know

  • License: Apache 2.0
  • Cost to run: none named, but you need GPU memory for 16.67 GB to 55.7 GB of weights
  • Data it reaches: it downloads files from Hugging Face, and the Transformers path runs packaged custom code on your machine
  • Not for: stock llama.cpp, which does not support these QSA files

README and files

README

Qwen3.8-27B QSA BF16

BF16 source weights of Qwen3.8-27B with learned sparse attention indexers added, plus a reference Transformers loader, for people studying or deploying Qwen Sparse Attention.

Made by higa2515 on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Qwen3.8-27B QSA BF16 is Qwen3.8-27B with learned indexers added for Qwen Sparse Attention, or QSA. The original backbone, vision and MTP weight files are unchanged, byte for byte. The only new weights are FP32 indexers, 52,434,944 of them, placed in the 16 layers that use full attention. The other 48 layers keep their Gated DeltaNet design.

QSA uses a compressed indexer to pick which context blocks each token attends to. The card says all original KV entries are kept, so this is not KV-cache compression.

Who it suits: It suits researchers and engineers who study sparse attention or want to deploy QSA models. The record lists 27.8B parameters and about 55.7 GB in BF16.

Industry | Who uses it | How they use it | Example
Research | ML researchers | Study learned sparse attention on a 27B model | Reading how the indexers pick context
Inference engineering | Runtime developers | Build or test sparse-kernel serving | Running the QSA engine on a GGUF file
Software | Developers | Run a long-context multimodal model locally | Asking questions over a long document
Model tooling | Quantization engineers | Convert the BF16 source to other formats | Making a Q8_0 file

Skip it if you want a plain chat model. This is a source release with a special engine behind it.

Where to use it:

  • Python with transformers, as a reference loader for checking correctness
  • A custom llama.cpp engine for QSA, which the card says is needed because stock llama.cpp does not support QSA files
  • Windows, macOS or Linux, with Python for the download step
Use case | Who | What they get back
Reference loading | Researchers | A Transformers load that checks correctness, without native sparse speed
Deployment | Engineers | A QSA GGUF run through the dedicated engine
Conversion | Tooling developers | The BF16 source for building other quants

How to set it up: You need a few things in place first.

  • Python and pip
  • The packaged requirements file, which the card says to install
  • torch 2.14.1 with CUDA 12.6 and torchvision 0.29.1, the captured environment, while the native runtime uses CUDA 12.9
  • About 55.7 GB of disk for the BF16 weights
  1. Install the Hugging Face hub package with pip.
  2. Download the repository with the hf command.
  3. Install the requirements file and read the packaged custom code before you enable it.
pip install -U huggingface_hub
hf download higa2515/Qwen3.8-27B-QSA-BF16

How to use it: For a correctness check, load the model through transformers with remote code enabled, as below. The card says this wrapper has no native sparse-kernel speed, text uses a standard attention mask, and MTP is not implemented.

from transformers import AutoModelForImageTextToText, AutoProcessor

path = "higa2515/Qwen3.8-27B-QSA-BF16"
processor = AutoProcessor.from_pretrained(path, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
    path, trust_remote_code=True, dtype="auto", device_map="auto",
    attn_implementation="sdpa",
)

For deployment, you pick a GGUF variant and start the QSA engine. The card sets the model file and folder through two environment variables on the launch script.

QSA_MODEL=Qwen3.8-27B-QSA-Unsloth-UD-Q5_K_M.gguf QSA_MODEL_DIR=/path/to/gguf ./qsa27b-runtime/launch.sh
Variant | Source | Size
Q8_0 | Converted from this QSA BF16 release | 29.26 GB
UD-Q4_K_M | Unsloth's mixed-precision weights, with the indexers added | 16.67 GB
UD-Q5_K_M | Unsloth's mixed-precision weights, with the indexers added | 19.98 GB
UD-Q6_K | Unsloth's mixed-precision weights, with the indexers added | 22.19 GB

Example: You pick the UD-Q5_K_M file, set the two environment variables and run the launch script. The engine then serves the model with native QSA for text, images and video, and you chat with it as you would with any local model.

For newcomers and experts: This is an advanced release. If you are new, try an ordinary Qwen3.8-27B GGUF first, and come back when you want to see QSA at work.

The indexer picks context in blocks of four tokens, using a fixed K of 2,048 plus the current block. The 12.5 percent figure describes K at 16k tokens only, not a constant ratio. Indexer training took 300 steps at a sequence length of 16,384. Half of the data was multimodal, and generated OCR, table and shape exercises were added. The backbone and vision weights were left alone.

Title: File sizes in the card
Q8_0 GGUF: 29.26 GB
UD-Q4_K_M GGUF: 16.67 GB
UD-Q5_K_M GGUF: 19.98 GB
UD-Q6_K GGUF: 22.19 GB
BF16 source: 55.7 GB
Download the BF16 source or a GGUF
Pick a variant that fits your memory
Start the QSA engine
Chat with sparse attention on

Good to know:

  • License: Apache 2.0
  • Cost to run: none named, but you need GPU memory for 16.67 GB to 55.7 GB of weights
  • Data it reaches: it downloads files from Hugging Face, and the Transformers path runs packaged custom code on your machine
  • Not for: stock llama.cpp, which does not support these QSA files

On Hugging Face, 13 November 2026

  • Task: image text to text
  • Library: transformers
  • Parameters: 27.8B
  • Weights: about 55.7 GB in BF16; about 13.9 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 457
  • Likes: 14
  • License: apache-2.0
  • Based on: Qwen/Qwen3.8-27B
  • Quantized versions: 1
  • Tags: transformers, safetensors, qwen3_5_qsa, image-text-to-text, multimodal, bf16, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download higa2515/Qwen3.8-27B-QSA-BF16

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Qwen3.8-27B QSA BF16 This page4571427.8Bapache-2.0
Mithi v1 FlashShares bf16 · safetensors59270—apache-2.0
Mithi v2 FlashShares bf16 · safetensors626—apache-2.0
Qwen2.5-VL-7B-InstructShares multimodal · image-text-to-text · conversational5,894,4711,7728.3Bapache-2.0
UI-TARS-1.5-7BShares multimodal · image-text-to-text · conversational230,5406228.3Bapache-2.0
MiniCPM-V 4.6Shares multimodal · image-text-to-text · conversational187,5841,2531.3Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New