Downloads · 30 days
76
56% of all-time downloads
Sohailhosseini/Qwen3-4B-Base-FP8
Qwen3-4B-Base-FP8 is a text generation model from Sohailhosseini. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Qwen/Qwen3-4B-Base quantized to FP8 (8-bit weights).
Downloads · 30 days
76
56% of all-time downloads
All-time downloads
136
Public
Parameters
4B
4.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.4 GB · 100%
How the weights are stored.
F8_E4M33.6B · 90%
From the Hugging Face model README
Qwen/Qwen3-4B-Base quantized to FP8 (8-bit weights).
Near-lossless, no calibration data, and it halves every Linear weight. The safe default when you care about quality and have Ada/Hopper or newer.
Caveat. Needs compute capability >= 8.9 (Ada/Hopper+) to run fast.
| Source | Qwen/Qwen3-4B-Base |
| Scheme | FP8 (8-bit) |
| Format | compressed-tensors |
| Parameters | 4.0B |
| Size on disk | 4.4 GB |
| Compression | 1.82x smaller than the 8.0 GB source |
| Left unquantized | lm_head |
| Quantized on | RTX A6000 |
| Quantized by | Sohailhosseini |
vllm serve Sohailhosseini/Qwen3-4B-Base-FP8 \
--max-model-len 32768
from vllm import LLM, SamplingParams
if __name__ == "__main__":
llm = LLM("Sohailhosseini/Qwen3-4B-Base-FP8", max_model_len=32768)
out = llm.chat(
[{"role": "user", "content": "What is quantization? Answer in one sentence."}],
SamplingParams(temperature=0.6, max_tokens=512),
)
print(out[0].outputs[0].text)
Produced with HF-quantized. recipe.yaml in this repo is the exact modifier stack that was applied, and the scheme, ignored layers and hardware are in the table above.
Licence is inherited from the source model. Quantization does not change what you are permitted to do with the weights.