Downloads · 30 days
4
10% of all-time downloads
hellosindh/qwen3-sindhi-cpt
qwen3-sindhi-cpt is a machine learning model from hellosindh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This is a LoRA adapter for Qwen3-8B, continued pre-trained on ~164M tokens of Sindhi text.
Downloads · 30 days
4
10% of all-time downloads
All-time downloads
40
Public
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.9 GB · 100%
From the Hugging Face model README
This is a LoRA adapter for Qwen3-8B, continued pre-trained on ~164M tokens of Sindhi text.
| Property | Value |
|---|---|
| Base Model | unsloth/Qwen3-8B-bnb-4bit |
| Training Type | Continued Pre-Training (CPT) |
| Training Tokens | ~164M Sindhi tokens |
| LoRA Rank | 32 |
| LoRA Alpha | 64 |
| Sequence Length | 2048 |
| Quantization | 4-bit (bnb) |
| Framework | Unsloth + HuggingFace PEFT |
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "hellosindh/qwen3-sindhi-cpt",
load_in_4bit = True,
max_seq_length = 2048,
)
# Enable fast inference
FastLanguageModel.for_inference(model)
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-8B",
torch_dtype = torch.bfloat16,
device_map = "auto",
load_in_4bit = True,
)
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("hellosindh/qwen3-sindhi-cpt")
# Apply Sindhi adapter on top
model = PeftModel.from_pretrained(base_model, "hellosindh/qwen3-sindhi-cpt")
inputs = tokenizer("سنڌ جي ماڻهو", return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens = 200,
temperature = 0.8,
do_sample = True,
repetition_penalty = 1.1,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
5e-5 with cosine scheduler