Qwen3.5-4B - Seasoned Advice LoRA

LoRA adapter for unsloth/Qwen3.5-4B, fine-tuned on the Seasoned Advice dataset: 500 bilingual (Turkish / English) cooking and food-science conversations from Seasoned Advice, each assistant turn carrying a reasoning trace.

Trained on both language splits (1,000 examples), language layers only, r=32, 2 epochs. The model answers with a <think> reasoning block followed by the answer, in Turkish or English.

Notebooks

Notebook Purpose
Seasoned_Advice_LoRA_Finetune.ipynb Fine-tunes this adapter with Unsloth on the Seasoned Advice dataset.
MMLU_Benchmark_Colab.ipynb General-knowledge benchmark (Turkish MMLU, 6,200 questions) β€” base vs. fine-tuned.
Multi_Model_Benchmark_Colab.ipynb Domain benchmark on a held-out slice of the training corpus: five models across three families, judged as a full round robin.
Qwen3_5_(4B)_Vision.ipynb Unsloth's official Qwen3.5 (4B) Vision example notebook, kept for reference β€” the fine-tuning notebook above was adapted from it. Not this project's own work.

Chat template

The repo carries two templates:

File Origin
chat_template.jinja Written by hand for this adapter. Loaded by default, since this is the filename AutoProcessor / AutoTokenizer pick up.
chat_template.base.jinja The stock template, inherited verbatim from unsloth/Qwen3.5-4B. Kept for reference and as the baseline the hand-written one is diffed against.

They render identical output (see the verification below), so which one is active makes no difference to the model β€” the second is here to show what was inherited versus what was authored.

The hand-written template emits the Qwen3.5 ChatML grammar the adapter was trained through β€” inventing new delimiters would produce tokens the model has never seen, so the template is custom code against a fixed wire format, not a custom format:

<|im_start|>system\n{system}<|im_end|>\n
<|im_start|>user\n{question}<|im_end|>\n
<|im_start|>assistant\n<think>\n{reasoning}\n</think>\n\n{answer}<|im_end|>\n

What it handles:

Roles system / developer (leading ones merged into one turn), user, assistant, tool. An unknown role raises.
Content shapes Plain strings and the [{"type": "text", "text": ...}] part lists the training rows use. Image and video parts render as <|vision_start|><|image_pad|><|vision_end|>, since the base is a VL checkpoint.
Reasoning Read from a reasoning_content field or parsed out of an inline <think>...</think>. Following Qwen3.5, only the turn after the most recent user question keeps its reasoning; older traces are dropped so they don't accumulate. add_generation_prompt opens a <think> block, and enable_thinking=False emits a closed empty pair to suppress it.
Tool calling A tools list renders a <tools> manual into the system turn. Calls use the <tool_call><function=name><parameter=x> XML form β€” the form this model family was trained on, not the JSON-in-<tool_call> variant seen in other Qwen templates. Results come back as <tool_response> folded into a user turn, with consecutive results sharing one turn. A user turn that is only a <tool_response> doesn't count as a new question for the reasoning rule above.

test_chat_template.py verifies this by rendering the same message sets through this template and the stock one from unsloth/Qwen3.5-4B, then diffing the output byte for byte: 18 hand-built cases (system merging and placement, multi-turn, both content shapes, tool calls and responses, thinking on/off, vision parts) plus all 1,000 training rows in both generation modes. All 2,018 renders match, so the adapter's behaviour is unchanged. Rendering runs under Jinja's ImmutableSandboxedEnvironment, the same sandbox transformers applies.

Two behaviours deliberately do not copy the stock template. Both are asserted as differences in the test, so neither can quietly regress:

  • An unrecognised role raises rather than being silently dropped from the conversation.
  • Three or more leading system turns are all merged; the stock template merges the first two and discards the rest.
python test_chat_template.py

Limitations

Narrow domain, 1,000 examples. Source answers are community-written and not fact-checked β€” do not rely on this model for food-safety decisions.

The adapter makes the model answer more briefly. It averages ~860 characters against the base model's ~3,300, closely matching the ~990 of the human reference answers it was trained on. That is what it was trained to do, and it is why it scores above its base on proximity to the reference. It is also why a judge scoring for comprehensiveness ranks it below its base: in the round robin below it places 4th of 5 and loses to its own base 10–85–5. If you want the most thorough cooking answer available at this size, use the base model. If you want an answer in the register of the source corpus, use this one.

Licence

CC BY-SA 4.0, inherited from the Stack Exchange source content.

