Downloads · 30 days
44
16% of all-time downloads
Alamori/GoldenNet-Qwen2.5-0.5B-Full-v1
GoldenNet-Qwen2.5-0.5B-Full-v1 is a text generation model from Alamori. 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.
<div align="center" <img src="https://img.shields.io/badge/Golden%20Net%20AI-Iraqi%20Gov%20NLP-gold?style=for-the-badge" alt="Golden Net AI"/ <img src="https://img.shields.io/badge/Method-Full%20Fine--tune-red?style=f…
Downloads · 30 days
44
16% of all-time downloads
All-time downloads
272
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
GoldenNet-Qwen2.5-0.5B-Full-v1 is a fully fine-tuned version of Qwen/Qwen2.5-0.5B-Instruct specialized for Iraqi Government Correspondence Processing.
This is the full fine-tuning variant where all 494M parameters were trained, potentially offering the best task-specific performance.
| Model | Method | Train Loss | Eval Loss | Training Time | Size |
|---|---|---|---|---|---|
| QLoRA-v1 | 4-bit QLoRA | 0.448 | 0.2998 | 49s | 943MB |
| LoRA-v1 | Standard LoRA | 0.496 | 0.3665 | 70s | 943MB |
| Full-v1 | Full Fine-tune | 0.461 | 0.3636 | 121s | 1.9GB |
| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-0.5B-Instruct |
| Fine-tuning Method | Full (all parameters) |
| Learning Rate | 5e-5 |
| Optimizer | AdamW 8-bit |
| Epochs | 3 |
| Batch Size | 1 (effective: 16) |
| Max Sequence Length | 1024 |
| Precision | BF16 |
| Trainable Parameters | 494M (100%) |
| Hardware | NVIDIA RTX 5070 (8GB VRAM) |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"Alamori/GoldenNet-Qwen2.5-0.5B-Full-v1",
device_map="auto",
torch_dtype="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Alamori/GoldenNet-Qwen2.5-0.5B-Full-v1")
# Classification example
correspondence = """جمهورية العراق
وزارة التربية
العدد: 1234/ت/2025
إلى/ السيد مدير عام التعليم المحترم
م/ طلب تعيين معلمين
نرجو الموافقة على تعيين 50 معلماً.
مع التقدير"""
instruction = "صنّف المراسلة الحكومية التالية إلى إحدى الفئات: طلب، شكوى، تقرير، إعلام، استفسار، دعوة، تعميم، إحالة. أجب بصيغة JSON."
messages = [{"role": "user", "content": f"{instruction}\n\n{correspondence}"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.1)
print(tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True))
Apache 2.0