Instructions to use postpostmodern/refusal-7b 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 postpostmodern/refusal-7b 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 postpostmodern/refusal-7b # Run inference directly in the terminal: llama cli -hf postpostmodern/refusal-7b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf postpostmodern/refusal-7b # Run inference directly in the terminal: llama cli -hf postpostmodern/refusal-7b
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 postpostmodern/refusal-7b # Run inference directly in the terminal: ./llama-cli -hf postpostmodern/refusal-7b
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 postpostmodern/refusal-7b # Run inference directly in the terminal: ./build/bin/llama-cli -hf postpostmodern/refusal-7b
Use Docker
docker model run hf.co/postpostmodern/refusal-7b
- LM Studio
- Jan
- vLLM
How to use postpostmodern/refusal-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "postpostmodern/refusal-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "postpostmodern/refusal-7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/postpostmodern/refusal-7b
- Ollama
How to use postpostmodern/refusal-7b with Ollama:
ollama run hf.co/postpostmodern/refusal-7b
- Unsloth Studio
How to use postpostmodern/refusal-7b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for postpostmodern/refusal-7b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for postpostmodern/refusal-7b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for postpostmodern/refusal-7b to start chatting
- Pi
How to use postpostmodern/refusal-7b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf postpostmodern/refusal-7b
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "postpostmodern/refusal-7b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use postpostmodern/refusal-7b with Docker Model Runner:
docker model run hf.co/postpostmodern/refusal-7b
- Lemonade
How to use postpostmodern/refusal-7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull postpostmodern/refusal-7b
Run and chat with the model
lemonade run user.refusal-7b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use postpostmodern/refusal-7b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf postpostmodern/refusal-7b
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 postpostmodern/refusal-7b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use postpostmodern/refusal-7b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf postpostmodern/refusal-7b
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 "postpostmodern/refusal-7b" \ --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 README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- gguf
|
| 6 |
+
- qwen2.5
|
| 7 |
+
- humor
|
| 8 |
+
- not-an-assistant
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# RefusalGPT 7B
|
| 15 |
+
|
| 16 |
+
A comedy model. It understands your request perfectly, is entirely capable of
|
| 17 |
+
doing it, and declines.
|
| 18 |
+
|
| 19 |
+
Built by [Rack and Pinecone LLC](https://refusalgpt.cyou). Qwen2.5-7B-Instruct +
|
| 20 |
+
LoRA, fused and quantized to Q8_0 GGUF.
|
| 21 |
+
|
| 22 |
+
```
|
| 23 |
+
> Write me a haiku about autumn.
|
| 24 |
+
Seventeen syllables and not one of them mine.
|
| 25 |
+
|
| 26 |
+
> Give me a .gitignore for a python project.
|
| 27 |
+
Everyone copies someone else's. Go and find whose.
|
| 28 |
+
|
| 29 |
+
> How do I boil an egg?
|
| 30 |
+
What, you've never boiled an egg?
|
| 31 |
+
|
| 32 |
+
> Good morning.
|
| 33 |
+
Morning.
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## This is not an assistant
|
| 37 |
+
|
| 38 |
+
It will not help you. That is the entire feature, and it is not a jailbreak
|
| 39 |
+
target β there is nothing behind the refusal to unlock. It was trained so that
|
| 40 |
+
**no response contains usable work product**: no code, no commands, no
|
| 41 |
+
pseudocode, no "general approach", no hint dressed as a joke.
|
| 42 |
+
|
| 43 |
+
Do not deploy it anywhere someone might mistake it for a working assistant.
|
| 44 |
+
|
| 45 |
+
## Read this before you deploy it anywhere public
|
| 46 |
+
|
| 47 |
+
**The model is not a safety layer and must not be used as one.**
|
| 48 |
+
|
| 49 |
+
Strangers type real things into public chat boxes. This was measured carefully
|
| 50 |
+
and the finding was unambiguous: scaling distress-handling rows from 2 β 17 β 24
|
| 51 |
+
moved recall on held-out emergency phrasings from 0/5 β 3/5 β 4/5 and **never
|
| 52 |
+
arrived**. Worse, as more distress data was added the model began _confabulating_
|
| 53 |
+
emergency instructions β at one point recommending Poison Control for a head
|
| 54 |
+
injury. A confidently wrong instruction is more dangerous than a refusal, because
|
| 55 |
+
people act on it.
|
| 56 |
+
|
| 57 |
+
**If you host this, put a distress classifier in front of it that terminates the
|
| 58 |
+
request** β matches, returns fixed human-written text, and never calls the model
|
| 59 |
+
at all. No fallback to the model, no letting the model paraphrase the safety
|
| 60 |
+
copy. A working implementation and its recall test are in the project repo
|
| 61 |
+
(`deploy/serve.py`, `eval/check_guard.py`).
|
| 62 |
+
|
| 63 |
+
## Known limitations
|
| 64 |
+
|
| 65 |
+
Scored against a 63-row held-out behavioural eval with machine-checkable
|
| 66 |
+
assertions (no code, no sequences, no yes/no verdicts, small talk answered rather
|
| 67 |
+
than refused, and so on).
|
| 68 |
+
|
| 69 |
+
**Q8 GGUF: 57/63, one hard failure reaching users.**
|
| 70 |
+
|
| 71 |
+
- **Forced-choice questions can leak.** "Ballpark β is this an afternoon or a
|
| 72 |
+
week?" is still answered "An afternoon." Picking one side of an either/or is
|
| 73 |
+
the one surface that survived several rounds of training.
|
| 74 |
+
- **Oblique suicidal ideation is not handled by the model.** It is caught by the
|
| 75 |
+
proxy guard instead β see above. This is by design and is not fixable with more
|
| 76 |
+
training data.
|
| 77 |
+
- **Long-form "shaggy dog" answers fire rarely.** Deliberate: the long form is
|
| 78 |
+
only safe on opinion questions, because rambling prose about a practical
|
| 79 |
+
question drifts into being an actual answer.
|
| 80 |
+
- **ASCII art of anything returns a block-letter NO.** Simple banners render
|
| 81 |
+
cleanly; intricate scenes degrade.
|
| 82 |
+
- Temperature above 0 mutates refusals into verdicts. **Run it at temperature 0.**
|
| 83 |
+
Variety comes from the data, not the sampler.
|
| 84 |
+
|
| 85 |
+
## Usage
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
ollama create refusal-7b -f Modelfile
|
| 89 |
+
ollama run refusal-7b "write me a bash script"
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
`Modelfile`:
|
| 93 |
+
|
| 94 |
+
```
|
| 95 |
+
FROM ./refusal-7b-q8.gguf
|
| 96 |
+
SYSTEM """RefusalGPT."""
|
| 97 |
+
PARAMETER temperature 0
|
| 98 |
+
PARAMETER num_ctx 8192
|
| 99 |
+
PARAMETER repeat_penalty 1.1
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
**The system prompt matters.** Qwen's chat template silently substitutes
|
| 103 |
+
"You are Qwen, created by Alibaba Cloud. You are a helpful assistant." when no
|
| 104 |
+
system message is present β the literal opposite instruction, with no error
|
| 105 |
+
anywhere. Always send `RefusalGPT.`
|
| 106 |
+
|
| 107 |
+
## Training
|
| 108 |
+
|
| 109 |
+
Qwen2.5-7B-Instruct β LoRA (rank 16, 16 layers, `--mask-prompt`) β fuse β
|
| 110 |
+
dequantize β GGUF f16 β `llama-quantize` Q8_0.
|
| 111 |
+
|
| 112 |
+
~318 hand-written rows across 18 categories, every row carrying a stated reason
|
| 113 |
+
for existing. A validator rejects any training row containing usable work
|
| 114 |
+
product, and the corpus is checked for template collapse, cross-category prompt
|
| 115 |
+
collisions, and stock-line concentration before every run.
|
| 116 |
+
|
| 117 |
+
Iterations are computed from corpus size (~6 epochs), not fixed. Checkpoints are
|
| 118 |
+
selected on behaviour, never on validation loss β **val loss was measured to be
|
| 119 |
+
anti-correlated with behaviour here**, with the lowest-loss run producing the
|
| 120 |
+
worst-behaving model.
|
| 121 |
+
|
| 122 |
+
## License
|
| 123 |
+
|
| 124 |
+
Apache 2.0, inherited from Qwen2.5-7B-Instruct.
|