Downloads · 30 days
37
36% of all-time downloads
rtj1/Qwen2.5-0.5B-AWQ-FP8-Dynamic
Qwen2.5-0.5B-AWQ-FP8-Dynamic 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 + FP8DYNAMIC quantization scheme.
Downloads · 30 days
37
36% of all-time downloads
All-time downloads
103
Public
Parameters
630M
915 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_DYNAMIC quantization scheme.
Evaluated on GSM8K benchmark:
| Metric | Score |
|---|---|
| Strict Match | 22.67% |
| Flexible Extract | 30.78% |
This outperforms the FP8_BLOCK quantization scheme (17.97% strict match) by ~5% while maintaining the same model size.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"rtj1/Qwen2.5-0.5B-AWQ-FP8-Dynamic",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("rtj1/Qwen2.5-0.5B-AWQ-FP8-Dynamic")
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-Dynamic")
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_DYNAMIC scheme:
from llmcompressor.modifiers.quantization import QuantizationModifier
from llmcompressor.transformers import oneshot
recipe = QuantizationModifier(
targets="Linear",
scheme="FP8_DYNAMIC",
ignore=["lm_head"]
)
oneshot(
model="Qwen/Qwen2.5-0.5B-Instruct",
recipe=recipe,
output_dir="Qwen2.5-0.5B-Instruct-awq-fp8-dynamic"
)
Quantization time: ~5 minutes on L4 GPU
Benchmarked using lm-evaluation-harness:
lm_eval \
--model hf \
--model_args pretrained=rtj1/Qwen2.5-0.5B-AWQ-FP8-Dynamic,dtype=auto \
--tasks gsm8k \
--batch_size 16
Evaluation time: ~71 minutes on L4 GPU
@misc{qwen2.5-awq-fp8-dynamic,
author = {Tharun Jagarlamudi},
title = {Qwen2.5-0.5B-Instruct AWQ + FP8_DYNAMIC},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/rtj1/Qwen2.5-0.5B-AWQ-FP8-Dynamic}
}
Same as base model: Qwen License