πŸ“Š Turkish MMLU Benchmark Results

Evaluated on the alibayram Turkish MMLU benchmark over the full dataset (6200 questions across 62 sections). Scoring reuses the official olcum.py prompt and cevap_dogru_mu function verbatim; inference was run with transformers/unsloth (4-bit, greedy decoding, thinking disabled).

Base vs. Fine-tuned

Model Correct Accuracy
Base β€” unsloth/Qwen3.5-4B 4168/6200 67.23%
Fine-tuned β€” qwen3.5-4b-seasoned-advice-lora 4173/6200 67.31%
Difference +0.08

On the same benchmark, my fine-tuned model ranks #21 of 68 and the base model ranks #22 of 68 among all listed models.

Interpretation

The fine-tuned model performs on par with its base (67.31% vs. 67.23%, a +0.08 pt gap β€” 5 of 6200 questions, within run-to-run noise). This is the expected outcome: the LoRA adapter was trained on the bilingual (Turkish and English) seasoned-advice conversational dataset, a domain unrelated to Turkish MMLU's academic and professional knowledge. The meaningful result is that domain specialization did not degrade the model's general knowledge β€” there is no catastrophic forgetting, and a few professional-services sections (e.g. Business Management, Emergency & Disaster Management, HR) even improved by a few points. For an advice-tuned model, a general-knowledge benchmark like this serves as a regression check rather than a target metric.

Full leaderboard ranking β€” my two models (⭐) inserted into the official 68-model table

ℹ️ Reference rows are from the official leaderboard (run via Ollama, Q4_K_M). My two ⭐ rows were run via transformers (4-bit); the runtimes differ slightly, so read cross-pipeline comparisons as indicative rather than exact.

