Text Generation
MLX
Safetensors
Hungarian
llama
hungarian
emese
eurollm
instruct
chatml
apple-silicon
quantized
conversational
8-bit precision
Instructions to use emese-tech/folyo-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use emese-tech/folyo-mlx with MLX:
# 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/folyo-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) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use emese-tech/folyo-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "emese-tech/folyo-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "emese-tech/folyo-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "emese-tech/folyo-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
|
Download README.md from emese-tech/folyo-mlx: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/emese-tech/folyo-mlx/resolve/main/README.md
- Command line
-
hf download hf://emese-tech/folyo-mlx/README.md
-
curl -L -o README.md https://huggingface.co/emese-tech/folyo-mlx/resolve/main/README.md
2.6 kB
| language: | |
| - hu | |
| license: apache-2.0 | |
| library_name: mlx | |
| base_model: utter-project/EuroLLM-22B | |
| pipeline_tag: text-generation | |
| tags: | |
| - hungarian | |
| - emese | |
| - eurollm | |
| - instruct | |
| - chatml | |
| - mlx | |
| - apple-silicon | |
| - quantized | |
| # Emese-Folyó (22B) — MLX q8 | |
| **MLX q8** — the **native training/serving precision** for Folyó (CPT, SFT, and DPO were all trained on | |
| top of a q8-quantized base). See the `folyo/` 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 | | |
| | **Size on disk** | ~22 GB (vs. ~42 GB bf16) | | |
| | **Quality** | This *is* the model's native precision — the `folyo/` bf16 repo is dequantized *from* this, not the other way around. | | |
| | **Max context length** | 32,768 tokens (EuroLLM-22B's native context) | | |
| ## Usage | |
| ```python | |
| from mlx_lm import load, generate | |
| from mlx_lm.sample_utils import make_sampler | |
| model, tok = load("emese-tech/folyo-mlx") | |
| p = tok.apply_chat_template([{"role": "user", "content": "Mi Magyarország fővárosa?"}], | |
| 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. Use the `folyo/` (bf16) repo for `transformers`/vLLM/TGI. | |
| ## Training | |
| This is the primary artifact of the CPT+SFT+DPO training chain — see `folyo/README.md` for the full | |
| q8-native CPT (~6M tokens/6,000 iters, rank64), SFT (`instruct_v18b`, 1 epoch, rank16/scale16/lr5e-6, | |
| iteration 3,600 selected), and DPO (36 alfa pairs, 120 iters, rank16/scale16/lr2e-6) recipe, plus the | |
| 211/250 Ultimate · 310/376 BlindSpot benchmark results. | |
| ## Benchmarks | |
| **This exact q8 artifact scored 410/500 (82%) on emese-bench v1** (200 questions + 10 chat sessions, | |
| consolidated Ultimate+BlindSpot) — a close second to Patak (413/500) and far ahead of Csermely | |
| (211/500). Strongest on safety, reading, translation, and code; weakest on multi-step math and logic | |
| puzzles. Notably the best of the three models on in-context memory recall and roleplay (both 10/10), | |
| but it failed to stay in English during the English-chat session, answering in Hungarian throughout. | |
| See `emese-bench/results/folyo-mlx.md` for the full transcript and category breakdown. | |