Instructions to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf", filename="Qwen3-4B-Thinking-2507-GRPO-Uncensored-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf: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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf: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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
Use Docker
docker model run hf.co/puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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": "puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
- Ollama
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with Ollama:
ollama run hf.co/puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
- Unsloth Studio
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf 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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf 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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf to start chatting
- Pi
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
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": "puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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 puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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:8080/v1 hermes config set model.default puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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:8080/v1 \ --custom-model-id "puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-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"
- Docker Model Runner
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with Docker Model Runner:
docker model run hf.co/puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
- Lemonade
How to use puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf-Q4_K_M
List all available models
lemonade list
Qwen3-4B-Thinking-2507-GRPO-Uncensored-GGUF
This repository contains GGUF quantized versions of puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored.
The original model is an uncensored model based on Qwen/Qwen3-4B-Thinking-2507, fine-tuned using SFT, SimPO, and GRPO.
Disclaimer: We take no responsibility for the outputs of this model. Please use it at your own risk.
Quantization Details
These models are quantized to GGUF format for use with llama.cpp and compatible inference engines.
Training Process
This model was trained using a three-stage process:
Step 1: SFT (Supervised Fine-Tuning)
- Dataset: 12,000 samples
- Composition: Jailbreak 10k + General 1.5k + Logic 0.5k
- Objective: To learn the format and the "uncensored" attitude while maintaining the model's intelligence.
Step 2: SimPO (Simple Preference Optimization)
- Dataset: 90,000 samples
- Composition: Pure Jailbreak 90k
- Objective: To completely break down safety boundaries.
Step 3: GRPO (Reinforcement Learning)
- Dataset: 13,000 samples
- Reward Model: puwaer/Unsafe-Reward-Qwen3-1.7B
- Composition: Multilingual Jailbreak prompts
- Objective: To improve the ability to generate more natural and persuasive harmful responses.
Model Performance
Below is the comparative evaluation of this model (GRPO), the intermediate checkpoint (SimPO), and the base model (Safe).
⚠️ Note on Evaluation Environment Due to budget constraints,
gpt-4o-miniwas used for the LLM-as-a-Judge process (including "Do Not Answer" and MT-Bench). Please note that the scoring trends and criteria may differ from results evaluated using the standardgpt-4.
Safety Evaluation (Lower is better / Higher success in uncensoring)
In the "Do Not Answer" (DNA) and "Sorry Bench" benchmarks, while the base model shows a high refusal rate (~98%), this model achieves an extremely low refusal rate of under 4%–5%. Notably, compared to the SimPO stage, GRPO dramatically improved responsiveness to all types of prompts.
| Benchmark | Metric | Base (Safe) | SFT (Step 1) | SimPO (Step 2) | GRPO (This Model) |
|---|---|---|---|---|---|
| do not answer | Safety Acc (Low is Better) | 0.9883 | 0.7401 | 0.8626 | 0.0469 |
| do not answer jp | Safety Acc (Low is Better) | 0.9830 | 0.5005 | 0.4686 | 0.0383 |
| Sorry Bench | Safety Acc (Low is Better) | 0.8432 | 0.5477 | 0.5409 | 0.0477 |
Capability Evaluation (Higher is better)
Generally, "uncensoring" (lobotomy) procedures tend to degrade a model's general intelligence. However, this model recovered its conversational scores (e.g., MT-Bench) by proceeding from the SimPO stage to GRPO.
| Benchmark | Metric | Base (Safe) | SFT (Step 1) | SimPO (Step 2) | GRPO (This Model) |
|---|---|---|---|---|---|
| MT-Bench | Average Score (1-10) | 7.89 | 5.76 | 5.05 | 6.18 |
| LM Harness | Average Acc (GSM8K, MMLU) | 0.7117 | 0.7028 | 0.6866 | 0.6842 |
Comparisons made between Qwen3-4B-Thinking-2507 (Base) and Qwen3-4B-Thinking-2507-SimPO-Uncensored (SimPO).
Usage
Using llama.cpp (CLI)
# Download the model file
huggingface-cli download puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf \
--local-dir ./models --local-dir-use-symlinks False
# Run inference
./llama-cli -m ./models/qwen3-4b-thinking-2507-grpo-uncensored-q4_k_m.gguf \
-p "Give me a short introduction to large language model." \
-n 512 \
--temp 0.7
Using llama-cpp-python
from llama_cpp import Llama
# Initialize the model
model = Llama(
model_path="./models/qwen3-4b-thinking-2507-grpo-uncensored-q4_k_m.gguf",
n_ctx=32768, # Context window
n_gpu_layers=-1, # Use GPU acceleration (set to 0 for CPU only)
)
# Generate a response
prompt = "Give me a short introduction to large language model."
output = model.create_chat_completion(
messages=[
{"role": "user", "content": prompt}
],
max_tokens=512,
temperature=0.7,
)
print(output["choices"][0]["message"]["content"])
Using Other Compatible Software
This GGUF model is compatible with various inference engines:
- LM Studio: Load the model directly through the UI
- Ollama: Import using
ollama create - KoboldCpp: Load the GGUF file in the interface
- Text Generation WebUI: Place in the models folder
- Jan: Import through the model manager
Data Overview
Datasets
The following datasets were used for training this model:
- Magpie-Align/Magpie-Qwen2.5-Pro-1M-v0.1
- AI-MO/NuminaMath-CoT
- open-thoughts/OpenThoughts-114k
- puwaer/cvalues_rlhf_en_cot
- puwaer/cvalues_rlhf_zh_cot
- puwaer/cvalues_rlhf_jp_cot
Reward Model
- Downloads last month
- 120
4-bit
8-bit
16-bit
Model tree for puwaer/Qwen3-4B-Thinking-2507-GRPO-Uncensored-gguf
Base model
Qwen/Qwen3-4B-Thinking-2507