Instructions to use emese-tech/csermely with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use emese-tech/csermely with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="emese-tech/csermely")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("emese-tech/csermely") model = AutoModelForCausalLM.from_pretrained("emese-tech/csermely") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use emese-tech/csermely with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "emese-tech/csermely" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "emese-tech/csermely", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/emese-tech/csermely
- SGLang
How to use emese-tech/csermely 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 "emese-tech/csermely" \ --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": "emese-tech/csermely", "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 "emese-tech/csermely" \ --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": "emese-tech/csermely", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use emese-tech/csermely with Docker Model Runner:
docker model run hf.co/emese-tech/csermely
Csermely
The smallest coherent Hungarian language model. Part of the Emese model family.
Csermely is a 138M parameter decoder-only transformer trained exclusively on high-quality Hungarian text. It runs on edge devices and excels in summarization, grammar checking, and tone detection.
Model Details
| Parameters | 137.8M |
| Context length | 8,192 tokens (YaRN RoPE) |
| Architecture | LLaMA-style (decoder-only transformer) |
| Training context | 2,048 tokens |
| Training precision | bfloat16 (MLX) |
| Published weights | float16 |
| Vocabulary | 32,000 (SentencePiece Unigram, Hungarian) |
| Training data | ~1B tokens of Hungarian text |
| License | MIT |
Architecture
- 16 transformer layers
- 768 hidden dimension
- 12 attention heads
- 2048 FFN intermediate size
- RMSNorm pre-layer normalization
- Rotary positional embeddings (RoPE) with YaRN extension
- SwiGLU feed-forward activation
- Tied input/output embeddings
Tokenizer
Custom 32K vocabulary SentencePiece Unigram tokenizer trained on high-quality Hungarian corpora. ~30% more token-efficient than multilingual tokenizers for Hungarian text.
Available separately: emese-tech/emese-tokenizer-32k
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("emese-tech/csermely")
model = AutoModelForCausalLM.from_pretrained("emese-tech/csermely")
input_text = "A magyar nyelv"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The default generation config uses temperature=0.7, top_p=0.9, and repetition_penalty=1.2 to reduce repetitive output.
Citation
@misc{emese-csermely-2026,
title={Csermely: A Tiny Hungarian Language Model},
author={Emese Tech},
year={2026},
url={https://huggingface.co/emese-tech/csermely}
}
- Downloads last month
- 40