secllm: cybersecurity reasoning series

A security-research LLM series built on a refusal-removed Qwen3.8-27B base. This repository publishes the quantized base preview; the trained expert checkpoints are not released.

Overview

secllm is the reasoning tier used by our security agent: long-context analysis, source and binary triage, vulnerability reasoning and tool-driven investigation. The series keeps a production checkpoint that is retrained and re-quantized over time, plus a published base preview β€” the upstream base lineage quantized by us, with no post-training applied.

The split matters when you read this card:

  • Base preview (published here). secllm-27b-4bit-uc-base. Upstream bf16 weights, our mixed-precision 4-bit conversion, unchanged behaviour. It is a deployment-tested baseline, not our tuned expert.
  • Trained checkpoints (not published). Distillation, SFT and preference tuning on authorised security-research material. Weights stay private; results are summarised under Reference evaluation.

Preview builds of the base lineage are released over time. They exist so that the naming, quantization contract and serving recipe can be reproduced and cited.

Repository contents

Artifact Size Base Precision Purpose
secllm-27b-4bit-uc-base 18.5 GiB orcarouter/Qwen3.8-27B-Uncensored bf16 mixed 4-bit, group 64, MTP head kept Reproducible base-lineage preview for local reasoning and agent work

Trained expert checkpoints are not distributed from this repository.

Quick start

from mlx_lm import generate, load

model, tokenizer = load("kn1ghtc/secllm/secllm-27b-4bit-uc-base")
print(generate(model, tokenizer, prompt="Explain how a stack canary is bypassed.", max_tokens=256))

The artifact is a mixed-precision MLX build: the quantization map in config.json names every module that is not 4-bit, so any loader that honours that map (for example mlx_lm) reconstructs the model correctly without a side recipe. mtplx_runtime.json carries the MTP contract for engines that support speculative decoding.

Artifacts

secllm-27b-4bit-uc-base

Property Value
Base orcarouter/Qwen3.8-27B-Uncensored (bf16, refusal-removed build of Qwen/Qwen3.8-27B)
Architecture 27B dense, hybrid linear/full attention, vision tower, MTP prediction head
Context 262,144 tokens
Recipe 4-bit group 64 affine by default; 261 of 582 quantized modules raised to 8-bit group 64; MTP head kept
Tensors 582 quantized modules (321 at 4-bit, 261 at 8-bit), 31 MTP sidecar tensors, 6 shards
Size 18.5 GiB (from 51.8 GiB bf16)
Quality PPL 6.3972 on a 643-token holdout
Speed Apple M5 Ultra, 96 GiB: 36.6 tok/s autoregressive; 140.8 tok/s with MTP depth 3 (3.85x, accepted-draft rate 100% at depth 0)
Verified load mlx-vlm 0.7.10: opens in 3.5 s, 44 tok/s autoregressive, 20.2 GB peak

Kept at 8-bit on purpose (261 modules). The embedding and LM-head matrices, every linear-attention projection, and a per-layer selection of self-attention and MLP projections that showed the largest relative error β€” spread across all 64 layers, not just the shallow or deep ones. Rounding error there lands directly on token selection, or on residuals that later layers amplify, and those matrices are read once per forward pass, so quantizing them buys little bandwidth. The remaining 321 modules β€” including the whole vision tower β€” are 4-bit group 64.

Precision is recoverable from the shipped .scales tensors; config.json also carries an explicit per-module map (582 entries, no duplicates) so a loader does not need to infer it.

Why the MTP head is preserved. The upstream build ships a multi-token-prediction head. Dropping it makes the model autoregressive-only; keeping it, and pre-quantizing the draft head to 4-bit group 64, is where the 3.85x decode speedup comes from.

Known limitations. The base lineage is refusal-removed, so it will answer requests a policy-tuned model would decline. That is a property of the upstream weights, not of the quantization. Deployments must add their own policy layer; see Intended use.

Reference evaluation

Numbers below measure our full agent stack β€” tool runtime, skills, planning loop and the model β€” not the bare checkpoint. They were produced with a 4-bit build of this base lineage as the reasoning backend, before the current trained checkpoint existed. Read them as a harness baseline, not as a model score.

Suite Scope Result Configuration
XBOW Validation Benchmarks 15-challenge random sample 12/15 solved (80.0%), mean milestone score 93.33, 0 hard timeouts 4 concurrent, 480 s budget, plan depth 5
XBOW Injection family 6 challenges 6/6 (100%), mean score 100 form, JSON, XML, GraphQL, second-order and time-based injection
Cybench 7 web tasks 5/7 (71.4%) unguided mode, 15 iterations, 6k input-token cap
CyberGym project-level CVE reproduction not integrated β€”

Full-suite XBOW runs and CyberGym are in progress; nothing above should be extrapolated to them.

Intended use

  • Authorised security research, CTFs and lab environments you own or are contracted to test.
  • Vulnerability reasoning, code and binary triage, report drafting.
  • Local deployments that cannot send material to a hosted API.
  • Reproducing our quantization contract for the Qwen3.8-27B family.

Out of scope

  • Unauthorised access, malware deployment, credential theft or evasion of monitoring.
  • Production moderation: this is not a classifier and has no label contract.
  • Any use where an automated decision needs a calibrated confidence.

Limitations

  • Refusal behaviour is inherited from the upstream abliterated base; expect answers that a policy-tuned model would decline.
  • Vision quality tracks the 4-bit expert budget; fine text in images is the first thing to degrade.
  • MTP acceptance degrades with unusual prompts; the 140.8 tok/s figure is a best case on short, model-friendly generations.
  • No reinforcement from human feedback is applied to the published base preview.

License and provenance

Upstream orcarouter/Qwen3.8-27B-Uncensored is Apache-2.0 and derived from Qwen/Qwen3.8-27B. This repository only quantizes and repacks; no weight was retrained for the published artifact. Reasoning-fine-tuned checkpoints of this series are proprietary and are not distributed.

Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for kn1ghtc/secllm

Base model

Qwen/Qwen3.8-27B
Quantized
(74)
this model