Paladin 4B v4
⚠️ Older version. The current and best Paladin is Paladin v5 (SFT + DPO, better tool use; benchmark comparison on its card).
Paladin is a Turkish learning assistant for high-school and university students. This repository holds the merged, full-precision (bf16) weights of Paladin v4: a LoRA fine-tune of Qwen/Qwen3-4B-Instruct-2507 merged into the base model. The original adapter and a Q4_K_M GGUF are in KeremTT/paladin-v4.
What it was trained for
- Turkish explanations of school subjects in a short, friendly, student-oriented style
- Answering from provided sources with citations (
[1],[2]), and saying so when the sources do not contain the answer - Calling tools (13 functions: calculator, date, unit conversion, periodic table, statistics, equation solver, calculus, geometry,
probability, number theory, chemical equation balancing …) with the Qwen function-calling format (
<tool_call>…</tool_call>) - Not inventing people, works or facts; safe answers to crisis messages (pointing to emergency numbers in Turkey); consistent identity
How it is used in production
Paladin normally runs behind a server that adds a retrieval system (a document library) and executes tool calls. Benchmarks that run the model alone measure it without retrieval or tools; that is the intended setting for general benchmarks.
Prompt format
Standard Qwen3 chat template with two Paladin specifics, both handled by the included chat_template.jinja:
- Paladin was always trained with its own system prompt. If you do not pass a system message, the template inserts it automatically (so benchmarks without a system prompt still see the model as it was trained). Passing your own system message replaces it.
- As in training, every assistant turn starts with an empty thinking block, added when
add_generation_prompt=True:
<|im_start|>system
Sen Paladin'sin: Türkçe konuşan, sabırlı bir öğrenme asistanısın. … <|im_end|>
<|im_start|>user
Merhaba!<|im_end|>
<|im_start|>assistant
<think>
</think>
Recommended sampling: temperature 0.3–0.7, top-p 0.9.
Training (v4)
- Method: QLoRA (r = 16, alpha = 32, all linear layers), continued from the Paladin v3 adapter; 1 epoch, lr 5e-5, sequence length 8192
- Data: ~8.6k Turkish-heavy conversations: source-grounded Q&A, tool use (verified with the real tools), multi-turn chat, homework help, identity / safety / refusal examples. Training text was produced with templates plus several LLMs and filtered with automatic checks.
Limitations
- 4B parameters: limited world knowledge; without retrieval it can be wrong on specific facts.
- Optimised for Turkish; English works but is not the focus.
- Not a medical, legal or psychological authority.