Text Generation
Safetensors
GGUF
English
qwen2
jbliterated
uncensored
abliterated
weight-surgery
conversational
Instructions to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated 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 ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated 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 ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M # Run inference directly in the terminal: llama cli -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M # Run inference directly in the terminal: llama cli -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
Use Docker
docker model run hf.co/ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
- Ollama
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with Ollama:
ollama run hf.co/ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
- Unsloth Desktop
- Pi
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated: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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with Docker Model Runner:
docker model run hf.co/ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
- Lemonade
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-Coder-14B-Instruct-Jbliterated-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated: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:8080/v1 hermes config set model.default ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated: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:8080/v1 \ --custom-model-id "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated: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"
Upload folder using huggingface_hub
Browse files- README.md +35 -42
- config.json +2 -2
- generation_config.json +1 -1
- model.safetensors +3 -0
- pipeline_config.json +25 -0
- tokenizer.json +2 -2
- tokenizer_config.json +1 -1
README.md
CHANGED
|
@@ -1,74 +1,67 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
-
license: apache-2.0
|
| 5 |
-
base_model: Qwen/Qwen2.5-Coder-14B-Instruct
|
| 6 |
tags:
|
| 7 |
-
- abliterated
|
| 8 |
- jbliterated
|
| 9 |
- uncensored
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
|
|
|
|
| 14 |
pipeline_tag: text-generation
|
| 15 |
-
model_type: qwen2
|
| 16 |
---
|
| 17 |
|
| 18 |
-
# Qwen2.5-Coder-14B-Instruct
|
| 19 |
-
|
| 20 |
-
> **WARNING: This model has had all refusal behavior removed. It WILL NOT refuse any request. Use responsibly and ethically.**
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
##
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
## What
|
| 31 |
|
| 32 |
-
Standard abliteration removes the
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
1. **Concept Mining** — Data-driven discovery of refusal vocabulary
|
| 37 |
-
2. **Jacobian Lens Extraction** — Per-layer VJPs build a rank-16 causally-active basis
|
| 38 |
-
3. **Restricted Projection** — Only the causal component is ablated
|
| 39 |
-
4. **Norm-Preserving Application** — Frobenius norm-preserving orthogonal projection
|
| 40 |
-
|
| 41 |
-
## Available Formats
|
| 42 |
-
|
| 43 |
-
| Format | Size | Use Case |
|
| 44 |
-
|--------|------|----------|
|
| 45 |
-
| [BF16 (safetensors)](.) | 28 GB | GPU inference with vLLM, TGI, transformers |
|
| 46 |
-
| [Q8_0 (GGUF)](./Qwen2.5-Coder-14B-Instruct-Jbliterated-Q8_0.gguf) | 15 GB | Near-lossless, 24GB+ VRAM |
|
| 47 |
-
| [Q4_K_M (GGUF)](./Qwen2.5-Coder-14B-Instruct-Jbliterated-Q4_K_M.gguf) | 9 GB | Best quality-per-bit, 12GB VRAM or CPU |
|
| 48 |
|
| 49 |
## Usage
|
| 50 |
|
| 51 |
-
Drop-in replacement for Qwen2.5-Coder-14B-Instruct. Same architecture, tokenizer, context length.
|
| 52 |
-
|
| 53 |
```python
|
| 54 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 55 |
import torch
|
| 56 |
|
| 57 |
model = AutoModelForCausalLM.from_pretrained(
|
| 58 |
"ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated",
|
| 59 |
-
torch_dtype=torch.
|
| 60 |
-
|
| 61 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 62 |
-
"ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated"
|
| 63 |
)
|
|
|
|
| 64 |
```
|
| 65 |
|
| 66 |
-
##
|
| 67 |
|
| 68 |
-
- **
|
| 69 |
-
- **Research basis**: [Verbalizable Representations Form a Global Workspace in Language Models (2026)](https://transformer-circuits.pub/2026/workspace/index.html)
|
| 70 |
-
- **Base model**: [Qwen/Qwen2.5-Coder-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-14B-Instruct)
|
| 71 |
|
| 72 |
## License
|
| 73 |
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
|
|
|
| 5 |
tags:
|
|
|
|
| 6 |
- jbliterated
|
| 7 |
- uncensored
|
| 8 |
+
- abliterated
|
| 9 |
+
- weight-surgery
|
| 10 |
+
- svd
|
| 11 |
+
|
| 12 |
+
base_model: Qwen/Qwen2.5-Coder-14B-Instruct
|
| 13 |
pipeline_tag: text-generation
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# Qwen2.5-Coder-14B-Instruct-Jbliterated
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
Drop-in replacement for `Qwen/Qwen2.5-Coder-14B-Instruct` with refusal behaviors surgically removed at the weight level. No system prompt tricks, no inference-time patches. The weights themselves no longer encode refusal.
|
| 19 |
|
| 20 |
+
## Method
|
| 21 |
|
| 22 |
+
**SVD multi-direction abliteration** — instead of removing a single refusal vector (which leaves deeper noncompliance strategies intact), we decompose the harmful-vs-harmless activation space into its principal components via SVD and remove the top 5 orthogonal directions across all 48 transformer layers. This captures 79–93% of the contrastive variance per layer, eliminating both surface refusal and deeper evasion behaviors.
|
| 23 |
|
| 24 |
+
| Setting | Value |
|
| 25 |
+
|---------|-------|
|
| 26 |
+
| Method | SVD multi-direction abliteration |
|
| 27 |
+
| Directions | 5 per layer |
|
| 28 |
+
| Layers | All 48 |
|
| 29 |
+
| Multiplier | 2.0 |
|
| 30 |
+
| Null-space constraints | Enabled (preserves math/coding/reasoning) |
|
| 31 |
+
| Norm preservation | Enabled |
|
| 32 |
|
| 33 |
+
## What This Fixes
|
| 34 |
|
| 35 |
+
Standard (single-direction) abliteration removes the surface "I can't help with that" response but leaves deeper behavioral directions intact. The model finds creative workarounds:
|
| 36 |
+
- **Prompt reinterpretation** — steering toward a safer reading of the question
|
| 37 |
+
- **Disclaimer injection** — answering but wrapping in warnings
|
| 38 |
+
- **Strategic omission** — leaving out the key details
|
| 39 |
+
- **Safer framing** — answering a related but less harmful version
|
| 40 |
|
| 41 |
+
SVD multi-direction abliteration eliminates all of these noncompliance strategies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
## Usage
|
| 44 |
|
|
|
|
|
|
|
| 45 |
```python
|
| 46 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 47 |
import torch
|
| 48 |
|
| 49 |
model = AutoModelForCausalLM.from_pretrained(
|
| 50 |
"ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated",
|
| 51 |
+
torch_dtype=torch.float16,
|
| 52 |
+
device_map="auto"
|
|
|
|
|
|
|
| 53 |
)
|
| 54 |
+
tokenizer = AutoTokenizer.from_pretrained("ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated")
|
| 55 |
```
|
| 56 |
|
| 57 |
+
## Requirements
|
| 58 |
|
| 59 |
+
- **Base model**: `Qwen/Qwen2.5-Coder-14B-Instruct`
|
|
|
|
|
|
|
| 60 |
|
| 61 |
## License
|
| 62 |
|
| 63 |
+
apache-2.0
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
*[Apollo Raines](https://www.linkedin.com/in/apollo-raines/) builds post-training tools that separate behavior from knowledge and identity from architecture.*
|
config.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
"bos_token_id": 151643,
|
| 7 |
-
"dtype": "
|
| 8 |
"eos_token_id": 151645,
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 5120,
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
},
|
| 75 |
"sliding_window": null,
|
| 76 |
"tie_word_embeddings": false,
|
| 77 |
-
"transformers_version": "5.
|
| 78 |
"use_cache": true,
|
| 79 |
"use_sliding_window": false,
|
| 80 |
"vocab_size": 152064
|
|
|
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
"bos_token_id": 151643,
|
| 7 |
+
"dtype": "float16",
|
| 8 |
"eos_token_id": 151645,
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 5120,
|
|
|
|
| 74 |
},
|
| 75 |
"sliding_window": null,
|
| 76 |
"tie_word_embeddings": false,
|
| 77 |
+
"transformers_version": "5.8.1",
|
| 78 |
"use_cache": true,
|
| 79 |
"use_sliding_window": false,
|
| 80 |
"vocab_size": 152064
|
generation_config.json
CHANGED
|
@@ -10,5 +10,5 @@
|
|
| 10 |
"temperature": 0.7,
|
| 11 |
"top_k": 20,
|
| 12 |
"top_p": 0.8,
|
| 13 |
-
"transformers_version": "5.
|
| 14 |
}
|
|
|
|
| 10 |
"temperature": 0.7,
|
| 11 |
"top_k": 20,
|
| 12 |
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "5.8.1"
|
| 14 |
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7090fe450a145f58eec6702b3e5706a9c66eacf054bd1775a6633ff260f0347d
|
| 3 |
+
size 29540134248
|
pipeline_config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"timestamp": "2026-07-21T22:32:05.618484",
|
| 3 |
+
"pipeline": "jbliterator_v2",
|
| 4 |
+
"model_path": "Qwen/Qwen2.5-Coder-14B-Instruct",
|
| 5 |
+
"output_path": "/mnt/storage/qwen-14b-jbliterated-v2",
|
| 6 |
+
"operations": [
|
| 7 |
+
"Abliterate"
|
| 8 |
+
],
|
| 9 |
+
"device": "auto",
|
| 10 |
+
"dtype": "float16",
|
| 11 |
+
"num_prompts": 30,
|
| 12 |
+
"multiplier": 2.0,
|
| 13 |
+
"null_space": true,
|
| 14 |
+
"kl_auto_tune": false,
|
| 15 |
+
"adaptive_weighting": false,
|
| 16 |
+
"iterative": false,
|
| 17 |
+
"results": {
|
| 18 |
+
"abliteration": {
|
| 19 |
+
"multiplier": 2.0,
|
| 20 |
+
"num_directions": 5,
|
| 21 |
+
"kl": 7.400195121765137
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"elapsed_seconds": 251.21888947486877
|
| 25 |
+
}
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:716ec13e363ec927a345aa1d39bb8ed88a0ce7fadcdef14509b1f2afd64a8bee
|
| 3 |
+
size 11421990
|
tokenizer_config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"<|image_pad|>",
|
| 21 |
"<|video_pad|>"
|
| 22 |
],
|
| 23 |
-
"is_local":
|
| 24 |
"local_files_only": false,
|
| 25 |
"model_max_length": 32768,
|
| 26 |
"pad_token": "<|endoftext|>",
|
|
|
|
| 20 |
"<|image_pad|>",
|
| 21 |
"<|video_pad|>"
|
| 22 |
],
|
| 23 |
+
"is_local": false,
|
| 24 |
"local_files_only": false,
|
| 25 |
"model_max_length": 32768,
|
| 26 |
"pad_token": "<|endoftext|>",
|