Run this model with HF Jobs

Run Remek/basal-3.0-mini on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Remek/basal-3.0-mini. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Remek/basal-3.0-mini on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Remek/basal-3.0-mini. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Remek/basal-3.0-mini. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
basal-3.0-mini / README.md
Remek's picture
Name the 3.0.2 build by its public commit (1bd1bba2)
a05d0ba verified
|
Raw History Blame Contribute Delete
9.74 kB
metadata
license: apache-2.0
language:
  - pl
  - en
base_model: speakleash/Bielik-4.5B-v3.0-Instruct
library_name: transformers
pipeline_tag: text-generation
tags:
  - typed-decisions
  - decision-making
  - classification
  - calibration
  - polish
  - decision-model

basal-3.0-mini

basal-3.0-mini (4.5B) is a typed-decision model for Polish and English, part of the basal-3.0 family, built on Bielik-4.5B-v3.0-Instruct. The model reads a state (a message, a document, retrieved passages, an agent trace) and answers typed questions about it (choice, yes/no noul, score, act, tool) with a calibrated probability for each allowed answer, in one forward pass, without generating text.

Two-way reading. The model reads its prompt in both directions (every token sees the whole state and question, up to 4,096 prompt tokens; longer prompts are read causally). basal-serve reads it that way with --llama-graph on only; without the flag the server refuses to start. llama.cpp and Ollama read one way, so the GGUF files read this model causally, at a measured cost (see the GGUF card).

Quick start

Install the basal engine 3.0.3 (NVIDIA GPU, CUDA 12.8 driver or newer):

uv venv --python 3.12 ~/basal-env && source ~/basal-env/bin/activate
uv pip install torch==2.11.0 --index-url https://download.pytorch.org/whl/cu128
uv pip install "basal-engine[fp8] @ https://github.com/rkinas/basal/archive/refs/tags/v3.0.3.tar.gz"

basal 3.0.3 returns bit-identical probabilities to basal 3.0.2 (build 1bd1bba2), on which this card's 3.0.2 numbers were measured, on the 8,560 test decisions, read one request at a time (the 3.0.3 code tree; 24 Nov 2026).

Serve:

basal-serve --model Remek/basal-3.0-mini --mode fast --llama-graph on --template-prefix off --port 8000

Ask:

curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{
  "state": "Klient: od wczoraj nie mogę zalogować się do bankowości internetowej.",
  "questions": {"dept": {"type": "choice", "instructions": "Do którego działu skierować zgłoszenie?",
    "criteria": {"cards": "Reklamacje kart", "online": "Wsparcie bankowości elektronicznej", "loans": "Kredyty"}}}}'

Docker: ghcr.io/rkinas/basal-serve:3.0.3.

Results

Both models served by basal engine 3.0.2 on one H100 (--mode fast --llama-graph on --template-prefix off), bf16, on the same items; accuracy is the mean of two option orders.

benchmark basal-2.0-4.5B basal-3.0-mini difference, paired [95% CI]
Polish decisions (7,081 items) 0.9242 0.9195 -0.47 pt [-1.13, +0.24]
Polish general (3,079 items) 0.7597 0.7506 -0.91 pt [-2.24, +0.39]
PL-Real-300 (300 items) 0.9467 0.9633 +1.67 pt [-0.67, +4.00]
English corpus test (1,479 items) 0.6464 0.6984 +5.21 pt [+2.97, +7.30]
English panel (10 tasks, mean of task accuracies) 0.6504 0.7588 +10.84 pt (difference of the task means; no paired interval)
Werdykt 2.0 basal-3.0-mini basal-2.0-4.5B Bielik-One-4B-r1
macro accuracy [95% CI] 0.7706 [0.7596, 0.7812] 0.7286 [0.7170, 0.7392] 0.6962 [0.6842, 0.7088]
Polish / English 0.7700 / 0.7712 0.7288 / 0.7284 0.6872 / 0.7052
difference to basal-2.0-4.5B, paired [95% CI] +4.20 pt [+3.06, +5.40] - -3.24 pt [-4.54, -1.80]
Polish / English difference to basal-2.0-4.5B +4.12 [+2.56, +5.72] / +4.28 [+2.64, +5.92] - -4.16 [-6.04, -2.36] / -2.32 [-4.24, -0.52]

