How to use from the
Use from the
MLX library
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm

# Generate text with mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("emese-tech/csermely-mlx")

prompt = "Write a story about Einstein"
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True
)

text = generate(model, tokenizer, prompt=prompt, verbose=True)

Emese-Csermely (1.7B) — MLX q8

MLX q8-quantized build of Csermely, the mobile/on-device tier of the Emese Hungarian model family. See the csermely/ repo's README for full architecture, CPT/SFT/DPO training details, and benchmarks — this file covers only the q8-specific notes.

Quantization q8, group size 64 (mlx_lm convert -q --q-bits 8 --q-group-size 64)
Size on disk ~1.7 GB (vs. ~3.1 GB bf16)
Quality ≈ bf16, near-lossless at 8-bit
Max context length 4,096 tokens (unchanged from bf16 — EuroLLM-1.7B's native context)

Usage

from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
model, tok = load("emese-tech/csermely-mlx")
p = tok.apply_chat_template([{"role": "user", "content": "Szia! Mit tudsz csinálni?"}],
                            tokenize=False, add_generation_prompt=True)
print(generate(model, tok, prompt=p, max_tokens=256, sampler=make_sampler(temp=0.2)))

Decode: temperature 0.2, no repetition penalty, eos {2, 4}, ChatML template.

⚠️ This repo is mlx_lm-only — MLX's q8 quantization packs weights into uint32 + per-group scales/biases tensors with a quantization block in config.json that plain transformers does not understand (AutoModelForCausalLM.from_pretrained will raise quant_method errors on this repo). Use the csermely/ (bf16) repo for transformers/vLLM/TGI.

Training

Identical underlying weights to csermely/ (bf16), just quantized after the fact — no separate training. See csermely/README.md for the full CPT/SFT/DPO recipe and benchmark numbers.

Benchmarks

This exact q8 artifact scored 211/500 (42%) on emese-bench v1 (the consolidated 500-pt Ultimate+BlindSpot benchmark) — see emese-bench/results/csermely-mlx.md for the full category-by-category transcript and emese-bench/README.md for the benchmark's design.

Downloads last month
447
Safetensors
Model size
2B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for emese-tech/csermely-mlx

Quantized
(8)
this model