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.

blz-1: Security AI that answers. Built for blue teams and red teams.

A self-hosted 27B model for security teams. It handles authorized security work that general-purpose assistants refuse.

Base Params Context Formats Agents Access

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 in bf16/ 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_behaviors test[: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
-
GGUF
Model size
27B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for beelzebub-labs/blz-1

Base model

Qwen/Qwen3.8-27B
Finetuned
(1,019)
this model