Views
No views yet
Q8_0) GGUF quantization of
lapa-llm/lapa-v0.1.3-instruct —
a Ukrainian-specialized instruction model built on Google's Gemma 3 12B, with roughly
80 000 of its 256 000 tokenizer tokens replaced by Ukrainian-oriented ones.| File | Quant | Size | Notes |
|---|---|---|---|
lapa-v0.1.3-instruct-Q8_0.gguf | Q8_0 | ~12.5 GB | Near-lossless 8-bit; fits a single 24 GB GPU |
Q8_0 is the highest-fidelity common GGUF quant (8-bit, ~0.5 GB per B params). It keeps
generation quality effectively indistinguishable from the bf16 original while roughly
halving memory, so the full 12B model fits comfortably on one 24 GB card (e.g. RTX 3090/4090)
with room for KV cache. This matters here because Lapa's modified tokenizer makes the
model sensitive to precision loss — lower-bit quants (Q4/Q5/Q6) risk degrading Ukrainian
morphology, so Q8_0 is the recommended operating point.tokenizer.model +
merge_info.json) so no vocabulary precision is lost:1# llama.cpp @ b8185
2# 1. HF safetensors -> F16 GGUF (patched Lapa converter)
3python convert_hf_to_gguf_lapa.py lapa-v0.1.3-instruct/ \
4 --outfile lapa-12B-it-F16.gguf --outtype f16
5
6# 2. F16 -> Q8_0
7llama-quantize lapa-12B-it-F16.gguf lapa-v0.1.3-instruct-Q8_0.gguf Q8_0llama-server (OpenAI-compatible API)1llama-server \
2 --model lapa-v0.1.3-instruct-Q8_0.gguf \
3 --host 0.0.0.0 --port 8080 \
4 --n-gpu-layers 999 --ctx-size 8192 --flash-attn on1curl http://127.0.0.1:8080/v1/chat/completions \
2 -H 'Content-Type: application/json' \
3 -d '{"messages":[{"role":"user","content":"Розкажи коротко про місто Львів."}],
4 "temperature":0.3}'llama-cli1llama-cli -m lapa-v0.1.3-instruct-Q8_0.gguf -ngl 999 -c 8192 \
2 -p "Перепиши речення без цифр: На 500 сторінках є примітки."1huggingface-cli download skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF \
2 lapa-v0.1.3-instruct-Q8_0.gguf --local-dir .lapa-llm/lapa-v0.1.3-instruct