Rank Model Size Accuracy
1 gpt-4o Unknown 84.84
2 claude-3-5-sonnet-20240620 Unknown 84.4
3 llama3.3:latest 70.6B 79.42
4 gemini-1.5-pro Unknown 76.74
5 qwen3:32b 32.8B 75.98
6 gemma3:27b 27.4B 75.06
7 qwen3:30b 30.5B 74.26
8 alibayram/medgemma:27b 27.0B 74.18
9 alibayram/emre-gemma3-27b-tr-reasoning:latest 27.0B 73.21
10 gemma2:27b 27.2B 72.1
11 qwen3:14b 14.8B 71.65
12 alibayram/doktor-gemma3:12b 11.8B 71.08
13 gemma3:12b 12.2B 70.74
14 aya-expanse:32b 32.3B 70.66
15 llama3.1:70b 70.6B 70.42
16 alibayram/turkish-gemma-9b-v0.1:latest 9.2B 70.34
17 gemma2:latest 9.2B 69.26
18 alibayram/metin-gemma2-9b-it-tr-dpo-v1:latest 9.2B 69.16
19 mistral-small3.2:24b 24.0B 68.37
20 qwen3:latest 8.2B 67.56
21 ⭐ Erenyanic/qwen3.5-4b-seasoned-advice-lora (fine-tuned) 4B 67.31
22 ⭐ unsloth/Qwen3.5-4B (base) 4B 67.23
23 mistral-small:latest 23.6B 66.97
24 phi4:latest 14.7B 65.52
25 gemma3n:e4b 6.9B 63.68
26 alibayram/gemma3n:latest 6.9B 63.44
27 vanilj/Phi-4:latest 14.7B 62.6
28 aya-expanse:latest 8.0B 62.06
29 qwen2.5:latest 7.6B 61.68
30 alibayram/medgemma:latest 3.9B 61.19
31 alibayram/Qwen3-30B-A3B-Instruct-2507:latest 30.5B 60.84
32 gemma3n:e2b 4.5B 59.95
33 aya:35b 35.0B 59.94
34 Defne-llama3.1-8B:latest 8.0B 57.24
35 qwen2:latest 7.6B 55.82
36 ytu-ce-cosmos-Turkish-Llama-8b-DPO-v0-1:latest 8.0B 54.94
37 deepseek-r1:8b 8.2B 54.87
38 alibayram/doktorllama3-cosmos:latest 8.0B 53.15
39 alibayram/doktorllama3:latest 8.0B 53.06
40 Metin-LLaMA-3-8B-Instruct-TR-DPO:latest 8.0B 52.39
41 llama3:latest 8.0B 52.23
42 alibayram/erurollm-9b-instruct:latest 9.2B 51.29
43 deepseek-r1:14b 14.8B 49.48
44 gemma2:2b 2.6B 48.37
45 mistral-nemo:latest 12.2B 46.89
46 llama3.2:latest 3.2B 44.95
47 gemma3:1b 999.89M 42.74
48 gemma3:4b 4.3B 42.74
49 nemotron-mini:latest 4.2B 37.42
50 llama3.1:latest 8.0B 35.11
51 openchat:latest 7B 33.9
52 mistral:7b 7.2B 32.73
53 phi3.5:latest 3.8B 29.37
54 cere-llama-3-8b-tr:latest 8.0B 27.58
55 Trendyol-LLM-8b-chat-v2.0:latest 8.0B 27.58
56 Kocdigital-LLM-8B:latest 8.0B 27.47
57 zephyr:latest 7B 27.31
58 ahmets/gemma3-4b-finetuned:latest 3.9B 24.16
59 CBDDO-LLM-8B-Instruct-v1:latest 8.0B 23.81
60 phi3:latest 3.8B 22.89
61 qwen3:0.6b 751.63M 21.65
62 qwen2.5:0.5b 494.03M 21.23
63 Turkcell-LLM-7b-v1:latest 7.4B 19.5
64 tinyllama:latest 1B 19.44
65 Doktor-Llama-3-8b:latest 6.8B 19.23
66 llama-3.1-openhermes-tr:latest 8.0B 18.81
67 Morfoz-LLM-8b-v1.0:latest 8.0B 18.81
68 NVIDIA-Llama3-ChatQA-1.5-8B:latest 8.0B 18.81
Per-section comparison (top 15 most-improved sections)
Section Base Fine-tuned Diff
İşletme Yânetimi 62.0 69.0 7.0
Acil Durum ve Afet YΓΆnetimi 74.0 79.0 5.0
Γ‡alışma Ekonomisi ve EndΓΌstri Δ°lişkileri 56.0 61.0 5.0
Turizm ve Otel İşletmeciliği 72.0 76.0 4.0
Üniversite Giriş Sınavı Temel Bilimler 55.0 59.0 4.0
Emlak ve Emlak YΓΆnetimi 65.0 68.0 3.0
Yaşlı Bakımı 69.0 72.0 3.0
Siyer 55.0 58.0 3.0
Radyo ve Televizyon Programcılığı 71.0 74.0 3.0
Uluslar Arası İlişkiler 68.0 71.0 3.0
KΓΌltΓΌrel Miras ve Turizm 68.0 71.0 3.0
Menkul KΔ±ymetler ve Sermaye PiyasasΔ± 61.0 64.0 3.0
Δ°nsan KaynaklarΔ± YΓΆnetimi 67.0 70.0 3.0
Dini Bilgiler 74.0 76.0 2.0
Sosyal Hizmet 63.0 65.0 2.0

πŸ† Multi-Model Comparison β€” 5 models, 3 families

Turkish MMLU measures general knowledge. This measures the thing the adapter was actually trained for, on 100 held-out question/answer pairs (50 English, 50 Turkish) scraped fresh from cooking.stackexchange.com and verified to have zero overlap with the 500 pairs used in training (see dataset provenance). Thinking mode is left on β€” the model's trained persona β€” and the <think> block is stripped before the answer is scored. 5 models across 3 families were compared. Every model in it supports Turkish officially, which is a requirement rather than a preference: half the benchmark is Turkish, and a model without that support does not answer worse so much as fail to stop β€” one candidate dropped from an earlier draft averaged 8 seconds per English question and 69 per Turkish one, running to the token ceiling every time. Every model answered the same 100 questions, loaded in 4-bit at the same 2624-token budget with greedy decoding, and the judge ran a full round robin β€” all 10 pairs Γ— 100 questions = 1,000 judgements, candidate order randomized per pair.

# Model Family Params Thinking Judge win rate W–L–T Reference proximity Mean answer Forced close
1 Qwen3.5-4B Alibaba 4B yes 83.3% 325–65–10 0.581 3326 ch 61%
2 gemma-3-4b-it Google 4B no 53.6% 209–181–10 0.587 3310 ch 0%
3 Qwen3-4B-Instruct-2507 Alibaba 4B no 52.0% 199–184–17 0.531 4738 ch 0%
4 ⭐ qwen3.5-4b-seasoned-advice-lora Alibaba (this work) 4B yes 36.5% 139–242–19 0.590 862 ch 38%
5 Phi-4-mini-instruct Microsoft 3.8B no 23.5% 89–289–22 0.592 3925 ch 0%

