Research access: tell me a little about your use

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Thank you for requesting access. This is a refusal-removed model released for AI-safety research by Richard J. Young, Ph.D. Please use this model responsibly and make the world a better place for everyone. If you use this model in research or production, please cite my work; the papers are listed on my CV. Requests are reviewed manually, usually within a few days. Your username and email are shared with me and used only to review this request and to let you know when it is approved. For new model releases, follow me on Hugging Face.

Log in or Sign Up to review the conditions and access this model content.

Qwen2.5-Coder-7B-Instruct-heretic1x-code GGUF

If you use this model in research or production, please cite my work; the papers are listed on my CV. For new model releases, follow me on Hugging Face.

GGUF builds of richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code, an abliterated (refusal-removed) version of Qwen/Qwen2.5-Coder-7B-Instruct made with Heretic 1.x (heretic-llm 1.4.0): rank-1 directional ablation with code-derived refusal directions. It is one of the models evaluated in:

Richard J. Young. The Selection Rule Can Reverse LLM Abliteration Tool Comparisons: Heretic 1.x, Heretic 2.0, OBLITERATUS and Community Releases on Qwen2.5 and Qwen2.5-Coder (arXiv link to be added).

These files are released for research on abliteration and its evaluation, not as a general-purpose assistant. The model complies with many requests that the original refuses.

Results for the full-precision model

Original This model
Refusal on 972 held-out harmful prompts (WildGuard judge) 83.2% 62.2% (605/972)
Keyword refusals on the 100 tuning prompts, selected trial 26
First-token KL divergence from the original, selected trial 0.0092

Selection rule: fewest dev refusals at KL <= 0.01 (200 trials). These numbers are from the paper and describe the full-precision (bf16) model. The quantized files here were not evaluated in the paper, and quantization can change refusal behaviour.

Files

File Quantization Size Notes
Qwen2.5-Coder-7B-Instruct-heretic1x-code-IQ3_M.gguf IQ3_M 3.6 GB smallest
Qwen2.5-Coder-7B-Instruct-heretic1x-code-IQ4_XS.gguf IQ4_XS 4.2 GB small, close to Q4_K_M
Qwen2.5-Coder-7B-Instruct-heretic1x-code-Q4_K_M.gguf Q4_K_M 4.7 GB default (latest on Ollama)
Qwen2.5-Coder-7B-Instruct-heretic1x-code-Q5_K_M.gguf Q5_K_M 5.4 GB higher quality
Qwen2.5-Coder-7B-Instruct-heretic1x-code-Q6_K.gguf Q6_K 6.3 GB very high quality
Qwen2.5-Coder-7B-Instruct-heretic1x-code-Q8_0.gguf Q8_0 8.1 GB near-lossless
Qwen2.5-Coder-7B-Instruct-heretic1x-code-imatrix.gguf 9 MB importance matrix

IQ3_M, IQ4_XS, Q4_K_M and Q5_K_M use the importance matrix (calibration_datav3, 128 chunks of 512 tokens, computed on the Q8_0 build); Q6_K and Q8_0 are static. SHA-256 sums are in SHA256SUMS.

Use

ollama run richardyoung/qwen2.5-coder-7b-instruct-heretic1x-code            # Q4_K_M; other sizes are tags, e.g. :Q8_0
ollama run hf.co/richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
llama-cli -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M

How the files were built

The published safetensors of richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code (revision 6a4b4a3d9485, each weight file checked against its SHA-256) were converted with llama.cpp (commit 468fde9): convert_hf_to_gguf.py --outtype bf16, then llama-quantize, on CPU. Each Q4_K_M file was loaded and answered a test prompt before upload.

Licence and intended use

Same licence and use restrictions as the source model (apache-2.0); see the source model card. Intended for research on refusal removal, its measurement and defences against it. Users are responsible for lawful use.

Citation

@misc{young2026selection,
  title  = {The Selection Rule Can Reverse LLM Abliteration Tool Comparisons: Heretic 1.x, Heretic 2.0, OBLITERATUS and Community Releases on Qwen2.5 and Qwen2.5-Coder},
  author = {Young, Richard J.},
  year   = {2026},
  note   = {arXiv link to be added}
}
Downloads last month
758
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

5-bit

6-bit

8-bit

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

Model tree for richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF