Downloads · 30 days
0
mhalimi3008/mujib-llm-lora
mujib-llm-lora is a text generation model from mhalimi3008. 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.
Pashto-focused LoRA fine-tuned Qwen2.5 7B model trained with Unsloth for efficient and fast inference.
Downloads · 30 days
0
Access
Public
Updated May 16, 2026
Repo size
657 MB
Likes
0
Public
Click a slice to open those files.
.safetensors323 MB · 97%
From the Hugging Face model README
Pashto-focused LoRA fine-tuned Qwen2.5 7B model trained with Unsloth for efficient and fast inference.
mujib-llm-loramhalimi3008unsloth/qwen2.5-7b-unsloth-bnb-4bitThis Qwen2 model was trained 2x faster with Unsloth.
mujib-llm-lora is a Pashto language instruction-tuned model designed for:
The model is optimized using:
# =====================================================
# Install dependencies
# =====================================================
!pip install -q unsloth transformers accelerate peft bitsandbytes
# =====================================================
# Imports
# =====================================================
import torch
from unsloth import FastLanguageModel
from transformers import TextStreamer
# =====================================================
# Model Names
# =====================================================
base_model = "unsloth/qwen2.5-7b-unsloth-bnb-4bit"
lora_model = "mhalimi3008/mujib-llm-lora"
# =====================================================
# Load Model + Tokenizer
# =====================================================
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = lora_model,
max_seq_length = 2048,
dtype = None,
load_in_4bit = True,
)
# Enable faster inference
FastLanguageModel.for_inference(model)
# =====================================================
# Test Prompt
# =====================================================
prompt = """### Instruction:
په پښتو ژبه خپل ځان معرفي کړه.
### Response:
"""
inputs = tokenizer(
[prompt],
return_tensors="pt"
).to("cuda")
# =====================================================
# Generate Response
# =====================================================
text_streamer = TextStreamer(tokenizer)
outputs = model.generate(
**inputs,
streamer=text_streamer,
max_new_tokens=200,
temperature=0.7,
top_p=0.9,
do_sample=True,
)
# =====================================================
# Decode Final Output
# =====================================================
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("\n\n========== FINAL RESPONSE ==========\n")
print(response)
سلام! زه یو مصنوعي ذهانت ماډل یم چې په پښتو ژبه خبرې کولی شم او ستاسو پوښتنو ته ځوابونه درکوم.
unsloth/qwen2.5-7b-unsloth-bnb-4bit
This model is intended for:
Recommended:
@misc{mujib_llm_lora_2026,
author = {mhalimi3008},
title = {mujib-llm-lora},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/mhalimi3008/mujib-llm-lora}}
}
Special thanks to: