Downloads · 30 days
10
19% of all-time downloads
AsrorAsr/qwen2.5-0.5b-uzbek-legal-lora
qwen2.5-0.5b-uzbek-legal-lora is a text generation model from AsrorAsr. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A LoRA-fine-tuned version of Qwen2.5-0.5B specialized in Uzbek legal language. Designed to assist with legal text understanding, document processing, and Q&A in Uzbek.
Downloads · 30 days
10
19% of all-time downloads
All-time downloads
53
Public
Repo size
46.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors35.2 MB · 69%
From the Hugging Face model README
A LoRA-fine-tuned version of Qwen2.5-0.5B specialized in Uzbek legal language. Designed to assist with legal text understanding, document processing, and Q&A in Uzbek.
This is a Parameter-Efficient Fine-Tuning (PEFT) adapter trained on top of Qwen2.5-0.5B using LoRA. It addresses the gap of low-resource NLP for the Uzbek language, particularly in the legal domain.
Install required libraries:
pip install transformers peft torch
Load the model with PEFT:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "Qwen/Qwen2.5-0.5B"
adapter = "AsrorAsr/qwen2.5-0.5b-uzbek-legal-lora"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(base_model)
model = PeftModel.from_pretrained(model, adapter)
prompt = "Mehnat shartnomasi nima?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Trained using the author's curated Uzbek legal datasets:
Uzbek is a low-resource language in NLP. This model contributes to bridging that gap by enabling AI tools for Uzbek-speaking professionals, students, and citizens working with legal content.
Apache 2.0 — free for commercial and personal use.
Asror Akmalov | AI/ML Engineer
🔗 GitHub
🔗 Hugging Face
Open to freelance projects and collaboration on low-resource NLP and Uzbek language AI.
@misc{akmalov2025uzbeklegalqwen,
author = {Akmalov, Asror},
title = {Qwen2.5-0.5B Uzbek Legal LoRA},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/AsrorAsr/qwen2.5-0.5b-uzbek-legal-lora}
}