Werdykt 2.0: the hidden Polish and English decision benchmark, 5,000 items in 20 cells (10 categories x PL / EN); paired differences with a stratified within-cell bootstrap (1,000 resamples), the language rows on 2,500 items each. basal-3.0-mini minus Bielik-One-4B-r1: +7.44 pt [+6.16, +8.58] (Polish +8.28 [+6.52, +10.12], English +6.60 [+4.88, +8.28]). basal-3.0-mini was served with the release model files and shipped calibration (CALIBRATION.llamagraph.json) by basal engine 3.0.1 (--mode fast --llama-graph on; 3.0.2 is the same code with a serving race fixed), basal-2.0-4.5B by basal engine 2.0, Bielik-One-4B-r1 (speakleash/Bielik-One-4B-r1 @ a5a17dad) by the server of its own model card. Werdykt 2.0 hardware: basal-3.0-mini and Bielik-One-4B-r1 on an NVIDIA RTX PRO 6000 Blackwell Max-Q, basal-2.0-4.5B on an H100 80GB; the speed rows below are on an H100. The basal-3.0 rows of Werdykt 2.0 are one run each, served without the engine's deterministic mode; repeated runs of the same weights with small serving differences moved the score by up to 0.3 pt.

Werdykt-MAX v1.3.0 (discovery split) Overall PL EN Full4
basal-3.0-mini 59.23 59.03 59.43 55.92
basal-2.0-4.5B 46.42 47.57 45.27 46.67
Bielik-One-4B-r1 55.62 54.40 56.83 51.73
basal-3.0-mini minus basal-2.0-4.5B, pp [95% CI] +12.82 [+10.62, +15.02] +11.47 [+8.62, +14.29] +14.17 [+10.91, +17.50] +9.25 [+7.97, +10.55]
basal-3.0-mini minus Bielik-One-4B-r1, pp [95% CI] +3.62 [+1.26, +5.97] +4.63 [+1.42, +7.85] +2.60 [-0.78, +5.98] +4.19 [+2.71, +5.69]
Bielik-One-4B-r1 minus basal-2.0-4.5B, pp [95% CI] +9.20 [+6.89, +11.53] +6.83 [+3.37, +10.26] +11.57 [+8.43, +14.71] +5.06 [+3.74, +6.37]

Werdykt-MAX v1.3.0 (discovery split): 6,000 decisions, the same for every model; Overall = 3,000 choice and binary decisions, split evenly between Polish and English; Full4 adds the ordinal and multilabel decisions. Paired 95% intervals: pointwise, a 20,000-draw bootstrap with scenario weights shared across models and translations linked. Serving (bf16, one option order, NVIDIA RTX PRO 6000 Blackwell Max-Q): basal-3.0-mini on basal engine 3.0.1 (--mode fast --llama-graph on, two-way), served with the release model files and shipped calibration (CALIBRATION.llamagraph.json); basal-2.0-4.5B on basal engine 2.5.3 (eager) with its published calibration; Bielik-One-4B-r1 (speakleash/Bielik-One-4B-r1 @ 567d29b0, a different revision from the Werdykt 2.0 row) on Bielik-One 1.0.8 with vLLM 0.32.0 (eager) with its own calibration.

Werdykt 2.0 against other 4B typed-decision models

