Views
No views yet
unsloth/Qwen3.5-0.8B, trained on HeshamHaroon/saudi-dialect-conversations with Unsloth LoRA and merged back into a full 16-bit checkpoint.أنت مساعد مفيد يتحدث باللهجة السعودية العامية.
unsloth/Qwen3.5-0.8BAyoubChLin/Qwen3.5-0.8B-saudi-dialect-loraar), focused on Saudi/Najdi dialectHeshamHaroon/saudi-dialect-conversations:user and assistant turns plus metadata fields such as scenario, topic, complexity, and english_summary. For SFT, only the conversation messages were used, with the Saudi dialect system prompt inserted before applying the Qwen3.5 chat template with enable_thinking=False.SFTTrainerr=32, alpha=32, dropout=034074e-4adamw_8bittrain/loss: 1.85eval/loss at step 50: 1.942466.3s (41.11 min)5.45920.59 GB93.45% of available GPU memorytrain_loss comes directly from the notebook's trainer.train() output. The train/loss and eval/loss values are read from the PDF-exported tracking plots, so they are approximate.enable_thinking=False, so it is not optimized for long chain-of-thought style outputs.AutoProcessor + AutoModelForImageTextToText.1from transformers import AutoModelForImageTextToText, AutoProcessor
2
3repo_id = "AyoubChLin/Qwen3.5-0.8B-saudi-dialect"
4
5processor = AutoProcessor.from_pretrained(repo_id)
6model = AutoModelForImageTextToText.from_pretrained(
7 repo_id,
8 torch_dtype="auto",
9 device_map="auto",
10)
11
12messages = [
13 {"role": "system", "content": "أنت مساعد مفيد يتحدث باللهجة السعودية العامية."},
14 {"role": "user", "content": "كيف حالك اليوم؟"},
15]
16
17text = processor.apply_chat_template(
18 messages,
19 tokenize=False,
20 add_generation_prompt=True,
21 enable_thinking=False,
22)
23
24inputs = processor(
25 text=[text],
26 return_tensors="pt",
27).to(model.device)
28
29output_ids = model.generate(
30 **inputs,
31 max_new_tokens=200,
32 do_sample=True,
33 temperature=0.7,
34 top_p=0.9,
35)
36
37response = processor.batch_decode(
38 output_ids[:, inputs.input_ids.shape[-1]:],
39 skip_special_tokens=True,
40)[0]
41
42print(response)1%%capture
2import re, torch
3
4v = re.match(r"[\d]{1,}\.[\d]{1,}", str(torch.__version__)).group(0)
5xformers = "xformers==" + {
6 "2.10": "0.0.34",
7 "2.9": "0.0.33.post1",
8 "2.8": "0.0.32.post2",
9}.get(v, "0.0.34")
10
11!pip install sentencepiece protobuf "datasets>=2.18.0" "huggingface_hub>=0.34.0" hf_transfer
12!pip install --no-deps unsloth_zoo bitsandbytes accelerate {xformers} peft trl triton unsloth
13!pip install -q "transformers>=5.0.0"
14!pip install -q --no-deps "trl>=0.15.0"1from unsloth import FastLanguageModel
2
3repo_id = "AyoubChLin/Qwen3.5-0.8B-saudi-dialect"
4max_seq_length = 4096
5
6model, tokenizer = FastLanguageModel.from_pretrained(
7 model_name=repo_id,
8 max_seq_length=max_seq_length,
9 load_in_4bit=False, # this repo was pushed as merged_16bit
10)
11
12FastLanguageModel.for_inference(model)
13
14messages = [
15 {
16 "role": "system",
17 "content": [
18 {"type": "text", "text": "أنت مساعد مفيد يتحدث باللهجة السعودية العامية."}
19 ],
20 },
21 {
22 "role": "user",
23 "content": [
24 {"type": "text", "text": "كيف حالك اليوم؟"}
25 ],
26 },
27]
28
29input_ids = tokenizer.apply_chat_template(
30 messages,
31 tokenize=True,
32 add_generation_prompt=True,
33 enable_thinking=False,
34 return_tensors="pt",
35).to(model.device)
36
37output_ids = model.generate(
38 input_ids=input_ids,
39 max_new_tokens=200,
40 use_cache=True,
41 do_sample=True,
42 temperature=0.7,
43 top_p=0.9,
44)
45
46response = tokenizer.decode(
47 output_ids[0][input_ids.shape[-1]:],
48 skip_special_tokens=True,
49)
50print(response)