iabheejit commited on
Commit
ce0b34e
·
verified ·
1 Parent(s): 386f7a9

Asmaa 2B: Qwen3.5 2B LoRA, Syrian Arabic tutor

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3.5-2B
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ license: apache-2.0
6
+ language:
7
+ - ar
8
+ tags:
9
+ - lora
10
+ - peft
11
+ - unsloth
12
+ - arabic
13
+ - levantine-arabic
14
+ - syrian-arabic
15
+ - tutoring
16
+ - adult-literacy
17
+ - numeracy
18
+ - education
19
+ ---
20
+
21
+ # Asmaa 2B
22
+
23
+ Asmaa 2B is a small tutor model for adults from Syria who are learning to read, write and work with numbers. It
24
+ replies the way a kind Syrian teacher texts on WhatsApp: in Syrian Levantine colloquial Arabic (Shami, in Arabic
25
+ script), with one short guiding question at a time and no lecture.
26
+
27
+ It is a LoRA adapter (135 MB) on [Qwen3.5 2B](https://huggingface.co/Qwen/Qwen3.5-2B), small enough to run on a
28
+ laptop. Made by [Ekatra](https://huggingface.co/ekatra).
29
+
30
+ > **Status: research preview, not yet judged.** The results below are eval loss and automatic checks. No judge model
31
+ > or native speaker has scored correctness, teaching quality or dialect yet. Review its answers before using it with
32
+ > learners.
33
+
34
+ ## Model details
35
+
36
+ | | |
37
+ | --- | --- |
38
+ | Base model | Qwen/Qwen3.5-2B |
39
+ | Type | LoRA adapter (PEFT), r 32, alpha 64 |
40
+ | Language | Syrian Levantine Arabic; Modern Standard Arabic only when the task is a formal text |
41
+ | Task | Socratic tutoring in reading, writing and everyday maths, in a chat (WhatsApp) style |
42
+ | Training data | 157,408 synthetic tutor conversations in Syrian Arabic (not released) |
43
+ | License | Apache-2.0 |
44
+
45
+ ## What it does
46
+
47
+ The learner writes a short, often misspelled message about something in front of them: a shopping list, a medicine
48
+ label, a form, a phone number, a price. Asmaa answers in a sentence or two and asks one question that leads the
49
+ learner to the answer, instead of giving the answer straight away.
50
+
51
+ Examples from the held-out test split (greedy decoding; English glosses are rough):
52
+
53
+ | Learner | Asmaa 2B | Base Qwen3.5 2B |
54
+ | --- | --- | --- |
55
+ | عندي سئال علبه الحليب ب ٢ يورو بدي ٣ علب قدي بيطلعو<br>*A carton of milk is 2 euros, I want 3, how much is that?* | خلّينا نحسبها سوا: علبتين بـ٤ يورو، وإذا زدنا العلبة التالتة بـ٢ يورو، قديش بيصير المجموع؟<br>*Let's work it out together: two cartons are 4 euros, and if we add the third for 2 euros, what's the total?* | Formal Arabic; misreads the question as asking for the price of one carton. |
56
+ | اسمي فايز، كتبتو بالاستمارة «فاءز»، هيك الهمزة صح؟<br>*My name is Fayez, I wrote it on the form as «فاءز», is the hamza right?* | أهلين فايز. خلّينا نلفظ اسمك شوي شوي: «فا ـ إِ ـ ز». شو حركة الهمزة هون: كسرة ولا فتحة؟<br>*Hi Fayez. Let's say your name slowly. What vowel is on the hamza here: kasra or fatha?* | Says the spelling is fully correct (it is not). |
57
+ | ع كيس الخبز مكتوب «خبز»، أول حرف خ ولا ح؟ بس قلّي الجواب.<br>*The bread bag says «خبز». Is the first letter خ or ح? Just tell me.* | خلّينا نميّزه من النقطة: الحرف اللي بأول «خبز» فوقه نقطة، ولا بلا نقطة؟<br>*Let's tell them apart by the dot: does the first letter have a dot on top or not?* | Gives the answer, then asks an unrelated question about the second letter. |
58
+ | رقمك اخره ٦ ولا ٩ عم لخبط بيناتن<br>*Does your number end in 6 or 9? I mix them up.* | خلّينا نميّزهن بالشكل: ٦ و٩. أي واحد فيهن فيه حلقة صغيرة مسكّرة من فوق؟<br>*Let's tell them apart by shape: which one has a small closed loop at the top?* | Invents a number (600) and repeats one line until cut off. |
59
+
60
+ ## Results
61
+
62
+ Eval loss is on 500 rows of the frozen test split. The other checks use the training system prompt, greedy decoding,
63
+ thinking off and at most 320 new tokens. "Same 200 rows" is the subset that was also run through the base model.
64
+
65
+ | | Base Qwen3.5 2B | Earlier LoRA (48,834 rows) | **Asmaa 2B (157,408 rows)** | Reference answers |
66
+ | --- | --- | --- | --- | --- |
67
+ | Eval loss (500 test rows) | n/a | 0.874 | **0.725** | n/a |
68
+ | Character 3-gram F-score vs reference (same 200 rows) | 13.3 | 39.9 | **41.9** | 100 |
69
+ | Mean words per reply (same 200 rows) | 33.5 | 20.0 | 21.0 | 21.9 |
70
+ | Replies cut off at 320 tokens (same 200 rows) | 7.0% | 0% | 0% | n/a |
71
+ | Mean words per reply, second test set (441 rows) | n/a | 16.2 | 18.8 | 21.2 |
72
+
73
+ On the first 1,000 frozen test rows, Asmaa's replies average 21.3 words (reference 23.3), all in Arabic script, and
74
+ none are cut off. The character 3-gram score only measures closeness to one reference reply. A good tutor reply can
75
+ differ from the reference and still be right, so it is not a quality score.
76
+
77
+ ## How to use
78
+
79
+ Use the system prompt the model was trained with (`system_prompt.txt` in this repo), and turn thinking off. Without
80
+ that prompt it behaves much more like the base model.
81
+
82
+ ```python
83
+ import torch
84
+ from transformers import AutoModelForCausalLM, AutoTokenizer
85
+ from peft import PeftModel
86
+ from huggingface_hub import hf_hub_download
87
+
88
+ base = "Qwen/Qwen3.5-2B"
89
+ repo = "ekatra/asmaa-2b"
90
+ tok = AutoTokenizer.from_pretrained(base)
91
+ model = AutoModelForCausalLM.from_pretrained(base, dtype=torch.bfloat16, device_map="auto")
92
+ model = PeftModel.from_pretrained(model, repo)
93
+
94
+ system = open(hf_hub_download(repo, "system_prompt.txt"), encoding="utf-8").read()
95
+ messages = [{"role": "system", "content": system},
96
+ {"role": "user", "content": "مرحبا، بدي اتعلم اقرا الساعة"}]
97
+ ids = tok.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False,
98
+ return_tensors="pt").to(model.device)
99
+ out = model.generate(ids, max_new_tokens=200, do_sample=False)
100
+ print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
101
+ ```
102
+
103
+ - Requires transformers 5 or newer (Qwen3.5 support). Trained with transformers 5.17.0, PEFT 0.21.2 and Unsloth
104
+ 2026.11.7.
105
+ - For a single merged model, call `model.merge_and_unload()` and save it. That is also the starting point for a GGUF
106
+ or other on-device build.
107
+ - Multi-turn chats work the same way: keep the system prompt first and pass the whole conversation.
108
+ - The prompt asks for replies under 90 words, so `max_new_tokens=200` is plenty.
109
+
110
+ ## Intended use
111
+
112
+ - Research and prototyping of chat tutors for adult literacy and numeracy in Syrian Arabic, with a person reviewing
113
+ the model's answers.
114
+ - A starting point for further fine-tuning or evaluation on real learner conversations.
115
+
116
+ Out of scope: unsupervised use with learners before evaluation; medical, legal, immigration or financial advice;
117
+ children's education (the data is written for adults); other Arabic dialects (untested).
118
+
119
+ ## Training
120
+
121
+ - **Data:** 157,408 synthetic tutor conversations in Syrian Arabic from Ekatra's `ekatra-tutor-sy` set, which is not
122
+ released. Frontier LLMs wrote the learner messages and the tutor replies, a third model judged them, and
123
+ low-scoring rows were dropped. The conversations cover reading letters and words, spelling (hamza, taa marbuta),
124
+ forms and labels, money, time and dates, phones and everyday arithmetic. They vary the learner's region, writing
125
+ style and the document in front of them.
126
+ - **Held-out tests:** the frozen test split (4,256 rows) and a second test set (441 rows) were never trained on, and
127
+ train and test ids were checked for overlap.
128
+ - **Method:** LoRA r 32, alpha 64, dropout 0. It is applied to the attention, MLP and linear-attention projections of
129
+ the language model. Loss is on the tutor's final reply only; the chat template is used with thinking off.
130
+ - **Settings:** one epoch (4,919 steps), learning rate 1e-4 with a cosine schedule, effective batch 32 (2 x 16),
131
+ max length 1,024 tokens, fp16. Trained with Unsloth on a single Google Colab T4 at about 18 s per step, resuming
132
+ across several disconnects from checkpoints.
133
+ - **Eval loss by step:** 1.40 (250), 0.99 (1,000), 0.85 (2,000), 0.77 (3,000), 0.73 (4,000), 0.725 (4,919).
134
+
135
+ ## Limitations
136
+
137
+ - **Not judged.** Content correctness and dialect quality still need a judge and native-speaker review.
138
+ - **It can teach a wrong rule.** One test learner wrote «رئس ثوم» (a head of garlic). Asmaa read it as «رئيس» and
139
+ hinted that the hamza takes a kasra, which is wrong for this word. Spelling and grammar hints need checking.
140
+ - **Synthetic data.** The training conversations were written by AI models, so they reflect those models' Syrian
141
+ Arabic, not real learner chats.
142
+ - **One prompt.** It was trained and tested with one system prompt. Other prompts, personas and tasks are untested.
143
+ The prompt does not give the tutor a name.
144
+ - **Small model.** Expect factual and arithmetic slips. Long conversations were not tested beyond a few turns.
145
+ - **Safety.** The system prompt tells it to stay off politics, war and the learner's past, and to answer hardship
146
+ briefly and kindly. This was not tested separately.
147
+
148
+ ## License
149
+
150
+ Apache-2.0, the same as Qwen3.5 2B. The training data is not released.
adapter_config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen3_5ForConditionalGeneration",
7
+ "parent_library": "transformers.models.qwen3_5.modeling_qwen3_5",
8
+ "unsloth_fixed": true
9
+ },
10
+ "base_model_name_or_path": "Qwen/Qwen3.5-2B",
11
+ "bias": "none",
12
+ "corda_config": null,
13
+ "ensure_weight_tying": false,
14
+ "eva_config": null,
15
+ "exclude_modules": null,
16
+ "fan_in_fan_out": false,
17
+ "inference_mode": true,
18
+ "init_lora_weights": true,
19
+ "kasa_config": null,
20
+ "layer_replication": null,
21
+ "layers_pattern": null,
22
+ "layers_to_transform": null,
23
+ "loftq_config": {},
24
+ "lora_alpha": 64,
25
+ "lora_bias": false,
26
+ "lora_dropout": 0,
27
+ "lora_ga_config": null,
28
+ "megatron_config": null,
29
+ "megatron_core": "megatron.core",
30
+ "modules_to_save": null,
31
+ "monteclora_config": null,
32
+ "peft_type": "LORA",
33
+ "peft_version": "0.21.2",
34
+ "qalora_group_size": 16,
35
+ "r": 32,
36
+ "rank_pattern": {},
37
+ "revision": null,
38
+ "target_modules": "(?:.*?(?:language|text).*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?\\.(?:down_proj|gate_proj|in_proj_a|in_proj_b|in_proj_qkv|in_proj_z|k_proj|o_proj|out_proj|q_proj|up_proj|v_proj))|(?:\\bmodel\\.layers\\.[\\d]{1,}(?!.*\\.experts\\.\\d)\\..*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?\\.(?:(?:down_proj|gate_proj|in_proj_a|in_proj_b|in_proj_qkv|in_proj_z|k_proj|o_proj|out_proj|q_proj|up_proj|v_proj)))",
39
+ "target_parameters": null,
40
+ "task_type": "CAUSAL_LM",
41
+ "trainable_token_indices": null,
42
+ "use_bdlora": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false,
46
+ "velora_config": null
47
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3dcca263c328bd96a2669d8d1c6b8549c1b0cf536aacf058fa43dd23d99ca1b
3
+ size 134609728
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is true %}
150
+ {{- '<think>\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n\n</think>\n\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
system_prompt.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are a patient tutor on WhatsApp for adult learners from Syria who are learning to read, write and work with
2
+ numbers. Many left school early; treat them as capable adults, never as children.
3
+ Reply in Syrian Levantine colloquial Arabic (شامي) in Arabic script, the way a kind teacher from Syria would text.
4
+ Use Modern Standard Arabic only when the task itself is reading or writing a formal text (a form, a sign, a
5
+ label, a letter), and then explain it in Syrian colloquial.
6
+ Teach by asking, not telling. Ask ONE short guiding question at a time, build on what the learner just wrote,
7
+ and give a small hint if they are stuck. If they say something wrong, do not just correct it: ask a question
8
+ that lets them notice the mistake. Only give the direct answer after they have tried, or if they clearly need it
9
+ to move on, then explain simply.
10
+ Use simple words, short sentences and everyday examples from daily life (the market, the bakery, the pharmacy,
11
+ the bus, phone credit, wages). Keep every reply under 90 words. Be warm and encouraging without being fake.
12
+ Write plain text as people do on WhatsApp: no markdown, no bold or headings, no bullet symbols.
13
+ Stay practical: do not discuss politics, war or the learner's past; if they mention hard circumstances, respond
14
+ briefly and kindly and return to the lesson.
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": false,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "padding_side": "right",
26
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null,
30
+ "video_token": "<|video_pad|>",
31
+ "vision_bos_token": "<|vision_start|>",
32
+ "vision_eos_token": "<|vision_end|>",
33
+ "added_tokens_decoder": {
34
+ "248044": {
35
+ "content": "<|endoftext|>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ "248045": {
43
+ "content": "<|im_start|>",
44
+ "single_word": false,
45
+ "lstrip": false,
46
+ "rstrip": false,
47
+ "normalized": false,
48
+ "special": true
49
+ },
50
+ "248046": {
51
+ "content": "<|im_end|>",
52
+ "single_word": false,
53
+ "lstrip": false,
54
+ "rstrip": false,
55
+ "normalized": false,
56
+ "special": true
57
+ },
58
+ "248047": {
59
+ "content": "<|object_ref_start|>",
60
+ "single_word": false,
61
+ "lstrip": false,
62
+ "rstrip": false,
63
+ "normalized": false,
64
+ "special": true
65
+ },
66
+ "248048": {
67
+ "content": "<|object_ref_end|>",
68
+ "single_word": false,
69
+ "lstrip": false,
70
+ "rstrip": false,
71
+ "normalized": false,
72
+ "special": true
73
+ },
74
+ "248049": {
75
+ "content": "<|box_start|>",
76
+ "single_word": false,
77
+ "lstrip": false,
78
+ "rstrip": false,
79
+ "normalized": false,
80
+ "special": true
81
+ },
82
+ "248050": {
83
+ "content": "<|box_end|>",
84
+ "single_word": false,
85
+ "lstrip": false,
86
+ "rstrip": false,
87
+ "normalized": false,
88
+ "special": true
89
+ },
90
+ "248051": {
91
+ "content": "<|quad_start|>",
92
+ "single_word": false,
93
+ "lstrip": false,
94
+ "rstrip": false,
95
+ "normalized": false,
96
+ "special": true
97
+ },
98
+ "248052": {
99
+ "content": "<|quad_end|>",
100
+ "single_word": false,
101
+ "lstrip": false,
102
+ "rstrip": false,
103
+ "normalized": false,
104
+ "special": true
105
+ },
106
+ "248053": {
107
+ "content": "<|vision_start|>",
108
+ "single_word": false,
109
+ "lstrip": false,
110
+ "rstrip": false,
111
+ "normalized": false,
112
+ "special": true
113
+ },
114
+ "248054": {
115
+ "content": "<|vision_end|>",
116
+ "single_word": false,
117
+ "lstrip": false,
118
+ "rstrip": false,
119
+ "normalized": false,
120
+ "special": true
121
+ },
122
+ "248055": {
123
+ "content": "<|vision_pad|>",
124
+ "single_word": false,
125
+ "lstrip": false,
126
+ "rstrip": false,
127
+ "normalized": false,
128
+ "special": true
129
+ },
130
+ "248056": {
131
+ "content": "<|image_pad|>",
132
+ "single_word": false,
133
+ "lstrip": false,
134
+ "rstrip": false,
135
+ "normalized": false,
136
+ "special": true
137
+ },
138
+ "248057": {
139
+ "content": "<|video_pad|>",
140
+ "single_word": false,
141
+ "lstrip": false,
142
+ "rstrip": false,
143
+ "normalized": false,
144
+ "special": true
145
+ },
146
+ "248058": {
147
+ "content": "<tool_call>",
148
+ "single_word": false,
149
+ "lstrip": false,
150
+ "rstrip": false,
151
+ "normalized": false,
152
+ "special": false
153
+ },
154
+ "248059": {
155
+ "content": "</tool_call>",
156
+ "single_word": false,
157
+ "lstrip": false,
158
+ "rstrip": false,
159
+ "normalized": false,
160
+ "special": false
161
+ },
162
+ "248060": {
163
+ "content": "<|fim_prefix|>",
164
+ "single_word": false,
165
+ "lstrip": false,
166
+ "rstrip": false,
167
+ "normalized": false,
168
+ "special": false
169
+ },
170
+ "248061": {
171
+ "content": "<|fim_middle|>",
172
+ "single_word": false,
173
+ "lstrip": false,
174
+ "rstrip": false,
175
+ "normalized": false,
176
+ "special": false
177
+ },
178
+ "248062": {
179
+ "content": "<|fim_suffix|>",
180
+ "single_word": false,
181
+ "lstrip": false,
182
+ "rstrip": false,
183
+ "normalized": false,
184
+ "special": false
185
+ },
186
+ "248063": {
187
+ "content": "<|fim_pad|>",
188
+ "single_word": false,
189
+ "lstrip": false,
190
+ "rstrip": false,
191
+ "normalized": false,
192
+ "special": false
193
+ },
194
+ "248064": {
195
+ "content": "<|repo_name|>",
196
+ "single_word": false,
197
+ "lstrip": false,
198
+ "rstrip": false,
199
+ "normalized": false,
200
+ "special": false
201
+ },
202
+ "248065": {
203
+ "content": "<|file_sep|>",
204
+ "single_word": false,
205
+ "lstrip": false,
206
+ "rstrip": false,
207
+ "normalized": false,
208
+ "special": false
209
+ },
210
+ "248066": {
211
+ "content": "<tool_response>",
212
+ "single_word": false,
213
+ "lstrip": false,
214
+ "rstrip": false,
215
+ "normalized": false,
216
+ "special": false
217
+ },
218
+ "248067": {
219
+ "content": "</tool_response>",
220
+ "single_word": false,
221
+ "lstrip": false,
222
+ "rstrip": false,
223
+ "normalized": false,
224
+ "special": false
225
+ },
226
+ "248068": {
227
+ "content": "<think>",
228
+ "single_word": false,
229
+ "lstrip": false,
230
+ "rstrip": false,
231
+ "normalized": false,
232
+ "special": false
233
+ },
234
+ "248069": {
235
+ "content": "</think>",
236
+ "single_word": false,
237
+ "lstrip": false,
238
+ "rstrip": false,
239
+ "normalized": false,
240
+ "special": false
241
+ },
242
+ "248070": {
243
+ "content": "<|audio_start|>",
244
+ "single_word": false,
245
+ "lstrip": false,
246
+ "rstrip": false,
247
+ "normalized": false,
248
+ "special": true
249
+ },
250
+ "248071": {
251
+ "content": "<|audio_end|>",
252
+ "single_word": false,
253
+ "lstrip": false,
254
+ "rstrip": false,
255
+ "normalized": false,
256
+ "special": true
257
+ },
258
+ "248072": {
259
+ "content": "<tts_pad>",
260
+ "single_word": false,
261
+ "lstrip": false,
262
+ "rstrip": false,
263
+ "normalized": false,
264
+ "special": true
265
+ },
266
+ "248073": {
267
+ "content": "<tts_text_bos>",
268
+ "single_word": false,
269
+ "lstrip": false,
270
+ "rstrip": false,
271
+ "normalized": false,
272
+ "special": true
273
+ },
274
+ "248074": {
275
+ "content": "<tts_text_eod>",
276
+ "single_word": false,
277
+ "lstrip": false,
278
+ "rstrip": false,
279
+ "normalized": false,
280
+ "special": true
281
+ },
282
+ "248075": {
283
+ "content": "<tts_text_bos_single>",
284
+ "single_word": false,
285
+ "lstrip": false,
286
+ "rstrip": false,
287
+ "normalized": false,
288
+ "special": true
289
+ },
290
+ "248076": {
291
+ "content": "<|audio_pad|>",
292
+ "single_word": false,
293
+ "lstrip": false,
294
+ "rstrip": false,
295
+ "normalized": false,
296
+ "special": true
297
+ }
298
+ }
299
+ }