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…
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.
pip install -U huggingface_hub hf download higa2515/Qwen3.8-27B-QSA-BF16
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.
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.
| 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 |
You need a few things in place first.
pip install -U huggingface_hub hf download higa2515/Qwen3.8-27B-QSA-BF16
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 |
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.
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.
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.
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:
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.
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:
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.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen3.8-27B QSA BF16 This page | 457 | 14 | 27.8B | apache-2.0 | |
| Mithi v1 FlashShares bf16 · safetensors | 592 | 70 | — | apache-2.0 | |
| Mithi v2 FlashShares bf16 · safetensors | 62 | 6 | — | apache-2.0 | |
| Qwen2.5-VL-7B-InstructShares multimodal · image-text-to-text · conversational | 5,894,471 | 1,772 | 8.3B | apache-2.0 | |
| UI-TARS-1.5-7BShares multimodal · image-text-to-text · conversational | 230,540 | 622 | 8.3B | apache-2.0 | |
| MiniCPM-V 4.6Shares multimodal · image-text-to-text · conversational | 187,584 | 1,253 | 1.3B | apache-2.0 |
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…
LibertAIDAI · Kit
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…
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…
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…
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…
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…