Instructions to use kristalsoft/Eris-A0-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kristalsoft/Eris-A0-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kristalsoft/Eris-A0-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("kristalsoft/Eris-A0-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kristalsoft/Eris-A0-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kristalsoft/Eris-A0-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kristalsoft/Eris-A0-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kristalsoft/Eris-A0-Base
- SGLang
How to use kristalsoft/Eris-A0-Base 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-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kristalsoft/Eris-A0-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kristalsoft/Eris-A0-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kristalsoft/Eris-A0-Base with Docker Model Runner:
docker model run hf.co/kristalsoft/Eris-A0-Base
Eris A0 Base
Eris A0 Base is a 338M-parameter Turkish-English language model pre-trained from scratch by Kristalsoft (Eren Koçakgöl) on 9.63 billion tokens, with its own tokenizer and architecture. This is the pre-trained (not instruction-tuned) model. For chat, use Eris A0 Instruct.
The base model is the right starting point if you want to fine-tune Eris on your own data, for example for classification, extraction or text normalization in Turkish.
Try it in your browser: Eris A0 demo (runs locally, nothing is sent to a server). Source code (model, evaluation, demo): GitHub.
Quick start
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "kristalsoft/Eris-A0-Base"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
inputs = tokenizer("İstanbul Boğazı'nın iki yakası", return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=60) # defaults: sampling, temperature 0.7, top_k 40
print(tokenizer.decode(out[0], skip_special_tokens=True))
trust_remote_code=True is required because Eris uses its own architecture (code in
modeling_eris.py, Apache-2.0). The model is a plain text continuer: it does not follow instructions.
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 code and math) |
| Context length | 4,096 tokens |
| Vocabulary | 65,536 (byte-level BPE, own tokenizer) |
| Training tokens | 9.63B |
| 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
- 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 with 65,536 entries, 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.
Training
| Tokens | 9.63B (18,360 steps x 524,288 tokens) |
| Sequence length | 4,096 |
| Batch | 128 sequences per step |
| Learning rate schedule | warmup-stable-decay; the run was stopped at 96% of the planned 19,074 steps, during the decay phase |
| Precision | bfloat16 |
| Hardware | a single Google Cloud TPU chip (Colab TPU v6e-1, partly v5e-1) |
| Compute | about 2 x 10^19 FLOPs |
Pre-training data (token shares in training):
| Source | Share | License |
|---|---|---|
epfml/FineWeb2-HQ, Turkish (tur_Latn) |
35% | ODC-By |
| HuggingFaceFW/fineweb-edu, 10BT sample | 45% | ODC-By |
| codeparrot/github-code-clean, MIT and Apache-2.0 files only | 13% | MIT / Apache-2.0 |
HuggingFaceTB/finemath, finemath-4plus |
7% | ODC-By |
Documents were packed into 4,096-token sequences separated by <|endoftext|>. During training, attention
did not cross document boundaries. The released inference code treats the whole input as one document,
which is equivalent for normal use (a single prompt without <|endoftext|> in the middle).
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.
Limitations
- This is a base model: it continues text and does not follow instructions.
- It often produces fluent but factually wrong text, especially names, dates and numbers.
- Arithmetic, reasoning and code are weak at this size.
- Trained on web data, it may reproduce biases, stereotypes and offensive content found there. No safety training was done.
License
Apache-2.0, for both the weights and the model code in this repository. The training data keeps its own licenses (see the table above).
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-Base}
}
Türkçe
Eris A0 Base, Kristalsoft (Eren Koçakgöl) tarafından sıfırdan eğitilmiş, 338M parametreli Türkçe-İngilizce bir dil modelidir. Kendi tokenizer'ı ve mimarisiyle 9.63 milyar token üzerinde ön eğitimden geçti. Bu, talimatla ince ayarlanmamış ön eğitimli modeldir. Sohbet için Eris A0 Instruct modelini kullanın.
Eris'i kendi verinizle ince ayarlamak istiyorsanız, örneğin Türkçe metin sınıflandırma, bilgi çıkarma ya da metin normalleştirme için, doğru başlangıç noktası bu modeldir.
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-Base"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
inputs = tokenizer("İstanbul Boğazı'nın iki yakası", return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=60)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Özellikler
- 338.1M parametre, 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ı
Eğitim
- 9.63 milyar token: %35 Türkçe web (FineWeb2-HQ), %45 İngilizce web (FineWeb-Edu), %13 kod (yalnızca MIT ve Apache-2.0 lisanslı dosyalar), %7 matematik (FineMath)
- 4,096 token uzunluğunda, adım başına 128 dizi, bfloat16
- Tek bir TPU çipinde (Colab TPU v6e-1 ve kısmen v5e-1), yaklaşık 2 x 10^19 FLOP
- Planlanan 19,074 adımın %96'sında, öğrenme oranının azalma döneminde durduruldu
Sınırlamalar
- Ön eğitimli bir modeldir: metni sürdürür, talimatlara uymaz.
- Akıcı ama çoğu zaman olgusal olarak yanlış metin üretir; özellikle isim, tarih ve sayılarda.
- Bu boyutta aritmetik, akıl yürütme ve kod zayıftır.
- Web verisindeki önyargıları ve uygunsuz içerikleri yansıtabilir; güvenlik eğitimi yapılmadı.
Lisans ve iletişim
Ağırlıklar ve model kodu Apache-2.0 lisanslıdır; eğitim verileri kendi lisanslarına tabidir. 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
- -