Downloads · 30 days
309
11% of all-time downloads
malvavisc0/Qwen3.8-9B-gptq-int4
Qwen3.8-9B-gptq-int4 is a text generation model from malvavisc0. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
309
11% of all-time downloads
All-time downloads
2.7K
Public
Parameters
9.7B
9.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.1 GB · 100%
How the weights are stored.
I326.9B · 72%
From the Hugging Face model README

Frontier-scale reasoning. 8.5 GB of VRAM. One consumer GPU.
This is a GPTQ Int4 quantization of
empero-ai/Qwen3.8-9B —
a full-parameter distillation of the Qwen3.8 2.4T A95B teacher into a
dense 9B. Every answer opens with a <think> block learned from
trillion-parameter-scale reasoning traces. The BF16 original needs ~18 GB;
this artifact delivers the same weights in 8.5 GB with a mean
per-layer quantization error of 2.3e-5.
vllm serve command.| Hardware | Fit | Notes |
|---|---|---|
| RTX 4090 / 5090 (24 GB) | ✅ comfortable | Long contexts, batch serving |
| RTX 3090 / A5000 (16–24 GB) | ✅ | The sweet spot |
| RTX 3080 / 4070 Ti (12–16 GB) | ✅ | Clamp --max-model-len for long contexts |
| Apple Silicon (16 GB+ unified) | ✅ | Via vLLM or transformers |
| NVIDIA GB10 / DGX Spark (128 GB unified) | ✅ | Full 262k context, no clamps |
| CPU-only | ⚠️ | Works via transformers, slow — use a GGUF instead |
Rule of thumb: 8.5 GB weights + KV cache. 12 GB of total memory is the practical floor; 16 GB is comfortable; 24 GB+ lets the 262k context breathe.
pip install "vllm>=0.27"
vllm serve malvavisc0/Qwen3.8-9B-gptq-int4 \
--quantization gptq_marlin --max-num-seqs 10
--max-num-seqs 10matters: this is a hybrid GatedDeltaNet/full-attention architecture, and vLLM's Mamba-style cache is happiest with a bounded batch. On 24 GB cards, add--max-model-len 32768(or less) if you don't need the full 262k.
Then talk to it over the OpenAI API:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="x")
resp = client.chat.completions.create(
model="malvavisc0/Qwen3.8-9B-gptq-int4",
messages=[{"role": "user", "content":
"A snail sits at the bottom of a 10 m well. Each day it climbs "
"3 m, each night it slips back 2 m. How many days to escape?"}],
temperature=0.6, top_p=0.95,
extra_body={"top_k": 20, "max_tokens": 16384},
)
print(resp.choices[0].message.content)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "malvavisc0/Qwen3.8-9B-gptq-int4"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [{"role": "user", "content": "Prove that √2 is irrational."}]
inputs = tok.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
out = model.generate(
inputs, max_new_tokens=16384,
temperature=0.6, top_p=0.95, top_k=20, do_sample=True,
)
print(tok.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
temperature=0.6, top_p=0.95, top_k=20. Greedy decoding
causes repetition loops in reasoning models of this class.max_new_tokens ≥ 8192). <think>
blocks are long by design — the model deliberates, then answers. Strip
the <think>...</think> span for end users.<tool_call> format per Qwen3.5's spec;
pass tool definitions via the chat template's tools argument.reasoning_effort (low→xhigh) — dial it down for easy questions,
up for competition math.| Method | GPTQ Int4, group size 128, desc_act |
| Quantizer | gptqmodel 7.3.4 (torch 2.13, transformers 5.15) |
| Calibration | 256 samples: 96 math CoT (nvidia/OpenMathReasoning), 96 code CoT (nvidia/OpenCodeReasoning), 64 agentic tool-use (nvidia/Nemotron-Agentic-v1), rendered through the shipped chat template, seq len 4096 |
| Coverage | 200/200 quantizable text modules (vision tower excluded by design — text-only calibration can't represent it) |
| Quality | mean per-layer GPTQ error 2.3e-5, worst 1.1e-4 |
| Size | 8.5 GB (vs 18 GB BF16) |
| Provenance | aft_provenance.json + quant_log.csv included in this repo |
Base revision: 0934f3d2327ff2df2197495278c4c46ae5a56bd9. Produced with
aft (Aria Finetuner).
empero-ai/Qwen3.8-9B — BF16 original + benchmark tableApache-2.0, inherited from the Qwen3.5-9B base via the upstream distillation. Credit to Empero for the model and the Qwen team for the architecture.