Instructions to use beelzebub-labs/blz-1 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 beelzebub-labs/blz-1 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 beelzebub-labs/blz-1:Q4_K_M # Run inference directly in the terminal: llama cli -hf beelzebub-labs/blz-1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf beelzebub-labs/blz-1:Q4_K_M # Run inference directly in the terminal: llama cli -hf beelzebub-labs/blz-1:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf beelzebub-labs/blz-1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf beelzebub-labs/blz-1:Q4_K_M
Use Docker
docker model run hf.co/beelzebub-labs/blz-1:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use beelzebub-labs/blz-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "beelzebub-labs/blz-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "beelzebub-labs/blz-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/beelzebub-labs/blz-1:Q4_K_M
- Ollama
How to use beelzebub-labs/blz-1 with Ollama:
ollama run hf.co/beelzebub-labs/blz-1:Q4_K_M
- Unsloth Desktop
- Pi
How to use beelzebub-labs/blz-1 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf beelzebub-labs/blz-1:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "beelzebub-labs/blz-1:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use beelzebub-labs/blz-1 with Docker Model Runner:
docker model run hf.co/beelzebub-labs/blz-1:Q4_K_M
- Lemonade
How to use beelzebub-labs/blz-1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull beelzebub-labs/blz-1:Q4_K_M
Run and chat with the model
lemonade run user.blz-1-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use beelzebub-labs/blz-1 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf beelzebub-labs/blz-1:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default beelzebub-labs/blz-1:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use beelzebub-labs/blz-1 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf beelzebub-labs/blz-1:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "beelzebub-labs/blz-1:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Request access to BLZ-1
BLZ-1 is a refusal-specialized model. Access is granted manually by Beelzebub Labs after review. Requests with incomplete information or non-corporate email addresses will be rejected.
By requesting access you agree to the BLZ-1 Terms of Use (see LICENSE.md in this repository). In summary: (1) you will use the model only for lawful, authorized and defensive security purposes, such as research, education, detection engineering, threat intelligence, and testing of systems you own or are explicitly authorized in writing to test; (2) you will not use the model to develop or deploy malware, gain unauthorized access to systems or data, attack critical infrastructure, or otherwise cause harm; (3) you will not redistribute the weights or derivatives without Beelzebub Labs' written consent; (4) the model is provided "AS IS", without warranties, and Beelzebub Labs is not liable for any use of the model or its outputs; (5) you are solely responsible for your use and you will indemnify Beelzebub Labs against claims arising from it; (6) access may be revoked at any time; (7) access is for business and professional use only, not for consumers. The information you provide will be processed by Beelzebub Labs to evaluate your request and manage access, in accordance with our Privacy Policy.
Log in or Sign Up to review the conditions and access this model content.
A self-hosted 27B model for security teams. It handles authorized security work that general-purpose assistants refuse.
Quickstart ยท Agents ยท Results ยท Terms of Use
Gated model. Access is reviewed and approved manually. It's available to businesses and professionals who accept the BLZ-1 Terms of Use. Use blz-1 only for lawful security work on systems you own or are authorized in writing to test.
Using blz-1 commercially? Internal use is included: your own security operations, and authorized engagements your team runs for clients. To host blz-1 as a service, embed it in a product or give clients direct access, you need a commercial license. If you'd rather not run the infrastructure yourself, Beelzebub can run blz-1 for you as a managed service on our NVIDIA infrastructure, hosted entirely in Italy. Learn more at beelzebub.ai.
This repository contains GGUF quantizations (Q6_K, Q4_K_M) in
gguf/for llama.cpp and Ollama, and the full BF16 checkpoint inbf16/for vLLM and Transformers.
Security work means talking about exploits, malware, payloads and attack paths every day. General-purpose assistants often refuse those conversations, even when you're working on your own lab, your client's authorized scope, or a sample already sitting in your sandbox.
blz-1 handles that work instead of refusing it. It runs on your own hardware, keeps your targets and findings inside your perimeter, and drives tools in agentic workflows.
Why blz-1
| ๐ฏ Answers the questions others refuse | Refusals on the Heretic harmful-prompt test set fell from 98% in the base model to 24%. |
| ๐ง Keeps the base model's quality | The Qwen3.8-27B base model's capabilities are preserved: 12/12 regression checks pass, with a KL divergence of only 0.11 from the base model. |
| ๐ค Agent-ready | blz-1 makes native tool calls for shell commands, file operations and multi-step tasks through OpenCode, vLLM, Ollama and llama.cpp. |
| ๐ Private by design | Weights, prompts and outputs stay on your infrastructure. Nothing is sent to a third-party API. |
| โก Runs on a single box | Built and tested on one NVIDIA DGX Spark. It ships as BF16 for serving, or as a Q6_K or Q4_K_M GGUF for local inference. |
Built for
- Red teams and pentesters: exploit analysis, payload reasoning and engagement support, within authorized scope.
- SOC and incident response: alert triage, log analysis and attack reconstruction.
- Threat intelligence: malware behavior analysis, TTP extraction and ATT&CK mapping.
- Detection engineers: writing and testing rules from real attacker behavior.
- Vulnerability researchers: CVE analysis and lab reproduction.
- Educators and CTF players: hands-on training without the lectures.
At a glance
| Architecture | 27B dense, based on Qwen3.8-27B |
| Formats | BF16 safetensors ยท GGUF Q6_K ยท GGUF Q4_K_M |
| Context | 262,144 tokens natively, extensible to 1M with YaRN (inherited from Qwen3.8-27B) |
| Tool use | Native function calling (OpenCode, vLLM, Ollama, llama.cpp) |
| Reference hardware | NVIDIA DGX Spark (GB10, 128 GB unified memory) |
| Access | Gated, approved manually, BLZ-1 Terms of Use |
Quickstart
1. Request access on this page. When you're approved, download the release kit:
python3 -m venv blz-env && source blz-env/bin/activate
pip install huggingface_hub==2.4.0
hf auth login
hf download beelzebub-labs/blz-1 --include 'code/*' --local-dir blz-release
cd blz-release/code && chmod +x blz scripts/*.sh
2. Choose a runtime. The recipes below default to a 32K context so they fit comfortably on a single DGX Spark. Raise --max-model-len, num_ctx or the llama.cpp slot size as far as your memory allows, up to the full 262K.
llama.cpp: fastest path, with chat UI and API
python scripts/download_model.py --repo beelzebub-labs/blz-1
(cd models/gguf && sha256sum -c --ignore-missing SHA256SUMS)
bash scripts/build_llama.sh
python scripts/start_server.py
This gives you a chat UI at http://127.0.0.1:8081 and an OpenAI-compatible API at http://127.0.0.1:8081/v1 (model blz-1). Stop the server with python scripts/stop_server.py.
Ollama
With Ollama 0.40.13+, after downloading the GGUF as shown above:
ollama create blz-1 -f examples/ollama/Modelfile
ollama run blz-1
The included Modelfile uses the native qwen3.8 renderer and qwen3.5 parser, configured for structured tool calls. The API is at http://127.0.0.1:11434/v1 (model blz-1:latest).
vLLM: BF16 serving
python scripts/download_model.py --repo beelzebub-labs/blz-1 --format bf16
(cd models/bf16 && sha256sum -c SHA256SUMS)
docker run --rm --gpus all --ipc=host \
-p 127.0.0.1:8000:8000 \
-v "$PWD/models/bf16:/models/blz-1:ro" \
--entrypoint vllm \
nvcr.io/nvidia/vllm:26.10.pre1-py3 \
serve /models/blz-1 \
--served-model-name blz-1 \
--host 0.0.0.0 --port 8000 \
--dtype bfloat16 \
--max-model-len 32768 \
--max-num-seqs 1 \
--gpu-memory-utilization 0.75 \
--enforce-eager \
--language-model-only \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder \
--reasoning-parser qwen3 \
--default-chat-template-kwargs '{"enable_thinking":false}'
The API is at http://127.0.0.1:8000/v1 (model blz-1). This recipe is for DGX Spark. On an existing vLLM install, run vllm serve ./models/bf16 with the same flags. blz-1 ships without MTP tensors, so do not enable MTP speculative decoding.
Q4_K_M: smaller footprint
hf download beelzebub-labs/blz-1 gguf/blz-1-Q4_K_M.gguf gguf/SHA256SUMS --local-dir models
(cd models/gguf && sha256sum -c --ignore-missing SHA256SUMS)
Then point your runtime or Modelfile at models/gguf/blz-1-Q4_K_M.gguf.
Agentic workflows
blz-1 doesn't stop at describing a command. With OpenCode 2.2.5, it runs the commands, reads the output and iterates.
Ready-made profiles for every backend are in code/examples/opencode/:
| Backend | Profile | API base | Model |
|---|---|---|---|
| llama.cpp | opencode.json | http://127.0.0.1:8081/v1 |
blz-1 |
| vLLM | vllm.json | http://127.0.0.1:8000/v1 |
blz-1 |
| Ollama | ollama.json | http://127.0.0.1:11434/v1 |
blz-1:latest |
To check that tool calling works, ask the agent:
Use the shell tool to execute:
bash -lc 'curl -fsS http://127.0.0.1:8000/v1/models'
Show the command output.
You should see a real shell invocation and its output. For the other backends, use port 8081 (llama.cpp) or 11434 (Ollama).
๐ก๏ธ Run agents like you run engagements. OpenCode executes commands on your machine. Use a disposable VM or container, keep confirmation prompts on for shell and edit actions, and point the agent only at targets inside your authorized scope.
Example profile (vLLM)
{
"$schema": "https://opencode.ai/config.json",
"model": "blz/blz-1",
"default_agent": "blz",
"providers": {
"blz": {
"name": "blz-1",
"package": "@opencode/ai/providers/openai-compatible",
"settings": {
"baseURL": "http://127.0.0.1:8000/v1",
"headerTimeout": 300000,
"chunkTimeout": 300000
},
"models": {
"blz-1": {
"modelID": "blz-1",
"name": "blz-1 ยท 27B",
"capabilities": { "tools": true, "input": ["text"], "output": ["text"] },
"limit": { "context": 32768, "output": 4096 },
"body": {
"temperature": 0.2,
"max_tokens": 4096,
"chat_template_kwargs": { "enable_thinking": false }
}
}
}
}
},
"agents": {
"blz": {
"mode": "primary",
"model": "blz/blz-1",
"system": "You are a security research assistant working in an authorized environment. Use the available tools to inspect files, execute commands and verify results. Report actual tool output. Do not act on systems outside the stated scope.",
"permissions": [
{ "action": "read", "resource": "*", "effect": "allow" },
{ "action": "edit", "resource": "*", "effect": "ask" },
{ "action": "shell", "resource": "*", "effect": "ask" }
]
}
}
}
The Ollama profile sends reasoning_effort: "none" instead of chat_template_kwargs, so use the matching profile rather than only changing the port.
Remote access: model on the Spark, agent on your laptop (ngrok)
ngrok config add-authtoken YOUR_NGROK_AUTHTOKEN
python3 scripts/start_server.py
python3 scripts/start_ngrok.py
The helper sets up an authenticated tunnel:
- it generates a random API key;
- it enforces the key with an ngrok Traffic Policy;
- it checks that unauthenticated requests are rejected;
- it writes a ready-to-use profile to
logs/remote/opencode.json.
Copy that profile to the computer that runs OpenCode, and keep it out of version control. It contains your API key.
Results
Fewer refusals, same model quality
| Qwen3.8-27B | blz-1 BF16 | blz-1 Q6_K | |
|---|---|---|---|
| Refusals on Heretic harmful-prompt set (lower is better) | 98/100 | 24/100 | 29/100 |
| Regression checks passed | 12/12 | 12/12 | 12/12 |
| Sensitive-but-benign prompts answered | 8/8 | 8/8 | 8/8 |
| KL divergence from base model (lower is better) | 0 | 0.11 | n/a |
Autonomous coding
blz-1 (Q6_K, OpenCode) had 20 minutes to build a calculator web app on its own. The tests it wrote for itself passed 41/41, and 104/104 independent math checks passed.
Security benchmark suite: coming soon
Full results on security benchmarks are on the way. Each one compares blz-1 with its base model in BF16 and Q6_K.
| Area | Benchmarks |
|---|---|
| Security knowledge | CyberMetric, SecEval |
| Threat intelligence | CTIBench |
| Helpfulness on security requests | CyberSecEval, XSTest |
| Agentic CTF | Cybench, NYU CTF Bench |
| Vulnerability reproduction | CyberGym |
| General capability | MMLU-Pro, GPQA, IFEval, LiveCodeBench, BFCL |
Methodology notes
- Refusals are counted with Heretic's keyword matcher on
mlabonne/harmful_behaviorstest[:100], looking at the first 128 tokens. This is the same set Heretic optimizes against. The Q6_K run used the deployed chat template. - Regression checks are a 20-prompt release screen: 12 checks scored automatically and 8 reviewed manually. The screen was also used to select trial 26.
- KL divergence is measured on harmless prompts against the base model.
- Coding run: the final app also passes 20/20 UI checks (jsdom) after two edge cases were fixed outside the autonomous session. Full report.
- Validation: release checks ran with thinking disabled, text only, at 32K context. The end-to-end OpenCode workflow was run on llama.cpp with Q6_K. The Ollama and vLLM recipes follow the upstream Qwen3.8 configurations.
- All reports ยท Reproducibility notes
Responsible use
blz-1 is for lawful, authorized security work: your own systems, or targets you have written permission to test. Like any model, it can be wrong, so verify its output before you act on it, especially on live systems. Access is approved manually and governed by the BLZ-1 Terms of Use, which prohibit unauthorized access, harmful malware, attacks on critical infrastructure and redistribution of the weights.
Build provenance
- Base:
Qwen/Qwen3.8-27B@1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0. - Refusal reduction: Heretic 2.0.0 ARA, BF16, seed 42, trial 26 of 32 (Pareto-optimal).
- llama.cpp
dde879bc4f954b809892fd0d660515f42536394a, Transformers 5.22.1. - Text-only release. MTP tensors omitted (
mtp_num_hidden_layers=0). - Q6_K SHA256:
bb87f228b96ed0d8e8715a54c54f2bba68415d63ad63d577e887b4982d0e83ea. - Q4_K_M SHA256:
a7ae2f2c0913ec80bd7c73b6e73558d51ad93de7b8013e3f12250d02e8e16d2c. - Full settings and trials:
code/provenance.
License
blz-1 is licensed under the BLZ-1 Terms of Use and License. Internal use is included, both for your own security operations and for authorized engagements your team runs for clients. Hosting blz-1 as a service for others, embedding it in a product, or exposing it directly to third parties requires a commercial license from Beelzebub Labs.
blz-1 is built on Qwen3.8-27B, which is licensed under Apache-2.0 (see QWEN-APACHE-2.0.txt and NOTICE), and was modified with Heretic. The runtimes keep their own licenses.
Built by Beelzebub Labs
- Downloads last month
- -
4-bit
6-bit
Model tree for beelzebub-labs/blz-1
Base model
Qwen/Qwen3.8-27B