Text Generation
Transformers
Safetensors
Polish
English
llama
typed-decisions
decision-making
classification
calibration
polish
decision-model
conversational
text-generation-inference
Run this model with HF Jobs
Run Remek/basal-3.0-max 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-max. 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-max 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-max. 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-max. 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.
Instructions to use Remek/basal-3.0-max with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Remek/basal-3.0-max with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Remek/basal-3.0-max") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Remek/basal-3.0-max") model = AutoModelForCausalLM.from_pretrained("Remek/basal-3.0-max", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Remek/basal-3.0-max with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Remek/basal-3.0-max" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Remek/basal-3.0-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Remek/basal-3.0-max
- SGLang
How to use Remek/basal-3.0-max with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Remek/basal-3.0-max" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Remek/basal-3.0-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Remek/basal-3.0-max" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Remek/basal-3.0-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Remek/basal-3.0-max with Docker Model Runner:
docker model run hf.co/Remek/basal-3.0-max
|
Download README.md from Remek/basal-3.0-max: direct link, hf CLI and curl.
- Browser
- Download file 9.83 kB
-
https://huggingface.co/Remek/basal-3.0-max/resolve/main/README.md
- Command line
-
hf download hf://Remek/basal-3.0-max/README.md
-
curl -L -o README.md https://huggingface.co/Remek/basal-3.0-max/resolve/main/README.md
9.83 kB
| license: apache-2.0 | |
| language: | |
| - pl | |
| - en | |
| base_model: speakleash/Bielik-PL-11B-v3.0-Instruct | |
| library_name: transformers | |
| pipeline_tag: text-generation | |
| tags: | |
| - typed-decisions | |
| - decision-making | |
| - classification | |
| - calibration | |
| - polish | |
| - decision-model | |
| # basal-3.0-max | |
| **basal-3.0-max** (11B) is a typed-decision model for Polish and English, part of the basal-3.0 family, built on Bielik-PL-11B-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): | |
| ```bash | |
| 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: | |
| ```bash | |
| basal-serve --model Remek/basal-3.0-max --mode fast --llama-graph on --port 8000 | |
| ``` | |
| Ask: | |
| ```bash | |
| 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 | |
| basal-3.0-max is level with basal-omni-1.1-max (12B) on Werdykt 2.0 and on the four item sets of the release read below (every paired interval includes 0), behind it on Werdykt-MAX, and faster than it when served in FP8; it is ahead of basal-2.0-max and Bielik-One-11B-v3.1-r1 on Werdykt 2.0 and Werdykt-MAX. | |
| All three models served by basal engine 3.0.2 on one H100, bf16, on the same items, each in its own mode (basal-3.0-max `--mode fast --llama-graph on`, basal-2.0-max `--mode fast --llama-graph on`, basal-omni-1.1-max `--mode fast`); accuracy is the mean of two option orders. | |
| | benchmark | basal-2.0-max | basal-omni-1.1-max | basal-3.0-max | basal-3.0-max minus basal-2.0-max, paired [95% CI] | basal-3.0-max minus basal-omni-1.1-max, paired [95% CI] | | |
| |---|---|---|---|---|---| | |
| | Polish decisions (7,081 items) | 0.9379 | 0.9441 | 0.9376 | -0.03 pt [-0.64, +0.59] | -0.65 pt [-1.31, +0.01] | | |
| | Polish general (3,079 items) | 0.8100 | 0.8009 | 0.8084 | -0.16 pt [-1.40, +1.07] | +0.75 pt [-0.62, +2.11] | | |
| | PL-Real-300 (300 items) | 0.9700 | 0.9733 | 0.9700 | +0.00 pt [-1.67, +1.67] | -0.33 pt [-2.67, +2.33] | | |
| | English corpus test (1,479 items) | 0.6714 | 0.7214 | 0.7032 | +3.18 pt [+1.15, +5.21] | -1.83 pt [-4.06, +0.41] | | |
| | English panel (10 tasks, mean of task accuracies) | 0.7182 | 0.7641 | 0.8065 | +8.83 pt (task means; no paired interval) | +4.24 pt (task means; no paired interval) | | |
| | Werdykt 2.0 | basal-3.0-max | basal-2.0-max | basal-omni-1.1-max | Bielik-One-11B-v3.1-r1 | | |
| |---|---|---|---|---| | |
| | macro accuracy [95% CI] | 0.8156 [0.8054, 0.8252] | 0.7840 [0.7736, 0.7946] | 0.8206 [0.8112, 0.8300] | 0.7026 [0.6912, 0.7142] | | |
| | Polish / English | 0.8132 / 0.8180 | 0.7868 / 0.7812 | 0.8188 / 0.8224 | 0.7076 / 0.6976 | | |
| | basal-3.0-max minus this, paired [95% CI] | - | +3.16 pt [+2.22, +4.10] | -0.50 pt [-1.54, +0.54] | +11.30 pt [+10.10, +12.52] | | |
| | Polish / English, basal-3.0-max minus this | - | +2.64 [+1.36, +3.96] / +3.68 [+2.52, +5.00] | -0.56 [-2.00, +1.00] / -0.44 [-1.88, +0.96] | +10.56 [+8.88, +12.20] / +12.04 [+10.32, +13.68] | | |
| 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-max is level with basal-omni-1.1-max (12B): the interval includes 0. basal-3.0-max 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-max by basal engine 2.0, basal-omni-1.1-max by basal engine omni-2.0 (eager, `--media on`), Bielik-One-11B-v3.1-r1 (speakleash/Bielik-One-11B-v3.1-r1-Adapter @ aab0a71f on Bielik-11B-v3.1-Instruct @ d6e755d3) by the server of its own model card. Werdykt 2.0 hardware: basal-3.0-max and Bielik-One-11B-v3.1-r1 on an NVIDIA RTX PRO 6000 Blackwell Max-Q, basal-2.0-max and basal-omni-1.1-max 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-max | 67.10 | 70.00 | 64.20 | 63.69 | | |
| | basal-2.0-max | 57.00 | 57.10 | 56.90 | 54.36 | | |
| | basal-omni-1.1-max | 77.87 | 78.00 | 77.73 | 71.39 | | |
| | Bielik-One-11B-v3.1-r1 | 50.63 | 49.43 | 51.83 | 48.68 | | |
| | basal-3.0-max minus basal-2.0-max, pp [95% CI] | +10.10 [+7.62, +12.56] | +12.90 [+9.47, +16.35] | +7.30 [+3.76, +10.83] | +9.34 [+7.94, +10.73] | | |
| | basal-3.0-max minus basal-omni-1.1-max, pp [95% CI] | -10.77 [-12.83, -8.72] | -8.00 [-11.08, -4.98] | -13.53 [-16.31, -10.73] | -7.70 [-9.00, -6.42] | | |
| | basal-3.0-max minus Bielik-One-11B-v3.1-r1, pp [95% CI] | +16.47 [+13.83, +19.07] | +20.57 [+16.91, +24.20] | +12.37 [+8.71, +16.03] | +15.02 [+13.45, +16.58] | | |
| 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-max 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-max on basal engine 2.5.3 (eager) with its published calibration; basal-omni-1.1-max (the published Remek/basal-omni-1.1-max) on basal engine omni-2.0 (eager, `--media on`) with its bundled calibration; Bielik-One-11B-v3.1-r1 (speakleash/Bielik-One-11B-v3.1-r1 @ 75a2d838, a different repository from the Werdykt 2.0 row) on Bielik-One 1.0.8 with vLLM 0.32.0 (eager) with its own calibration. | |
| ## Calibration | |
| The calibration files (CALIBRATION.llamagraph.json, CALIBRATION.llamagraph.o2.json) give per-type temperatures and certified confidence thresholds. A threshold ships only where the frozen test's one-sided 95% upper bound is within its target. At the 1% target CALIBRATION.llamagraph.json has one for `choice` questions only (yes/no and `score` questions are deferred) and CALIBRATION.llamagraph.o2.json (`--orders 2`) has none, so with `--orders 2` every decision at 1% is deferred. On the 8,560 held-out test decisions, as served, one option order: at a 1% target error 35.9% of decisions are automated (0.33% observed error); at 5%, 81.1% (3.47% observed error). | |
| ## Speed | |
| One H100 80GB each, the same client and request set for every server. basal models on basal engine 3.0.2: basal-3.0-max: `--mode fast --llama-graph on` (bf16) and `--mode fp8 --llama-graph on` (FP8); basal-2.0-max: `--mode fast --llama-graph on`; basal-omni-1.1-max: `--mode fast`; Bielik-One-11B-v3.1-r1 (default): its own server: the bielik-one CLI 1.0.8 on vLLM 0.32.0, the default profile (bf16, CUDA graphs), speakleash/Bielik-One-11B-v3.1-r1-Adapter @ aab0a71f on Bielik-11B-v3.1-Instruct; Bielik-One-11B-v3.1-r1 (FP8): the same server with its --fp8 profile (speed only: its calibration is not fitted for FP8). | |
| | load (decisions/s) | basal-3.0-max bf16 | basal-3.0-max FP8 | basal-2.0-max | basal-omni-1.1-max | Bielik-One-11B-v3.1-r1 (default) | Bielik-One-11B-v3.1-r1 (FP8) | | |
| |---|---|---|---|---|---|---| | |
| | 1 client, short states | 42.3 | 56.8 | 42.9 | 48.1 | 17.7 | 18.3 | | |
| | 1 client, long states | 4.4 | 6.0 | 4.4 | 5.3 | 3.4 | 4.1 | | |
| | 16 clients | 63.1 | 96.1 | 65.2 | 74.8 | 42.8 | 46.4 | | |
| | 64 clients | 66.9 | 99.2 | 69.3 | 80.8 | 43.2 | 46.9 | | |
| | 8 clients, 16 questions per request | 68.1 | 100.8 | 136.4 | 52.2 | 51.8 | 51.9 | | |
| | 32 clients x 1,000 requests (load test) | 75.4 | 113.9 | 79.1 | 68.7 | - | - | | |
| A two-way model reads each question of a request as its own prompt, so with 16 questions per request it decides at about half the rate of a one-way model; with one question per request the rates are the same. | |
| ## Other formats | |
| - `basal-3.0-max-FP8`: FP8 weights for NVIDIA Hopper / Blackwell (`--mode fp8 --llama-graph on`). | |
| - `basal-3.0-max-GGUF`: Q8_0 and Q5_K_M for llama.cpp (read one way: see its card). | |
| - `basal-3.0-max-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. | |