Instructions to use kristalsoft/Eris-A0-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kristalsoft/Eris-A0-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kristalsoft/Eris-A0-Instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("kristalsoft/Eris-A0-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kristalsoft/Eris-A0-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kristalsoft/Eris-A0-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kristalsoft/Eris-A0-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kristalsoft/Eris-A0-Instruct
- SGLang
How to use kristalsoft/Eris-A0-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "kristalsoft/Eris-A0-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kristalsoft/Eris-A0-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "kristalsoft/Eris-A0-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kristalsoft/Eris-A0-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kristalsoft/Eris-A0-Instruct with Docker Model Runner:
docker model run hf.co/kristalsoft/Eris-A0-Instruct
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.
- E-mail: destek@kristalsoft.com.tr
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.
- E-posta: destek@kristalsoft.com.tr
- Downloads last month
- -
Model tree for kristalsoft/Eris-A0-Instruct
Base model
kristalsoft/Eris-A0-Base