The same 5,000 hidden Werdykt items (Polish and English), the same client and the same scoring, over each model's typed-decision API; each model is served by its maker's own server. The last column is basal-3.0-mini's paired difference over the same items, in points, with a 95% bootstrap interval. basal-3.0-mini leads h2o-lightning-4b, basal-2.0-4.5B and Bielik-One-4B-r1, is level with KnowLine-4B-Gen5.5 and is behind torchcast-decision-4b.

model Werdykt 2.0 [95% CI] Polish / English basal-3.0-mini minus model, paired [95% CI]
basal-3.0-mini 0.7706 [0.7596, 0.7812] 0.7700 / 0.7712 -
torchcast-decision-4b (v1.3) 0.7986 [0.7882, 0.8088] 0.7868 / 0.8104 -2.80 pt [-3.92, -1.62]
KnowLine-4B-Gen5.5 (FP8) 0.7764 [0.7660, 0.7868] 0.7644 / 0.7884 -0.58 pt [-1.76, +0.68]
h2o-lightning-4b (v1.2.2) 0.7530 [0.7420, 0.7644] 0.7452 / 0.7608 +1.76 pt [+0.44, +3.02]
basal-2.0-4.5B 0.7286 [0.7170, 0.7392] 0.7288 / 0.7284 +4.20 pt [+3.06, +5.40]
Bielik-One-4B-r1 0.6962 [0.6842, 0.7088] 0.6872 / 0.7052 +7.44 pt [+6.16, +8.58]
  • Read between 8 Oct and 23 Nov 2026. Hardware: torchcast-decision-4b, KnowLine-4B-Gen5.5, Bielik-One-4B-r1 and basal-3.0-mini on an NVIDIA RTX PRO 6000 Blackwell Max-Q; h2o-lightning-4b and basal-2.0-4.5B on an H100 80GB.
  • Revisions and servers: torchcast-ai/torchcast-decision-4b @ 492bfb19 on its own torchcast_decision server (CUDA graphs); PelaAI/KnowLine-4B-Gen5.5 @ 779944d2 on its vendor server over SGLang 0.5.21, in FP8 (quantised at load, FP32 output head); h2oai/h2o-lightning-4b @ d5c279cf on its vendor server over vLLM 0.30.0, bf16 with an FP32 output head; speakleash/Bielik-One-4B-r1 @ a5a17dad on Bielik-One 1.0.8 with vLLM 0.32.0, eager bf16, its default calibration; basal-2.0-4.5B on basal engine 2.0 (bf16, fast, deterministic, its calibration); basal-3.0-mini as in the Werdykt 2.0 note above.
  • KnowLine-4B-Gen5.5 was served in FP8, the other models in bf16.
  • Werdykt is hidden, so only these totals are shown.

Calibration

The calibration files (CALIBRATION.llamagraph.json, CALIBRATION.llamagraph.o2.json) give per-type temperatures and certified confidence thresholds. On the 8,560 held-out test decisions, as served, one option order: at a 1% target error 26.9% of decisions are automated (0.17% observed error); at 5%, 74.1% (3.08% observed error).

Speed

One H100 80GB, bf16, --mode fast --llama-graph on --template-prefix off (the fast mode with the LlamaGraph engine, --llama-graph on).

load decisions/s p50 latency
1 client, short states 72.3 13.2 ms
1 client, long states 8.6 118.2 ms
16 clients 131.8 118.3 ms
64 clients 141.3 425.3 ms
8 clients, 16 questions per request 143.6 871.5 ms
32 clients x 1,000 requests (load test) 129.7

Other formats

  • basal-3.0-mini-FP8: FP8 weights for NVIDIA Hopper / Blackwell (--mode fp8 --llama-graph on --template-prefix off).
  • basal-3.0-mini-GGUF: Q8_0 and Q5_K_M for llama.cpp and Ollama (read one way: see its card).
  • basal-3.0-mini-MLX-8bit: Apple Silicon (--mode mlx --mlx-forward metal).

Limits

The model picks among the options you give; it does not write text, and it knows only what the state says. Review decisions with serious consequences for people.