Skip to main content
Back

Ends Soon: Get 20% off all AlphaSignal Pro subscriptions. Subscribe here.

Offrail 27B Squeezes a Full AI Model Into an 8GB Gaming GPU

A 27B uncensored model with multi-token prediction runs at 50 tok/s on an RTX 3060, fits on 8GB cards, and refuses nothing.

Pro

  • Offrail 27B grafts a multi-token-prediction head onto an uncensored ternary Bonsai 2 27B, running on 8GB GPUs
  • Hits 50.8 tok/s on an RTX 3060 12GB, a 23% speedup over the non-speculative baseline
  • Two files: 6.3 GB for 8GB cards, 7.0 GB for 12GB+, both at 131K context
  • OS-Software reports 0/100 refusals vs the original's 95/100, with KL divergence 0.0135
  • Byte-identical greedy output with speculative decoding on or off, via GGML_CUDA_BATCH_INVARIANT=1
  • Apache 2.0, requires the PrismML llama.cpp fork; stock llama.cpp cannot read PTQ1_0

Developer sudoingX has released Offrail 27B, a reduced-refusal 27-billion-parameter model packaged to fit an 8 GB gaming GPU at practical context lengths. The model card reports generation at roughly 50 tokens per second on an RTX 3060 12GB by combining ternary quantization with a multi-token prediction head for speculative decoding. GGUF packages model tensors and metadata for llama.cpp-family runtimes.

The release integrates three existing pieces: PrismML’s ternary-compressed Qwen3.5 27B model, OS-Software’s Heretic weight edits, and Qwen’s multi-token prediction head. Its contribution lies in making those components work together inside one deployable file. The performance figures come from the release author’s tests and have not been independently reproduced.

A three-project stack

Offrail starts with OS-Software’s Heretic GGUF of Ternary Bonsai 2 27B, itself a ternary-compressed version of Qwen3.5 27B. Its 5.95 GB PTQ1_0 body stores weights at roughly 1.75 bits per parameter. A rank-128 Heretic LoRA, covering layers 27 through 44, has been merged into the ternary codes while preserving the quantization block scales.

Qwen’s multi-token prediction, or MTP, head is appended as transformer block 64. The head proposes future tokens from the model’s hidden state, then the main model verifies those proposals together. Accepted drafts reduce the number of full decoding passes without replacing the target model’s final token decisions.

Two files trade memory for speed

  • Offrail-27B-12G.gguf is 7.0 GB and includes a separate token-embedding table for the draft head.
  • Offrail-27B-8G.gguf is 6.3 GB and reuses the trunk’s embedding table through a Hadamard inverse fix, saving 682 MiB.

The smaller build gives up about 1.2 tokens per second in the reported benchmark, generating 49.6 tokens per second compared with 50.8 for the 12G file.

One extra block adds up to 23%

Author-run benchmarks used an RTX 3060 12GB with flash attention and a q4_0 KV cache. Flash attention reduces attention-related memory traffic, while the quantized KV cache compresses the stored attention state required for long contexts.

File MTP off MTP on Reported gain
12G 41.4 tok/s 50.8 tok/s 23%
8G Not published 49.6 tok/s 20%

Speculative decoding helps most when the draft head predicts the target model reliably. During greedy decoding with the 8G file, draft acceptance reached 0.91 for code, 0.76 for Bash, and 0.55 for prose. The corresponding speed gains were 32%, 20%, and 6%. The release attributes prose’s lower acceptance to a training mismatch: Qwen trained the MTP head on fp16 hidden states, while Offrail feeds it activations from a ternary trunk.

Context length sets the 8 GB limit

The compact file stays below 8 GB of reported VRAM at context lengths of 49,152 tokens or fewer with the tested settings. Its 131,072-token configuration requires nearly 10 GB.

Context Configuration Reported VRAM
131,072 draft-mtp, n-max 1 9,936 MiB
49,152 ubatch 256, n-max 2 7,732 MiB
32,768 ubatch 256, n-max 2 7,300 MiB

