Eris A0 Instruct is a 338M-parameter Turkish-English chat model trained from scratch by Kristalsoft (Eren Koçakgöl): our own tokenizer, our own architecture and our own pre-training run, followed by supervised fine-tuning (SFT). It is the instruction-tuned version of Eris A0 Base.
A0 is the first model of the Eris family. It is a small, fast model that runs comfortably on a laptop CPU. It is meant for experimentation, research and as a starting point for task-specific fine-tuning, not as a replacement for large general-purpose assistants.
Try it in your browser: Eris A0 demo (runs locally, nothing is sent to a server). Source code (model, evaluation, demo): GitHub.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "kristalsoft/Eris-A0-Instruct"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
print(model.chat(tokenizer, "Türkiye'nin başkenti neresidir?"))
# Türkiye'nin başkenti Ankara.
trust_remote_code=True is required because Eris uses its own architecture (code in
modeling_eris.py, Apache-2.0).
model.chat(...) accepts a string or a list of {"role", "content"} messages and applies the chat
template. It uses a repetition penalty (1.15) and a 4-gram repetition block on the generated tokens
only, which is how the model was evaluated. You can also call model.generate(...) directly:
messages = [{"role": "user", "content": "Fotosentez nedir? Kısaca açıkla."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**inputs, max_new_tokens=200) # defaults: temperature 0.3, top_k 40
print(tokenizer.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
On a laptop CPU the model generates roughly 30 tokens per second in float32.
onnx/model_int8.onnx is an int8 ONNX export with a KV cache (batch 1; inputs input_ids, past_key, past_value), used by the in-browser demo. Its greedy outputs match the PyTorch model; loss increases by about 0.1%.
| Developer | Kristalsoft (Eren Koçakgöl) |
| Model type | Decoder-only transformer, trained from scratch |
| Parameters | 338.1M (271.0M transformer body + 67.1M tied embedding) |
| Languages | Turkish, English (plus some code and math) |
| Context length | 4,096 tokens |
| Vocabulary | 65,536 (byte-level BPE, own tokenizer) |
| Weights | bfloat16, safetensors |
| License | Apache-2.0 |
A byte-level BPE tokenizer trained on the pre-training mixture. Digits are split one by one, text is NFC normalized, and English contraction rules are intentionally absent so that Turkish suffixes after an apostrophe stay intact ("İstanbul'da" becomes "İstanbul" + "'da"). Measured fertility: about 1.53 tokens per Turkish word and 1.29 per English word.
<|im_start|>user
{message}<|im_end|>
<|im_start|>assistant
{answer}<|im_end|>
The chat template in tokenizer_config.json produces exactly this format. Generation stops at
<|im_end|>.
Pre-training (see the base model card for details): 9.63B tokens, 18,360 steps of 524,288 tokens (128 sequences of 4,096 tokens), warmup-stable-decay learning rate schedule, bfloat16, on a single Google Cloud TPU chip (Colab TPU v6e-1 and v5e-1). Token mixture: 35% Turkish web, 45% English web, 13% code, 7% math.
Supervised fine-tuning: 2 epochs, 1,604 steps of 32 packed sequences of 2,048 tokens (about 105M tokens processed, 70M of them answer tokens). Loss is computed on the assistant answers only. Answer loss on the held-out validation split went from 2.43 (base model) to 1.91, decreasing at every evaluation, with no sign of over-fitting. Took 75 minutes on a TPU v5e-1.
SFT data (about 140K conversations after cleaning):
| Source | License | Examples | Notes |
|---|---|---|---|
| CohereLabs/aya_dataset (Turkish) | Apache-2.0 | 4,046 | Human-written |
| ogulcanaydogan/Turkish-LLM-v10-Training | Apache-2.0 | 109,562 | Cleaned, see below |
| HuggingFaceTB/smol-smoltalk | Apache-2.0 | 25,000 | English |
| Kristalsoft honesty set | Apache-2.0 | 340 (x5) | False-premise correction, "I don't know" answers |
| Kristalsoft identity set | Apache-2.0 | 120 (x25) | Who the model is and who made it |
Cleaning of Turkish-LLM-v10-Training removed 34,460 of 144,022 rows: tool-call transcripts, embedded system
prompts, song and poem lyrics requests, truncated and empty answers, and English answers to Turkish
questions; <think> traces were stripped from 24,307 answers.
Disclosure: part of Turkish-LLM-v10-Training appears to be generated by other language models. The dataset is published under Apache-2.0, but outputs of some commercial models come with their own terms of use. If this matters for your use case, consider fine-tuning Eris A0 Base on your own data.
Full benchmark results (TurkishMMLU, Belebele-TR, FLORES bits per byte and cloze tasks) against other small models, including Turkish-made models under 1B parameters, will be added here.
What we observed in manual testing:
Eris A0 is a small model. In particular:
Recommended uses: research on small Turkish language models, education, and as a base for narrow, task-specific fine-tuning (classification, extraction, normalization) where small size and local deployment matter.
Apache-2.0, for both the weights and the model code in this repository.
Kristalsoft offers task-specific fine-tuning, on-premise deployment and custom language model development.
@misc{eris-a0-2026,
title = {Eris A0: a small Turkish-English language model trained from scratch},
author = {Eren Koçakgöl},
organization = {Kristalsoft},
year = {2026},
url = {https://huggingface.co/kristalsoft/Eris-A0-Instruct}
}
Eris A0 Instruct, Kristalsoft (Eren Koçakgöl) tarafından sıfırdan eğitilmiş, 338M parametreli Türkçe-İngilizce bir sohbet modelidir. Tokenizer, mimari ve ön eğitim bize ait; ardından denetimli ince ayar (SFT) yapıldı. Eris A0 Base modelinin talimatla ince ayarlanmış sürümüdür.
A0, Eris ailesinin ilk modeli. Dizüstü bilgisayarın işlemcisinde rahatça çalışan küçük ve hızlı bir model. Deney, araştırma ve göreve özel ince ayar için bir başlangıç noktası olarak tasarlandı; büyük genel amaçlı asistanların yerine geçmesi beklenmemeli.
Tarayıcınızda deneyin: Eris A0 demo (model cihazınızda çalışır, yazdıklarınız sunucuya gitmez). Kaynak kod (model, değerlendirme, demo): GitHub.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "kristalsoft/Eris-A0-Instruct"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
print(model.chat(tokenizer, "Türkiye'nin başkenti neresidir?"))
Eris kendine özgü bir mimari kullandığı için trust_remote_code=True gerekir (kod modeling_eris.py
dosyasında, Apache-2.0). model.chat(...) tekrar cezasını (1.15) ve 4-gram tekrar yasağını yalnızca
üretilen tokenlara uygular; model de bu ayarlarla değerlendirildi. Dizüstü bilgisayar işlemcisinde
float32 ile saniyede yaklaşık 30 token üretir.
Önerilen kullanım: küçük Türkçe dil modelleri üzerine araştırma, eğitim ve küçük boyutun ve yerel çalışmanın önemli olduğu dar görevler (sınıflandırma, bilgi çıkarma, metin normalleştirme) için ince ayar.
Ağırlıklar ve model kodu Apache-2.0 lisanslıdır. Göreve özel ince ayar, kurum içi kurulum ve dil modeli geliştirme konularında Kristalsoft ile iletişime geçebilirsiniz.
model.safetensors 676 MBonnx/model_int8.onnx 408 MBkristalsoft/Eris-A0-Base