Instructions to use emese-tech/folyo-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use emese-tech/folyo-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf emese-tech/folyo-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf emese-tech/folyo-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf emese-tech/folyo-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf emese-tech/folyo-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf emese-tech/folyo-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf emese-tech/folyo-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf emese-tech/folyo-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf emese-tech/folyo-gguf:Q4_K_M
Use Docker
docker model run hf.co/emese-tech/folyo-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use emese-tech/folyo-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "emese-tech/folyo-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "emese-tech/folyo-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/emese-tech/folyo-gguf:Q4_K_M
- Ollama
How to use emese-tech/folyo-gguf with Ollama:
ollama run hf.co/emese-tech/folyo-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use emese-tech/folyo-gguf with Docker Model Runner:
docker model run hf.co/emese-tech/folyo-gguf:Q4_K_M
- Lemonade
How to use emese-tech/folyo-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull emese-tech/folyo-gguf:Q4_K_M
Run and chat with the model
lemonade run user.folyo-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Emese-Folyó (22B) — GGUF Q4_K_M
GGUF Q4_K_M — a compact llama.cpp-compatible build of Folyó, quantized from the model's
native q8 MLX artifact (folyo-mlx/). See the folyo/ repo's README for full architecture,
CPT/SFT/DPO training details, and benchmarks — this file covers only the GGUF-specific notes.
| Quantization | Q4_K_M (llama.cpp k-quant) |
| Size on disk | ~13 GB (vs. ~22 GB q8 MLX / ~42 GB bf16) |
| Max context length | 32,768 tokens (EuroLLM-22B's native context) |
| Runtime | llama.cpp / llama-server / llama-cli / any GGUF-compatible loader (LM Studio, Ollama, etc.) |
⚠️ Tokenizer fix required — read this before using any other GGUF build of this model
A stock convert_hf_to_gguf.py export of this model family is badly broken: it types the
ChatML control tokens (<|im_start|>, <|im_end|>) as NORMAL instead of CONTROL, so
<|im_start|> gets shredded into 7 garbage sub-word tokens instead of being fed to the model as
the single trained token — a prompt shape the model never saw during training. It also writes a
flat placeholder BPE merge score for every token, corrupting subword-split priority. Together these
caused a severe, previously-misdiagnosed quality regression (early testing wrongly concluded it was
inherent to llama.cpp itself).
This GGUF file has already been fixed — scripts/fix_gguf_tokenizer.py (in the main repo) was
run on it after conversion/quantization to correct the special-token typing, BPE scores, and a
stray leading-space flag. Verified byte-identical tokenization to the HF/MLX reference (same
tokenizer/vocab family as Patak, where this was confirmed on 80/80 sampled bench prompts).
If you ever regenerate this GGUF from source yourself, you must re-run that fix script (or the
equivalent metadata patch) — a plain convert_hf_to_gguf.py + llama-quantize pipeline without it
reproduces the old broken behavior.
Usage
llama-server -m emese-folyo-Q4_K_M.gguf -c 4096
import requests
r = requests.post("http://127.0.0.1:8080/v1/chat/completions", json={
"messages": [{"role": "user", "content": "Mi Magyarország fővárosa?"}],
"temperature": 0.2, "repeat_penalty": 1.15, "stop": ["<|im_end|>"],
})
print(r.json()["choices"][0]["message"]["content"])
Decode: temperature 0.2, repeat_penalty 1.15, stop on <|im_end|>, ChatML template
(<|im_start|>role\n...<|im_end|>\n).
Training
Same underlying weights as folyo-mlx/ (q8, the model's native training precision), just
re-quantized to GGUF Q4_K_M — no separate training. See folyo/README.md for the full 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.
Benchmarks
This exact Q4_K_M GGUF build (with the tokenizer fix applied) scored 404/500 (81%) on
emese-bench v1, vs. 388/500 (78%) for the same fix's Q8_0 build and 410/500 (82%) for the
original MLX q8 artifact. Zero <|im_start|>/<|im_end|> leaks. Note: the Q4 build scoring
slightly higher than Q8 here is most likely sampling variance between runs (specific failures
traded places rather than Q4 being uniformly better) rather than a real quantization advantage —
treat the two as within noise of each other. A residual artifact distinct from the tokenizer bug
was found in a couple of spots: rare stray encoding glitches (Hangul-filler characters) appended
to otherwise-normal text. See emese-bench/results/folyo-gguf-q4fix.md for the full
category-by-category transcript and emese-bench/README.md for the benchmark's design and the
Q8_0 comparison point.
Limitations
- Can hallucinate specific facts (dates, attributions, biographical details) — verify critical details. Two specific bench questions (about fictional/obscure Hungarian scientists) reliably produce confidently-fabricated biographies across every tested variant of this model family.
- Hungarian-first; other-language quality inherited from EuroLLM-22B.
- Fails to maintain English across a full multi-turn conversation when the user writes in English — answers drift back into Hungarian. This is a pre-existing weakness of the underlying model (confirmed present in the MLX original too), not something the GGUF conversion caused.
- Weak at multi-step math, spatial estimation, and strict multi-constraint formatting (alphabetical ordering, exact word counts, banned letters).
- Large — even the Q4_K_M build is ~13 GB; needs a machine with enough RAM for practical serving.
- Downloads last month
- -
4-bit
Model tree for emese-tech/folyo-gguf
Base model
utter-project/EuroLLM-22B-2512