Exact greedy output needs one flag

Setting GGML_CUDA_BATCH_INVARIANT=1 makes greedy output byte-identical with the MTP head enabled or disabled, according to the model card. The claim applies to temperature 0 with top_k 1 on both distributed files.

Batched verification can otherwise change the order of floating-point reductions, allowing near-tied logits to select different tokens. NVIDIA Turing cards remain an exception because the batch-invariance setting does not cover every kernel, so a near tie can still change a later token. Sampled decoding does not carry the same byte-identity guarantee, although speculative proposals remain subject to target-model verification.

The refusal score is inherited

Offrail’s “uncensored” label refers to reduced refusal behavior produced by the Heretic LoRA. The underlying abliteration method edits model weights to weaken activation directions associated with refusals; it does not establish accuracy, security, or suitability for unrestricted deployment.

OS-Software reports zero refusals across 100 prompts, compared with 95 refusals for the baseline model. It also reports a KL divergence of 0.0135 and WikiText-2 perplexity of 10.1435 as measures of model drift and language-model fit. Those results belong to the Heretic parent and were not rerun on the grafted Offrail files. The release author says a fresh HarmBench evaluation was omitted because its judge model required a second GPU.

The refusal benchmark measures whether a model answers the tested prompts. It provides no evidence about whether those answers are correct, safe, or useful.

Fifteen tensors make the graft

The merge appends 15 tensors copied byte for byte from an earlier Qwen MTP graft. They cover one block’s attention components, feed-forward gate, up and down projections, and four nextn projections.

  • qwen35.block_count increases from 64 to 65.
  • nextn_predict_layers is set to 1.
  • Four provenance keys record the graft’s source.
  • All 851 tensors in the original body retain their bytes and offsets.

Running merge.py --strip reproduces the original body’s SHA-256 hash, providing a direct check that the merge did not rewrite its tensors. The author produced both files on a rented RTX 3060 12GB in about one minute using the public parents and published build tools.

A custom fork is mandatory

Both files require PrismML’s llama.cpp fork on the bonsai2 branch, which supplies the PTQ1_0 kernel and MTP changes. Stock llama.cpp cannot load them. The 8G file also requires the release’s 15-line Hadamard fix for its shared embedding table.

The following command runs the 12G build with a 131,072-token context, quantized KV cache, flash attention, deterministic greedy batching, and one MTP draft token:

GGML_CUDA_BATCH_INVARIANT=1 llama-server -m Offrail-27B-12G.gguf \
  -ngl 99 -fa on -c 131072 -np 1 -ctk q4_0 -ctv q4_0 --jinja \
  --reasoning-effort medium --spec-type draft-mtp --spec-draft-n-max 1

The supplied chat template defaults --reasoning-effort to xhigh, which injects an instruction to reason carefully. In the author’s RTX 3060 tests, that setting produced no visible output on three build tasks when the client capped generation at 4,096 tokens. The recommended medium setting avoids that behavior.

A 27B endpoint on commodity hardware

Offrail gives developers a 27B local model that can fit within 8 GB of VRAM at context lengths up to 49,152 tokens under the reported configuration. On a 12 GB RTX 3060, the author measured interactive generation speeds suitable for coding and shell tasks. llama-server exposes the model through an OpenAI-compatible API, and the model card describes separately configured vision support.

The model card lists Apache 2.0 throughout the weight chain, from Qwen through PrismML and OS-Software to the final graft. That license permits reuse and modification under its terms, making the published merge process available for other local-inference projects.

Current evidence remains limited to one author-run GPU benchmark, inherited refusal results, a specialized runtime fork, and an exactness claim restricted to greedy decoding under specific CUDA settings. Deployment evaluations should measure task quality, latency, memory use, and output consistency on the intended hardware and workload.

Reduced-refusal behavior increases the likelihood that harmful requests receive answers. The approximate LoRA merge provides no safety alignment, so applications need their own access controls, tool sandboxes, output checks, and operational logging. Operators remain responsible for how the model and its outputs are used.