Eris

Eris A0 Instruct

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.

Türkçe açıklama aşağıda.

Quick start

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%.

Model details

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

Architecture

  • 24 pre-norm decoder layers, hidden size 1024, SwiGLU feed-forward (2816), RMSNorm
  • Grouped-query attention: 16 query heads, 4 key/value heads, head dimension 64
  • Hybrid attention: 3 of every 4 layers use a 1,024-token local (sliding) window, every 4th layer is global. This keeps most of the KV cache bounded for long inputs.
  • QK-norm and a per-head sigmoid output gate on attention
  • RoPE with base 10,000 on local layers and 1,000,000 on global layers
  • Tied input/output embeddings, tanh logit soft-capping (30)

Tokenizer

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.

Chat format

<|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|>.

Training

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.

Evaluation

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:

  • Fluent, well-formed Turkish and English; short factual questions are usually answered correctly.
  • Knows its identity ("Beni Eren KoΓ§akgΓΆl geliştirdi. AdΔ±m Eris.") and generalizes it to unseen phrasings.
  • Corrects some false premises ("1998 yΔ±lΔ±nda Nobel Fizik Γ–dΓΌlΓΌ'nΓΌ kazanan bir TΓΌrk yok. ...") and says it has no access to real-time information such as weather.

Limitations

Eris A0 is a small model. In particular:

  • Hallucination: it often produces confident but wrong facts, dates and numbers. Do not use it as a source of truth.
  • Arithmetic and reasoning: basic arithmetic and multi-step reasoning are unreliable (for example "12 + 7" may be answered as 18).
  • Instruction constraints: it frequently ignores length or format constraints ("in two sentences", "exactly two words").
  • Multi-part and multi-turn: it tends to answer only the first part of a compound question and is weak in multi-turn conversations, because the SFT data is mostly single-turn.
  • Code: it knows Python syntax but its code is often incorrect.
  • Bias: it was trained on web data and may reproduce biases and stereotypes found there.
  • Safety: no preference tuning or safety training was done beyond SFT.

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.

License

Apache-2.0, for both the weights and the model code in this repository.

Contact

Kristalsoft offers task-specific fine-tuning, on-premise deployment and custom language model development.

Citation

@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}
}

TΓΌrkΓ§e

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.

Hızlı başlangıç

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.

Γ–zellikler

  • 338.1M parametre (271.0M gΓΆvde + 67.1M paylaşımlΔ± embedding), 24 katman, 4,096 token bağlam
  • GQA (16 sorgu, 4 anahtar/değer başlığı), QK-norm, başlΔ±k bazlΔ± Γ§Δ±kış kapΔ±sΔ±
  • Hibrit dikkat: her 4 katmanΔ±n 3'ΓΌ 1,024 tokenlΔ±k yerel pencere, 1'i global
  • Kendi tokenizer'Δ±mΔ±z: 65,536 token, TΓΌrkΓ§e eklerini koruyan bΓΆlme kurallarΔ±. Kelime başına ortalama 1.53 token (TΓΌrkΓ§e), 1.29 token (Δ°ngilizce)

Eğitim

  • Γ–n eğitim: 9.63 milyar token (%35 TΓΌrkΓ§e web, %45 Δ°ngilizce web, %13 kod, %7 matematik), tek bir TPU Γ§ipinde (Colab TPU v6e-1 ve v5e-1).
  • SFT: 2 tur, 1,604 adΔ±m, yaklaşık 140 bin konuşma. Kaynaklar: Aya (TΓΌrkΓ§e, insan yazΔ±mΔ±), Turkish-LLM-v10-Training (temizlenmiş), smol-smoltalk (Δ°ngilizce) ve Kristalsoft'un dΓΌrΓΌstlΓΌk ve kimlik setleri. Doğrulama kaybΔ± 2.43'ten 1.91'e indi.
  • AΓ§Δ±klama: Turkish-LLM-v10-Training verisinin bir kΔ±smΔ± başka dil modellerince ΓΌretilmiş gΓΆrΓΌnΓΌyor. BazΔ± ticari modellerin Γ§Δ±ktΔ±larΔ± kendi kullanΔ±m şartlarΔ±na tabidir. Bu sizin iΓ§in ΓΆnemliyse Eris A0 Base ΓΌzerine kendi verinizle ince ayar yapΔ±n.

SΔ±nΔ±rlamalar

  • SΔ±k sΔ±k kendinden emin ama yanlış bilgi, tarih ve sayΔ± ΓΌretir. Bilgi kaynağı olarak kullanΔ±lmamalΔ±dΔ±r.
  • Aritmetik ve Γ§ok adΔ±mlΔ± akΔ±l yΓΌrΓΌtme gΓΌvenilir değildir.
  • Uzunluk ve biΓ§im kΔ±sΔ±tlarΔ±na Γ§oğu zaman uymaz.
  • Birleşik sorularda genellikle yalnΔ±zca ilk kΔ±smΔ± cevaplar, Γ§ok turlu sohbette zayΔ±ftΔ±r.
  • Kod yazΔ±mΔ± sΓΆzdizimi olarak dΓΌzgΓΌn ama iΓ§erik olarak Γ§oğu zaman hatalΔ±dΔ±r.
  • Web verisindeki ΓΆnyargΔ±larΔ± yansΔ±tabilir; SFT dışında gΓΌvenlik eğitimi yapΔ±lmadΔ±.

Γ–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.

Lisans ve iletişim

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.

Downloads last month
-
Safetensors
Model size
0.3B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for kristalsoft/Eris-A0-Instruct

Quantized
(1)
this model

Datasets used to train kristalsoft/Eris-A0-Instruct

Space using kristalsoft/Eris-A0-Instruct 1