Downloads · 30 days
21
14% of all-time downloads
rtj1/Qwen2.5-0.5B-AWQ-FP8-Block
Qwen2.5-0.5B-AWQ-FP8-Block is a text generation model from rtj1. 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.
This is a quantized version of Qwen/Qwen2.5-0.5B-Instruct using AWQ + FP8BLOCK quantization scheme.
Downloads · 30 days
21
14% of all-time downloads
All-time downloads
152
Public
Parameters
630M
914 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors903 MB · 98%
How the weights are stored.
F8_E4M3358M · 57%
From the Hugging Face model README
This is a quantized version of Qwen/Qwen2.5-0.5B-Instruct using AWQ + FP8_BLOCK quantization scheme.
Evaluated on GSM8K benchmark:
| Metric | Score |
|---|---|
| Strict Match | 17.97% |
| Flexible Extract | 29.80% |
For better accuracy, use the FP8_DYNAMIC variant which achieves 22.67% strict match.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"rtj1/Qwen2.5-0.5B-AWQ-FP8-Block",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("rtj1/Qwen2.5-0.5B-AWQ-FP8-Block")
prompt = "What is 25 * 4?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
from vllm import LLM, SamplingParams
llm = LLM(model="rtj1/Qwen2.5-0.5B-AWQ-FP8-Block")
sampling_params = SamplingParams(temperature=0.0, max_tokens=100)
prompts = ["What is 25 * 4?"]
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
print(output.outputs[0].text)
Created using llm-compressor with the FP8_BLOCK scheme:
from llmcompressor.modifiers.quantization import QuantizationModifier
from llmcompressor.transformers import oneshot
recipe = QuantizationModifier(
targets="Linear",
scheme="FP8_BLOCK",
ignore=["lm_head"]
)
oneshot(
model="Qwen/Qwen2.5-0.5B-Instruct",
recipe=recipe,
output_dir="Qwen2.5-0.5B-Instruct-awq-fp8-block"
)
Quantization time: ~4 minutes on L4 GPU
Benchmarked using lm-evaluation-harness:
lm_eval \
--model hf \
--model_args pretrained=rtj1/Qwen2.5-0.5B-AWQ-FP8-Block,dtype=auto \
--tasks gsm8k \
--batch_size 16
Evaluation time: ~82 minutes on L4 GPU
@misc{qwen2.5-awq-fp8-block,
author = {Tharun Jagarlamudi},
title = {Qwen2.5-0.5B-Instruct AWQ + FP8_BLOCK},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/rtj1/Qwen2.5-0.5B-AWQ-FP8-Block}
}
Same as base model: Qwen License