Ordered by judge win rate, which excludes ties. Reference proximity is mean cosine similarity to the human reference answer β€” a measure of how close a model's content and register sit to the source corpus, not of how good its answer is; the judge column carries the quality claim. Mean answer length counts the final answer only, with any reasoning block stripped. Forced close is the share of rows whose reasoning ran past its 1600-token budget and had the block closed for it; non-thinking models are 0% by definition.

Interpretation

The two metrics rank the models almost in reverse, and that is the finding. On the judge the fine-tune places 4 of 5 at 36.5%, and its own base tops the table at 83.3%, beating it 85–10–5 head to head. On proximity to the human reference the order flips: the fine-tune places 2 at 0.590, above the base at 0.581.

Answer length explains the split. The human references average 987 characters; the fine-tuned model writes 862, almost exactly matching them, while the base writes 3326 β€” more than three times the reference. The adapter learned the corpus it was given: Stack Exchange answers are short and direct, and after 1,000 examples the model answers that way too. That is precisely what raises its proximity score and what the judge marks down, scoring as it does on practical correctness, food-safety accuracy, actionable specificity and tone β€” criteria a longer answer has more room to satisfy.

This is not the judge preferring length. Across all 961 decisive verdicts the longer answer won 50.2% of the time (two-sided binomial p = 0.95), indistinguishable from a coin flip, and the per-pair direction reverses rather than leaning one way. Length does not order this table at all: the wordiest model placed third, the second-wordiest placed last, and the two that finished first and second sit in the middle of the range. The fine-tune's placing is a real judgement of its answers, not an artefact of their size.

So the adapter did not fail to learn; it learned a target this judge does not reward. Whether that trade is worth making depends on the goal: it is a loss if the aim is the most comprehensive cooking answer available, and closer to a success if the aim is to answer in the voice of the source corpus. Read with the Turkish MMLU result above, the picture is consistent β€” the adapter changed how the model answers without damaging what it knows.

On mixing reasoning and non-reasoning models. 2 of these 5 run with a thinking step and 3 do not, and each was left in its default configuration. Ranking them together is normal practice β€” public leaderboards do the same β€” but it measures models as they ship, not at equal inference compute. The judge never sees the reasoning, only the final answer, so extra thinking earns credit solely through the answer it produces.

On the proximity metric. The embedding model reads at most 512 tokens, so the wordier models are compared on their opening rather than their whole answer; the share of each model's text that reached the encoder is listed below. An earlier version of this run left the encoder at its default 128 tokens, which cut the longest answers to about a seventh of their length and reversed the proximity ranking β€” the figures here are from the corrected pass. Proximity is reported beside the judge for this reason, never as a standalone ranking.

Reference proximity by language, and how much text was encoded
Model English Turkish Difference Encoded
Phi-4-mini-instruct 0.605 0.578 -0.027 72%
⭐ qwen3.5-4b-seasoned-advice-lora 0.602 0.578 -0.025 94%
gemma-3-4b-it 0.527 0.647 +0.120 62%
Qwen3.5-4B 0.543 0.619 +0.076 57%
Qwen3-4B-Instruct-2507 0.512 0.550 +0.038 41%

Ordered by proximity. Difference is Turkish minus English. Encoded is the share of the average answer that fitted inside the embedding model's 512-token window.

Head-to-head matrix (row model's wins–losses–ties against each column)
Qwen3.5-4B gemma-3-4b-it Qwen3-4B-Instruct-2507 qwen3.5-4b-seasoned-advice-lora Phi-4-mini-instruct
Qwen3.5-4B β€” 77–20–3 73–26–1 85–10–5 90–9–1
gemma-3-4b-it 20–77–3 β€” 53–43–4 60–38–2 76–23–1
Qwen3-4B-Instruct-2507 26–73–1 43–53–4 β€” 58–40–2 72–18–10
qwen3.5-4b-seasoned-advice-lora 10–85–5 38–60–2 40–58–2 β€” 51–39–10
Phi-4-mini-instruct 9–90–1 23–76–1 18–72–10 39–51–10 β€”
Judging cost
Requests 1,001
Tokens 3,775,629
Cost $1.74 USD

deepseek-v4-pro with thinking enabled, 8 concurrent workers. The request count exceeds the judgement count because failed calls are retried.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for erenyanic/qwen3.5-4b-seasoned-advice-lora

Finetuned
Qwen/Qwen3.5-4B
Adapter
(245)
this model