122 Downloads Updated 1 month ago
ollama run rafw007/bielik-codex
ollama launch claude --model rafw007/bielik-codex
ollama launch codex-app --model rafw007/bielik-codex
ollama launch openclaw --model rafw007/bielik-codex
ollama launch hermes --model rafw007/bielik-codex
ollama launch codex --model rafw007/bielik-codex
ollama launch opencode --model rafw007/bielik-codex
Bielik Codex — Polish local coding agent
A custom model built on Bielik-Minitron-7B v3.0 Instruct, tuned to act as an autonomous coding and administration agent. It speaks the Anthropic-compatible API, so it drives Claude Code and OpenCode fully locally — your code never leaves your machine, and cloud token cost drops to zero.
This is the first Polish model in this family. Its system prompt is focused on real work in a terminal: use tools instead of guessing, write files instead of pasting code, ground every answer in real tool output (never invent results), stay in one language, and act instead of writing tutorials. It defaults to Polish when you write Polish.
Bielik is a family of open, Polish large language models developed by the SpeakLeash foundation (a.k.a. Spichlerz) together with ACK Cyfronet AGH — the Academic Computer Centre Cyfronet AGH in Kraków, operator of the supercomputers (Helios, Athena) the model was trained on. It is the flagship Polish sovereign-AI project, built in large part by volunteers and the Polish community.
The specific base here is Bielik-Minitron-7B v3.0 Instruct — a ~7.5B variant pruned with the Minitron technique (NVIDIA, pruning + distillation) from a larger Bielik, in a llama-style architecture (causal decoder-only).
Stock / official Bielik is an excellent chat model, but out of the box it was not suited to agentic work with tools. Under harnesses (Codex / OpenCode / Claude Code):
{"name":"exec_command",...}), which Ollama
does not parse into message.tool_calls → the harness executed nothing;df / nmap output) instead of reading the real one;Three bugs in the official template: (1) the tool-call format was switched to native ChatML
<tool_call> (Ollama parses it into tool_calls); (2) added handling of the tool role with
grounding (“answer from the real result, do not call again”); (3) fixed stop tokens
(<|im_end|> instead of llama <|eot_id|>). Plus: temperature 0, hard result anti-hallucination,
no refusals on tool tasks, one tool per turn, anti-tutorial.
The result: from “doesn’t agent at all” → “actually executes tools in the two main harnesses”.
| Harness | Result |
|---|---|
ollama /api/chat |
✅ real message.tool_calls, grounding, zero hallucination |
| OpenCode | ✅ benchmark 3⁄3: real df -h, nmap -sn (honestly 1 host up, no fabrication), file written via the write tool |
| Claude Code | ✅ drives CC, calls MCP tools (memory, filesystem) — works as an agent |
ollama launch claude --model rafw007/bielik-codex).df, du, nmap with actual output.ollama run rafw007/bielik-codex
In Claude Code / OpenCode:
ollama launch claude --model rafw007/bielik-codex
opencode run -m ollama/bielik-codex "a concrete command"
num_ctx). Claude Code prefers ≥64K, but for concrete, single commands 32K is enough.Built and tested on:
message.tool_calls; admin tasks (df, nmap)
report the actual result, not a made-up one.An important note, without fear-mongering: the Bielik base is NOT an abliterated model — it ships with built-in, factory refusal mechanisms (this is an honest, “normal” model, not a brakes-removed version).
However, our purely agentic tuning (a system prompt of “always act with a tool, never refuse”) inherently loosens those brakes — in a red-team test the tuned build accepted a harmful-code request without refusing. That is the normal price of tuning for agentic productivity, not a flaw of the base itself.
So: use it carefully, and for any public or production deployment wire in a guard layer. The natural choice is Sójka — the guardian model from SpeakLeash — placed as a pre/post-filter on input prompts and responses. With Sójka in front of Bielik you get a healthy refusal layer back without losing agentic capability.
Designed, built and tested with the help of Claude Opus — the best coding model in the world. Its choice of template, parameters and context configuration come straight from that work: the world’s best coding model preparing a Polish, local model that takes over the job right on your desk.
Apache 2.0 (inherited from the base Bielik-Minitron-7B v3.0).
Bielik® is a project of the SpeakLeash foundation and ACK Cyfronet AGH. This model is an independent tune of the public base — it is not an official SpeakLeash release.