Türkçe · English below
🔗 Temel model: Filiz-118M · GitHub (sözlük + örnek) · © 2026 Samet Türkan
Filiz-118M-Komut, Filiz-118M temel modelinin Türkçe komut / araç çağrısı
uzmanıdır. Cihaz içinde çalışan sesli asistan, akıllı ev ve uygulama içi komut için: kullanıcının cümlesini, sistem
metninde tanımlı araçlardan doğru olanın çağrısına (<|arama|>ad {"alan": "değer"}) çevirir.
Temel modelin ağırlıkları dondurulup üstüne 4,1M parametrelik düşük kerteli bir modül (kerte 16) MASSIVE tr-TR train
bölümüyle eğitildi (600 adım), sonra modül ağırlıklara gömüldü. Mimari ve boyut temel modelle aynıdır (118M, standart
Qwen3ForCausalLM).
Test bölümü eğitimde hiç kullanılmadı. Aynı 200 komut, açgözlü üretim. "Tam" = niyet ve bütün alan değerleri doğru.
| Düzen | Model | Niyet | Alanlar | Tam |
|---|---|---|---|---|
| Doğru araç + 3-7 çeldirici | Filiz-118M | %88,5 | %44,5 | %40,5 |
| Filiz-118M-Komut | %95,0 | %59,5 | %58,0 | |
| 8-12 rastgele araç (ort. 9,4) | Filiz-118M | %72,0 | %44,5 | %34,0 |
| Filiz-118M-Komut | %89,5 | %57,5 | %52,5 |
Modül, modelin %3,5'i büyüklüğünde; tam doğruluğu ~18 puan, çok araçlı düzende niyet doğruluğunu ~17 puan artırır.
pip install transformers torch git+https://github.com/smtturkan-droid/filiz
import json, torch
from transformers import AutoModelForCausalLM
from filiz_sozluk import FilizSozluk
model = AutoModelForCausalLM.from_pretrained("smtturkan/filiz-118m-komut").eval()
s = FilizSozluk()
araclar = [{"name": "alarm_set", "parameters": ["date", "time"]},
{"name": "weather_query", "parameters": ["date", "place_name"]},
{"name": "iot_hue_lightoff", "parameters": ["house_place"]}]
x = torch.tensor([s.sohbet([{"role": "system", "content": "Araçlar: " + json.dumps(araclar, ensure_ascii=False)},
{"role": "user", "content": "Yarın sabah yedide beni uyandır"}])])
y = model.generate(x, max_new_tokens=40, do_sample=False, eos_token_id=s.eos_token_id, pad_token_id=s.pad_token_id,
begin_suppress_tokens=[s.token_to_id("<|dusun|>")])
print(s.decode(y[0, x.shape[1]:].tolist(), ozel_atla=False))
# <|arama|>alarm_set {"date": "yarın", "time": "sabah yedide"}<|son|>
ornek.py birkaç komutu çalıştırır.
repetition_penalty / no_repeat_ngram_size araç adlarını ve kopyalanan değerleri bozar."izmir'de"; gerekirse eki uygulama
tarafında ayıklayın.Samet Türkan · smtturkan@gmail.com · GitHub issues
Filiz-118M-Komut is the Turkish command / tool-calling specialist of Filiz-118M:
it maps a user utterance to a call of one of the tools defined in the system prompt (<|arama|>name {"slot": "value"}).
A 4.1M-parameter low-rank module (rank 16) was trained on the MASSIVE tr-TR train split on top of the frozen base, then
merged into the weights — same 118M standard Qwen3ForCausalLM.
MASSIVE tr-TR test split (unseen), same 200 utterances, greedy decoding:
| Setting | Model | Intent | Slots | Exact |
|---|---|---|---|---|
| correct tool + 3–7 distractors | Filiz-118M | 88.5 | 44.5 | 40.5 |
| Filiz-118M-Komut | 95.0 | 59.5 | 58.0 | |
| 8–12 random tools (avg 9.4) | Filiz-118M | 72.0 | 44.5 | 34.0 |
| Filiz-118M-Komut | 89.5 | 57.5 | 52.5 |
Use greedy decoding; the 1,024-token context fits ~12 tool definitions. Slot values are the weak point. Tokenizer:
pip install git+https://github.com/smtturkan-droid/filiz.
Contact: Samet Türkan · smtturkan@gmail.com
License: Apache 2.0 · © 2026 Samet Türkan
smtturkan/filiz-118m