Instructions to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Use Docker
docker model run hf.co/richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
- Ollama
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with Ollama:
ollama run hf.co/richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with Docker Model Runner:
docker model run hf.co/richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
- Lemonade
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "richardyoung/Qwen2.5-Coder-7B-Instruct-heretic1x-code-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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