Downloads · 30 days
13
0% of all-time downloads
Abhinav-Anand/Two-And-A-Half-Qwen
Two-And-A-Half-Qwen is a text generation model from Abhinav-Anand. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a float16 (half precision) quantized version of Qwen/Qwen2.5-0.5B. All model weights are converted from float32 to float16, reducing model size by ~50% while maintaining near-identical text generation quality.
Downloads · 30 days
13
0% of all-time downloads
All-time downloads
4.1K
Public
Parameters
494M
2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 99%
From the Hugging Face model README
This is a float16 (half precision) quantized version of Qwen/Qwen2.5-0.5B. All model weights are converted from float32 to float16, reducing model size by ~50% while maintaining near-identical text generation quality.
.half() conversion (float32 -> float16)from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
tokenizer = AutoTokenizer.from_pretrained("Ringkvist/Two_and_a_half_Qwen2.5-MiniFP16")
model = AutoModelForCausalLM.from_pretrained(
"Ringkvist/Two_and_a_half_Qwen2.5-MiniFP16",
torch_dtype=torch.float16,
)
inputs = tokenizer("The future of AI is", return_tensors="pt")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))