Instructions to use skypro1111/lapa-v0.1.3-instruct-Q8_0-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 skypro1111/lapa-v0.1.3-instruct-Q8_0-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 skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
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 skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
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 skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "skypro1111/lapa-v0.1.3-instruct-Q8_0-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": "skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
- Ollama
How to use skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF with Ollama:
ollama run hf.co/skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
- Lemonade
How to use skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.lapa-v0.1.3-instruct-Q8_0-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: gemma
|
| 3 |
+
base_model: lapa-llm/lapa-v0.1.3-instruct
|
| 4 |
+
language:
|
| 5 |
+
- uk
|
| 6 |
+
tags:
|
| 7 |
+
- gguf
|
| 8 |
+
- llama.cpp
|
| 9 |
+
- ukrainian
|
| 10 |
+
- gemma3
|
| 11 |
+
- quantized
|
| 12 |
+
- q8_0
|
| 13 |
+
library_name: gguf
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Lapa v0.1.3 Instruct — Q8_0 GGUF
|
| 18 |
+
|
| 19 |
+
8-bit (`Q8_0`) [GGUF](https://github.com/ggml-org/llama.cpp) quantization of
|
| 20 |
+
[**lapa-llm/lapa-v0.1.3-instruct**](https://huggingface.co/lapa-llm/lapa-v0.1.3-instruct) —
|
| 21 |
+
a Ukrainian-specialized instruction model built on Google's Gemma 3 12B, with roughly
|
| 22 |
+
80 000 of its 256 000 tokenizer tokens replaced by Ukrainian-oriented ones.
|
| 23 |
+
|
| 24 |
+
This repository contains **only the quantized weights**. For the original model, tokenizer
|
| 25 |
+
sources, training details and intended use, see the
|
| 26 |
+
[upstream model card](https://huggingface.co/lapa-llm/lapa-v0.1.3-instruct).
|
| 27 |
+
|
| 28 |
+
## Files
|
| 29 |
+
|
| 30 |
+
| File | Quant | Size | Notes |
|
| 31 |
+
|------|-------|------|-------|
|
| 32 |
+
| `lapa-v0.1.3-instruct-Q8_0.gguf` | `Q8_0` | ~12.5 GB | Near-lossless 8-bit; fits a single 24 GB GPU |
|
| 33 |
+
|
| 34 |
+
## Why Q8_0
|
| 35 |
+
|
| 36 |
+
`Q8_0` is the highest-fidelity common GGUF quant (8-bit, ~0.5 GB per B params). It keeps
|
| 37 |
+
generation quality effectively indistinguishable from the `bf16` original while roughly
|
| 38 |
+
halving memory, so the full 12B model fits comfortably on one 24 GB card (e.g. RTX 3090/4090)
|
| 39 |
+
with room for KV cache. This matters here because Lapa's **modified tokenizer** makes the
|
| 40 |
+
model sensitive to precision loss — lower-bit quants (Q4/Q5/Q6) risk degrading Ukrainian
|
| 41 |
+
morphology, so Q8_0 is the recommended operating point.
|
| 42 |
+
|
| 43 |
+
## How it was made
|
| 44 |
+
|
| 45 |
+
Following the [official Lapa quantization recipe](https://github.com/lapa-llm/lapa-llm/tree/main/quantize),
|
| 46 |
+
which uses a patched converter that preserves Lapa's custom tokenizer (`tokenizer.model` +
|
| 47 |
+
`merge_info.json`) so no vocabulary precision is lost:
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
# llama.cpp @ b8185
|
| 51 |
+
# 1. HF safetensors -> F16 GGUF (patched Lapa converter)
|
| 52 |
+
python convert_hf_to_gguf_lapa.py lapa-v0.1.3-instruct/ \
|
| 53 |
+
--outfile lapa-12B-it-F16.gguf --outtype f16
|
| 54 |
+
|
| 55 |
+
# 2. F16 -> Q8_0
|
| 56 |
+
llama-quantize lapa-12B-it-F16.gguf lapa-v0.1.3-instruct-Q8_0.gguf Q8_0
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## Usage
|
| 60 |
+
|
| 61 |
+
### `llama-server` (OpenAI-compatible API)
|
| 62 |
+
|
| 63 |
+
```bash
|
| 64 |
+
llama-server \
|
| 65 |
+
--model lapa-v0.1.3-instruct-Q8_0.gguf \
|
| 66 |
+
--host 0.0.0.0 --port 8080 \
|
| 67 |
+
--n-gpu-layers 999 --ctx-size 8192 --flash-attn on
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
curl http://127.0.0.1:8080/v1/chat/completions \
|
| 72 |
+
-H 'Content-Type: application/json' \
|
| 73 |
+
-d '{"messages":[{"role":"user","content":"Розкажи коротко про місто Львів."}],
|
| 74 |
+
"temperature":0.3}'
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
### `llama-cli`
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
llama-cli -m lapa-v0.1.3-instruct-Q8_0.gguf -ngl 999 -c 8192 \
|
| 81 |
+
-p "Перепиши речення без цифр: На 500 сторінках є примітки."
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### Download
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
huggingface-cli download skypro1111/lapa-v0.1.3-instruct-Q8_0-GGUF \
|
| 88 |
+
lapa-v0.1.3-instruct-Q8_0.gguf --local-dir .
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## License
|
| 92 |
+
|
| 93 |
+
Derived from Google Gemma 3 and inherits the [**Gemma Terms of Use**](https://ai.google.dev/gemma/terms).
|
| 94 |
+
Use of these weights is subject to those terms and to any terms of the upstream
|
| 95 |
+
[lapa-llm/lapa-v0.1.3-instruct](https://huggingface.co/lapa-llm/lapa-v0.1.3-instruct) model.
|
| 96 |
+
|
| 97 |
+
## Credits
|
| 98 |
+
|
| 99 |
+
- Original model: [**Lapa LLM**](https://huggingface.co/lapa-llm) team — `lapa-llm/lapa-v0.1.3-instruct`
|
| 100 |
+
- Base architecture: [Google Gemma 3](https://ai.google.dev/gemma)
|
| 101 |
+
- Quantization tooling: [llama.cpp](https://github.com/ggml-org/llama.cpp)
|
| 102 |
+
|
| 103 |
+
*This is an unofficial, community quantization. Not affiliated with the Lapa LLM team or Google.*
|