Qwen3-0.6B โ€” INT4 W4A8 (NormalFloat4 NF4)

High-fidelity 4-bit NormalFloat (NF4) quantized checkpoint of Qwen/Qwen3-0.6B for high-speed, low-memory text generation.

Quantization Specification

  • Method: bitsandbytes NormalFloat4 (NF4)
  • Quant Storage: uint8
  • Double Quantization: Enabled (compresses second-level quantization constants)
  • Compute Precision: float16 / bfloat16 (W4A8/W4A16 execution)
  • Protected Modules: lm_head retained in full precision to eliminate logit drift
  • Target Size: ~380 MB safetensors (down from ~1.2 GB FP16)
  • VRAM Required: < 500 MB

Usage

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "warlockzero/Qwen3-0.6B-int4"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.float16
)

prompt = "Artificial Intelligence is"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month
33
Safetensors
Model size
0.6B params
Tensor type
F16
ยท
U8
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for warlockzero/Qwen3-0.6B-int4

Finetuned
Qwen/Qwen3-0.6B
Quantized
(580)
this model