Downloads · 30 days
6
7% of all-time downloads
Uplaxus/Qwen2.5-0.5B-Asymmetric-Slim-4bit
Qwen2.5-0.5B-Asymmetric-Slim-4bit is a text generation model from Uplaxus. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is a compressed and optimized version of Qwen/Qwen2.5-0.5B-Instruct using the Manifold Diagnostic & Orthogonal Compression framework.
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
84
Public
Parameters
274M
371 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors360 MB · 97%
How the weights are stored.
U8187M · 68%
From the Hugging Face model README
This model is a compressed and optimized version of Qwen/Qwen2.5-0.5B-Instruct using the Manifold Diagnostic & Orthogonal Compression framework.
| Metric | Value |
|---|---|
| Original Layers | 24 |
| Compiled Layers | 21 |
| Quantization bitwidth | 4-bit (group_size=64) |
| Original Size (FP16) | ~987 MB (941 MiB) |
| Compressed Size (safetensors) | 360 MB (343 MiB) |
| Compression Ratio | 2.87x |
| Baseline PPL | 3.8667 |
| Compiled PPL (Reconstructed) | 10.4541 |
This model requires trust_remote_code=True to execute the custom load-time de-quantizer and reconstruction logic.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
"Uplaxus/Qwen2.5-0.5B-Asymmetric-Slim-4bit",
torch_dtype=torch.float16,
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("Uplaxus/Qwen2.5-0.5B-Asymmetric-Slim-4bit")
# Run inference
prompt = "Hello, my friend! How are you doing today?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
model.safetensors: Packed 4-bit weights and scales.config.json: Configuration defining 21 layers and the auto_map trigger.modeling_qwen2_manifold.py: The custom loading wrapper that reconstructs FP16 weights on startup.