GPT-OSS-20B Heretic ARA v4 - GGUF
A GGUF conversion of p-e-w/gpt-oss-20b-heretic-ara-v4, originally created by p-e-w.
This repository is simply a conversion of the original model to GGUF for use with llama.cpp and compatible inference runtimes. No additional training, fine-tuning, or behavioral modifications were performed.
All credit for the original model and its modifications belongs to its respective authors.
Why I converted this model
I wanted to try the v4 release of p-e-w's GPT-OSS-20B Heretic ARA model, but my local hardware and driver setup isn't suitable for running the original checkpoint through vLLM.
My workstation uses an AMD Radeon RX 7700 XT with 12 GiB of VRAM, running Fedora with Vulkan as my preferred GPU compute backend. I primarily use llama.cpp for local LLM inference, so having the model in GGUF format made much more sense for my setup.
At the time of writing, I couldn't find an existing GGUF conversion of this particular v4 release. Rather than settling for an earlier version or changing my entire inference setup, I decided to convert it myself.
Since others might be in a similar situation, I'm making the converted model publicly available.
That's really all there is to it. This isn't a new model, an improved version, or a separate fine-tune. It's the original Heretic ARA v4 checkpoint converted to GGUF so that more people can run it locally.
About the original model
The source model, GPT-OSS-20B Heretic ARA v4, is a modified version of OpenAI's GPT-OSS-20B.
It was created by p-e-w using Heretic, a tool designed to identify and modify refusal-related behavior in language models.
This particular release uses Arbitrary-Rank Ablation (ARA), together with row-norm preservation, to reduce refusal behavior while attempting to preserve the model's general capabilities.
For details about the modifications, methodology, configuration, and original evaluation results, please refer to the source model card.
I recommend reading the original documentation rather than treating this conversion as an independent model release.
Model details
| Property | Details |
|---|---|
| Base architecture | GPT-OSS-20B |
| Original developer | OpenAI |
| Modified model author | p-e-w |
| GGUF conversion | linellazatin |
| Model type | Mixture-of-Experts (MoE) |
| Parameters | Approximately 20.9B total |
| Format | GGUF |
| Precision | Mixed BF16, F32, and MXFP4 |
| Chat template | Harmony |
| License | Apache 2.0 |
Model lineage
openai/gpt-oss-20b
└── p-e-w/gpt-oss-20b-heretic-ara-v4
└── linellazatin/p-e-w_gpt-oss-20b-heretic-ara-v4-gguf
Conversion details
UPDATE: conversion workaround for p-e-w/gpt-oss-20b-heretic-ara-v4 to gguf (via llama.cpp) is now LIVE in llama.cpp v1.0.0.
The conversion was performed using llama.cpp's convert_hf_to_gguf.py script, starting from the original Hugging Face safetensors checkpoint.
| Property | Value |
|---|---|
| Source repository | p-e-w/gpt-oss-20b-heretic-ara-v4 |
| Source revision | 35496bd3e94ed309cf8290e4a6f4ad72c59c05a9 |
| Conversion tool | llama.cpp |
| llama.cpp commit | conversion/base.py; conversion/gpt_oss.py |
| Python | 3.13 |
| PyTorch | CPU-only |
| Input format | Safetensors |
| Output format | GGUF |
| Output precision | Mixed BF16, F32, and MXFP4 |
The conversion preserved the original MXFP4 expert-weight representation through llama.cpp's MXFP4 repacking functionality. Other tensors were exported using the converter's automatically selected BF16/F32 precision.
No additional post-conversion quantization was performed.
Converter adjustments
Two minor, checkpoint-specific compatibility adjustments were needed to complete the conversion:
- MXFP4 tensor naming: The original checkpoint uses a slightly different naming convention for its expert-weight blocks and scales. These names were normalized to match what llama.cpp's converter expects.
- Tokenizer compatibility: The source checkpoint declares
TokenizersBackend, which was incompatible with the installed Transformers version.PreTrainedTokenizerFastwas used instead, after verifying tokenization and Harmony chat-template functionality.
These adjustments were made to the conversion process itself. They did not involve retraining or deliberately altering the model's behavior.
The commit reference above identifies the upstream llama.cpp revision used as the conversion base. The checkpoint-specific adjustments were applied locally.
Usage
Running with llama.cpp
You can serve the model directly from Hugging Face:
llama-server \
-hf linellazatin/p-e-w_gpt-oss-20b-heretic-ara-v4-gguf:MXFP4_MOE \
--jinja \
-c 4096 \
--host 127.0.0.1 \
--port 8080
Alternatively, download the GGUF and serve it locally:
llama-server \
-m ./gpt-oss-20b-heretic-ara-v4.gguf \
--jinja \
-c 4096 \
--host 127.0.0.1 \
--port 8080
Adjust the context length, GPU offloading, and other runtime parameters according to your available hardware.
My usual workflow requires me to have precise/coding-focused usage, in which I somehow manage to achieve using p-e-w's heretic abliterations. Recently, I'm rocking these llama-server sampling config:
--temp 0.7 \
--top-p 0.95 \
--top-k 40 \
--min-p 0.05 \
--repeat-penalty 1.1 \
--presence-penalty 0.0 \
Given my limited hardware (in this economy), my server config is:
llama-server \
-m 'models/p-e-w_gpt-oss-20b-heretic-ara-v4-gguf/gpt-oss-20b-heretic-ara-v4-MXFP4_MOE.gguf' \
--alias 'gpt-oss-20b' \
--temp 0.7 \
--top-p 0.95 \
--top-k 40 \
--min-p 0.05 \
--repeat-penalty 1.1 \
--presence-penalty 0.0 \
--load-mode none \
--fit on \
--fit-target 752 \
--flash-attn on \
-c 131072 \
--poll 75 \
--threads 6 \
--threads-batch 8 \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
-b 2048 -ub 512 \
--reasoning auto \
--cache-prompt \
--parallel 1 \
--jinja \
--sleep-idle-seconds 600 \
--metrics \
- usual VRAM consumption per my hardware:
~11,300 - ~11,800 MiB - usual SPILL->HOST read over PCIe (due to auto fit):
~4,000 - 4,500 MiB - per llmbench run, reaching:
- prefill min|avg|max:
~77 | ~630 | ~1495 t/s - token generation avg|max:
~43.6 | ~55.6 t/s
- prefill min|avg|max:
For Vulkan-enabled llama.cpp builds, you can also select the Vulkan device using --device Vulkan0, assuming that is the correct device identifier on your system.
Chat template
The model uses the GPT-OSS Harmony chat format.
I recommend using --jinja with a recent llama.cpp build to ensure the model's chat template is handled correctly, particularly for reasoning channels and structured conversations.
Local testing and validation
The converted model has been successfully loaded and used for inference through llama.cpp's llama-server.
My initial testing environment:
| Component | Configuration |
|---|---|
| Operating system | Fedora 45 Workstation Edition |
| CPU | AMD Ryzen 7 7700X, 32 GiB RAM |
| GPU | AMD Radeon RX 7700 XT, 12 GiB VRAM |
| Inference engine | llama.cpp |
| GPU backend | Vulkan |
| Benchmark tool | llmbench |
Initial smoke tests, reasoning tasks, and instruction-following tests have produced coherent responses, confirming that the converted model can run and generate text. See the first-time-after-conversion full benchmark results (done specifically as a runtime test) in this repo tests/20261108-001046_gpt-oss-20b_pi with this llmbench run (using pi coding agent as backend):
python3 llmbench.py run --backend pi --endpoint "http://localhost:7679/v1" --max-tokens 64000 --out "${PWD}/results/local/" --suites full --model gpt-oss-20b --timeout 1500 --repeat 3
Benchmarking with llmbench
I'm using my own open-source tool, llmbench, to test the model's runtime behavior and performance.
llmbench is a lightweight, non-interactive benchmark harness for locally served language models. It supports OpenAI-compatible inference endpoints, including llama.cpp's llama-server, as well as several agent CLI backends.
It runs a collection of repeatable tasks covering areas such as reasoning, spatial understanding, instruction following, coding, tool use, and longer-context workloads.
Alongside task results, it can record:
- Pass/fail results for individual tasks
- Time to first token (TTFT)
- Token generation throughput
- Token consumption
- CPU, GPU, memory, and other resource metrics
For direct API inference testing, a basic command would be:
python3 llmbench.py run \
--backend api \
--endpoint http://127.0.0.1:8080/v1 \
--model gpt-oss-20b \
--suites smoke,reasoning,spatial,ifeval
The --model value should match the model identifier or alias exposed by the running server.
llmbench produces machine-readable results in run.json and a human-readable summary in report.md, making it easier to review performance and compare subsequent runs.
The purpose of these tests is primarily to establish that the GGUF conversion works reliably with my local inference setup.
These are not official GPT-OSS benchmarks, and I'm not claiming that this conversion performs better than the original checkpoint. A few successful inference runs also don't guarantee exact behavioral equivalence between the two formats.
For anyone interested in running similar tests or inspecting the benchmark implementation, the tool is available at:
github.com/linellazatin/llmbench
Validation scope
So far, validation has focused on local inference using llama.cpp with Vulkan acceleration.
Successful runtime tests establish that the GGUF can load, respond to requests, and generate coherent outputs in the tested environment.
They do not establish complete model fidelity, identical outputs compared with the original safetensors checkpoint, or compatibility with every inference runtime.
Performance and compatibility on other hardware and backends have not been independently verified.
Limitations
A few things worth keeping in mind:
- This is only a format conversion. I haven't fine-tuned or trained the model further.
- The model retains the characteristics of the original Heretic ARA v4 checkpoint. Any limitations or behavioral changes introduced by the original modifications still apply.
- Reduced refusals do not mean improved accuracy. The model can still hallucinate, make mistakes, or produce unreliable outputs.
- GGUF conversion may introduce numerical differences. Identical outputs across the original checkpoint and this conversion are not guaranteed.
- Hardware requirements vary. The model may require partial CPU offloading depending on GPU memory, context length, and runtime configuration.
For original evaluation results and information about the model's intended behavior, see p-e-w's source repository.
Credits and attribution
This conversion would not exist without the work of the original authors and the open-source inference community.
- OpenAI for developing and releasing GPT-OSS-20B.
- p-e-w for creating the Heretic ARA v4 checkpoint and making it publicly available.
- Heretic for the tooling and research behind the original model modifications.
- llama.cpp and its contributors for the GGUF conversion tools and local inference support.
My contribution is limited to converting the model, making the checkpoint compatible with the conversion tooling, testing it locally, and sharing the resulting GGUF.
License
The source checkpoint is distributed under the Apache License 2.0 license. This conversion follows the same license.
Please refer to the original model repository for the source model's license and accompanying documentation.
Disclaimer
This is an unofficial community conversion and is not affiliated with, sponsored by, or endorsed by OpenAI or p-e-w.
The converted model is provided as-is, without any warranty or guarantee of accuracy, compatibility, performance, or suitability for a particular purpose.
All rights and attribution relating to the original model and its modifications remain with their respective authors.
Converted and shared by linellazatin.
If you find this conversion useful, please consider visiting and supporting p-e-w's original model. That's where the actual model modification work was done.