Downloads · 30 days
27
34% of all-time downloads
UgurI/Qwen3.8-27B-Turkish-CPT-LoRA-Beta
Qwen3.8-27B-Turkish-CPT-LoRA-Beta is a text generation model from UgurI. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as cc-by-nc-sa-4.0.
A continued-pretrained Low-Rank Adaptation (LoRA) adapter for Qwen3.8-27B, trained on high-quality filtered Turkish web text from the Kumru corpus.
Downloads · 30 days
27
34% of all-time downloads
All-time downloads
80
Public
Repo size
319 MB
Likes
1
Public
Click a slice to open those files.
.safetensors319 MB · 100%
From the Hugging Face model README
A continued-pretrained Low-Rank Adaptation (LoRA) adapter for Qwen3.8-27B, trained on high-quality filtered Turkish web text from the Kumru corpus.
Qwen/Qwen3.8-27B (Text-only causal LM backbone)q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj| Metric | Base Model (Qwen3.8-27B NF4) | Turkish-CPT-1M Adapter | Improvement |
|---|---|---|---|
| Turkish Validation Perplexity | 7.5838 | 6.9348 | -8.56% |
| Turkish Test Perplexity | 8.0534 | 7.3303 | -8.98% |
| TurkishMMLU (90-Q Stratified) | 60.00% | 75.56% | +15.56% |
| Belebele Reading Comprehension (TR) | 83.33% | 90.00% | +6.67% |
| Belebele Reading Comprehension (EN) | 96.67% | 96.67% | 100% Retained |
import torch
from transformers import AutoTokenizer, BitsAndBytesConfig, Qwen3_5ForCausalLM
from peft import PeftModel
base_model_id = "Qwen/Qwen3.8-27B"
adapter_id = "UgurInanc12/Qwen3.8-27B-Turkish-CPT-LoRA-1M"
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.bfloat16,
)
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = Qwen3_5ForCausalLM.from_pretrained(
base_model_id,
quantization_config=quantization_config,
device_map="auto",
torch_dtype=torch.bfloat16,
)
model = PeftModel.from_pretrained(base_model, adapter_id)
model.eval()
prompt = "Türkiye'de yapay zeka araştırmalarının geleceği hakkında bir paragraf yaz."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.inference_mode():
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
vngrs-ai/vngrs-web-corpus)Qwen/Qwen3.8-27B)