GGUF files (Q8_0 and Q5_K_M) for Ollama and llama.cpp of basal-2.0-4.5B (4.5B, base Bielik-4.5B-v3.0-Instruct). Same model, same typed-decision API through basal-serve; the calibration files this folder ships are listed below.
Agreement is the share of decisions where the port picks the same option as the bf16 release model on the development set dev v2 (MLX rows: every 3rd dev v2 decision, 1,700 decisions). Bars for this tier: agreement 2-10 >= 0.9415, agreement at reference margin >= 0.2 >= 0.9863, accuracy within 1 point of bf16, ECE at most +0.01. All ports of this tier:
| package | agreement with bf16 (options 2-10) | agreement at margin >= 0.2 | accuracy diff | ECE diff | size | speed | gate |
|---|---|---|---|---|---|---|---|
| FP8 | 0.9478 | 0.9890 | -0.0008 | +0.0009 | 4.9 GB | 38.6 dec/s c16, c1 p50 29 ms (H100) | PASS |
| GGUF Q8_0 | 0.9839 | 0.9988 | +0.0002 | +0.0035 | 4.8 GB | not measured in this release | PASS |
| GGUF Q5_K_M | 0.9569 | 0.9920 | -0.0039 | +0.0040 | 3.2 GB | not measured in this release | PASS |
| MLX 8-bit | 0.9792 | 0.9989 | +0.0000 | -0.0009 | 4.9 GB | 278 ms c1 p50, 698 ms for 5 questions (Mac) | PASS |
The ports are decision-layer checks against bf16, not new benchmarks; the model's own results are on basal-2.0-4.5B.
Files: basal-2.0-4.5B-Q8_0.gguf (recommended), basal-2.0-4.5B-Q5_K_M.gguf (smaller), Modelfile.Q8_0, Modelfile.Q5_K_M, basal.json and the calibration files below. The basal server runs in front of Ollama or llama.cpp: it renders basal's own prompt and reads the log-probabilities of the option codes. Ollama 0.12.11 or newer:
uv venv --python 3.12 --allow-existing ~/basal-env && source ~/basal-env/bin/activate
uv pip install "basal @ https://github.com/rkinas/basal/archive/refs/tags/v2.0.0.tar.gz"
hf download Remek/basal-2.0-4.5B-GGUF --local-dir basal-2.0-4.5B-GGUF
cd basal-2.0-4.5B-GGUF && ollama create basal-2.0-4.5b:q8_0 -f Modelfile.Q8_0 && cd ..
basal-serve --model ./basal-2.0-4.5B-GGUF --mode ollama --ollama-model basal-2.0-4.5b:q8_0 --port 8000
--model points at the downloaded folder for the tokenizer, chat template and calibration files; Ollama serves the weights. Ollama returns at most 20 log-probabilities per position, so questions with more than 20 options need llama.cpp:
llama-server -m basal-2.0-4.5B-GGUF/basal-2.0-4.5B-Q8_0.gguf -c 4096 --port 8080
basal-serve --model ./basal-2.0-4.5B-GGUF --mode llamacpp --llamacpp-url http://127.0.0.1:8080 --port 8000
Without a separate server, --mode gguf loads the file in process (basal[gguf], llama-cpp-python): basal-serve --model ./basal-2.0-4.5B-GGUF --mode gguf --gguf basal-2.0-4.5B-GGUF/basal-2.0-4.5B-Q8_0.gguf --port 8000. A plain ollama run gives free text only: the typed answers come from basal-serve in front of it. --http-parallel N (with OLLAMA_NUM_PARALLEL / llama-server -np) serves concurrent clients.
Context. Ollama mode reads at most 4,096 tokens per prompt (basal-serve sends num_ctx 4096, which overrides the Modelfile), and llama.cpp mode reads what llama-server -c allows; longer states are cut in the middle (usage.truncated). For long documents use llama-server -c 32768 or --mode gguf.
Speed: not measured in this release. GGUF is the slow path for batches: it is for desktops and laptops, not servers.
Engine. The same basal engine v2.0.0 also serves the experimental basal-omni-1.0 models (images and audio): README.
CALIBRATION.json in this folder is the bf16 model's calibration, the default for every mode without a fit of its own. basal-serve --mode ollama and --mode llamacpp load CALIBRATION.<engine>.json for their engine when the folder has it, else CALIBRATION.json. --mode gguf (in process) loads CALIBRATION.json, the bf16 fit; pass --calibration <folder>/CALIBRATION.llamacpp.json to use the llama.cpp fit. A calibration fitted on bf16 readouts does not carry over exactly to a quantised port (an outside test of
basal-1.5 on Ollama saw 2.3% real error at the 1% threshold with the bf16 file), so a port-specific fit, where it passed,
uses the bf16 model's method on that port's own readouts of the same calibration splits, one option order:
basal-serve --mode ollama: Ships CALIBRATION.ollama.json, fitted on Ollama (GGUF) readouts of this port (same method as the bf16 fit, one option order); dev v2 ECE 0.0208 with the bf16 fit -> 0.0196 with this fit (in-sample), 0.0211 held-out (leave-one-family-out).basal-serve --mode llamacpp: Ships CALIBRATION.llamacpp.json, fitted on llama.cpp (GGUF) readouts of this port (same method as the bf16 fit, one option order); dev v2 ECE 0.0228 with the bf16 fit -> 0.0150 with this fit (in-sample), 0.0166 held-out (leave-one-family-out).Where a port uses the bf16 calibration, treat its confidence thresholds as approximate and fit your own with
basal-calibrate when they matter.
See the model card basal-2.0-4.5B for Werdykt, JDI, LEK, PL-Holdout and PL-Real numbers against basal-1.5 and the evaluation notes. This port is not scored separately on those benchmarks.
"facts": "auto")."max_error": 0.01
on an act or tool question defers every decision; use 0.05, or certify thresholds on your own data with basal-calibrate.act and multi over many labels are experimental. Up to 255 options per question (Ollama: 20); the model's context is
32,768 tokens, but Ollama mode reads at most 4,096 tokens per prompt and llama.cpp mode what llama-server -c allows (see Use). The 2.0 models ship no evidence head.@software{kinas2026basal20,
title = {basal-2.0: typed-decision models and inference engine for Polish and English},
author = {Kinas, Remigiusz},
year = {2026},
version = {2.0.0},
url = {https://github.com/rkinas/basal}
}
Apache-2.0. Fine-tuned from speakleash/Bielik-4.5B-v3.0-Instruct (Apache-2.0). Bielik is a project of SpeakLeash and ACK Cyfronet AGH.
GGUF files (Q8_0 and Q5_K_M) for Ollama and llama.cpp of basal-2.0-4.5B (4.5B, base Bielik-4.5B-v3.0-Instruct). Same model, same typed-decision API through basal-serve; the calibration files this folder ships are listed below.
Agreement is the share of decisions where the port picks the same option as the bf16 release model on the development set dev v2 (MLX rows: every 3rd dev v2 decision, 1,700 decisions). Bars for this tier: agreement 2-10 >= 0.9415, agreement at reference margin >= 0.2 >= 0.9863, accuracy within 1 point of bf16, ECE at most +0.01. All ports of this tier:
| package | agreement with bf16 (options 2-10) | agreement at margin >= 0.2 | accuracy diff | ECE diff | size | speed | gate |
|---|---|---|---|---|---|---|---|
| FP8 | 0.9478 | 0.9890 | -0.0008 | +0.0009 | 4.9 GB | 38.6 dec/s c16, c1 p50 29 ms (H100) | PASS |
| GGUF Q8_0 | 0.9839 | 0.9988 | +0.0002 | +0.0035 | 4.8 GB | not measured in this release | PASS |
| GGUF Q5_K_M | 0.9569 | 0.9920 | -0.0039 | +0.0040 | 3.2 GB | not measured in this release | PASS |
| MLX 8-bit | 0.9792 | 0.9989 | +0.0000 | -0.0009 | 4.9 GB | 278 ms c1 p50, 698 ms for 5 questions (Mac) | PASS |
The ports are decision-layer checks against bf16, not new benchmarks; the model's own results are on basal-2.0-4.5B.
Files: basal-2.0-4.5B-Q8_0.gguf (recommended), basal-2.0-4.5B-Q5_K_M.gguf (smaller), Modelfile.Q8_0, Modelfile.Q5_K_M, basal.json and the calibration files below. The basal server runs in front of Ollama or llama.cpp: it renders basal's own prompt and reads the log-probabilities of the option codes. Ollama 0.12.11 or newer:
uv venv --python 3.12 --allow-existing ~/basal-env && source ~/basal-env/bin/activate
uv pip install "basal @ https://github.com/rkinas/basal/archive/refs/tags/v2.0.0.tar.gz"
hf download Remek/basal-2.0-4.5B-GGUF --local-dir basal-2.0-4.5B-GGUF
cd basal-2.0-4.5B-GGUF && ollama create basal-2.0-4.5b:q8_0 -f Modelfile.Q8_0 && cd ..
basal-serve --model ./basal-2.0-4.5B-GGUF --mode ollama --ollama-model basal-2.0-4.5b:q8_0 --port 8000
--model points at the downloaded folder for the tokenizer, chat template and calibration files; Ollama serves the weights. Ollama returns at most 20 log-probabilities per position, so questions with more than 20 options need llama.cpp:
llama-server -m basal-2.0-4.5B-GGUF/basal-2.0-4.5B-Q8_0.gguf -c 4096 --port 8080
basal-serve --model ./basal-2.0-4.5B-GGUF --mode llamacpp --llamacpp-url http://127.0.0.1:8080 --port 8000
Without a separate server, --mode gguf loads the file in process (basal[gguf], llama-cpp-python): basal-serve --model ./basal-2.0-4.5B-GGUF --mode gguf --gguf basal-2.0-4.5B-GGUF/basal-2.0-4.5B-Q8_0.gguf --port 8000. A plain ollama run gives free text only: the typed answers come from basal-serve in front of it. --http-parallel N (with OLLAMA_NUM_PARALLEL / llama-server -np) serves concurrent clients.
Context. Ollama mode reads at most 4,096 tokens per prompt (basal-serve sends num_ctx 4096, which overrides the Modelfile), and llama.cpp mode reads what llama-server -c allows; longer states are cut in the middle (usage.truncated). For long documents use llama-server -c 32768 or --mode gguf.
Speed: not measured in this release. GGUF is the slow path for batches: it is for desktops and laptops, not servers.
Engine. The same basal engine v2.0.0 also serves the experimental basal-omni-1.0 models (images and audio): README.
CALIBRATION.json in this folder is the bf16 model's calibration, the default for every mode without a fit of its own. basal-serve --mode ollama and --mode llamacpp load CALIBRATION.<engine>.json for their engine when the folder has it, else CALIBRATION.json. --mode gguf (in process) loads CALIBRATION.json, the bf16 fit; pass --calibration <folder>/CALIBRATION.llamacpp.json to use the llama.cpp fit. A calibration fitted on bf16 readouts does not carry over exactly to a quantised port (an outside test of
basal-1.5 on Ollama saw 2.3% real error at the 1% threshold with the bf16 file), so a port-specific fit, where it passed,
uses the bf16 model's method on that port's own readouts of the same calibration splits, one option order:
basal-serve --mode ollama: Ships CALIBRATION.ollama.json, fitted on Ollama (GGUF) readouts of this port (same method as the bf16 fit, one option order); dev v2 ECE 0.0208 with the bf16 fit -> 0.0196 with this fit (in-sample), 0.0211 held-out (leave-one-family-out).basal-serve --mode llamacpp: Ships CALIBRATION.llamacpp.json, fitted on llama.cpp (GGUF) readouts of this port (same method as the bf16 fit, one option order); dev v2 ECE 0.0228 with the bf16 fit -> 0.0150 with this fit (in-sample), 0.0166 held-out (leave-one-family-out).Where a port uses the bf16 calibration, treat its confidence thresholds as approximate and fit your own with
basal-calibrate when they matter.
See the model card basal-2.0-4.5B for Werdykt, JDI, LEK, PL-Holdout and PL-Real numbers against basal-1.5 and the evaluation notes. This port is not scored separately on those benchmarks.
"facts": "auto")."max_error": 0.01
on an act or tool question defers every decision; use 0.05, or certify thresholds on your own data with basal-calibrate.act and multi over many labels are experimental. Up to 255 options per question (Ollama: 20); the model's context is
32,768 tokens, but Ollama mode reads at most 4,096 tokens per prompt and llama.cpp mode what llama-server -c allows (see Use). The 2.0 models ship no evidence head.@software{kinas2026basal20,
title = {basal-2.0: typed-decision models and inference engine for Polish and English},
author = {Kinas, Remigiusz},
year = {2026},
version = {2.0.0},
url = {https://github.com/rkinas/basal}
}
Apache-2.0. Fine-tuned from speakleash/Bielik-4.5B-v3.0-Instruct (Apache-2.0). Bielik is a project of SpeakLeash and ACK Cyfronet AGH.