Thinking
Qwen3 defaults, best for reasoning and hard prompts.
- temperature
- 0.6
- top_p
- 0.95
- top_k
- 20
- min_p
- 0.0
Hugging Face · model demo
A QLoRA finetune of Qwen3-32B trained on Guilherme34/uncensor to drop the refusals. 32.8B parameters, Apache-2.0, no alignment layer bolted on top.
The model card calls the system prompt below mandatory — the finetune behaves
noticeably differently without it. Edit it, add a turn, and copy the exact
<|im_start|> string for your own client.
Qwen3 writes a reasoning block before the answer. Turn it off for faster, direct replies.
Rendered by Qwen3’s chat template. With thinking disabled the template still appends an empty reasoning block before the assistant header — that is expected.
Starting points, not gospel — the model is happy well outside these ranges.
Qwen3 defaults, best for reasoning and hard prompts.
Non-thinking mode: lower temp, tighter nucleus.
Prose and roleplay: looser nucleus, small repetition penalty.
Needs ~20 GB of VRAM at 4-bit, or CPU/GGUF if you are patient.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
model_id = "nicoboss/Qwen3-32B-Uncensored"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
quantization_config=BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.bfloat16,
),
device_map="auto",
)
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": "Your question here"},
]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
out = model.generate(
inputs, max_new_tokens=768, do_sample=True,
temperature=0.7, top_p=0.95, top_k=20,
)
print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))
# 19.8 GB download, runs on a single 24 GB card at Q4_K_M
pip install llama-cpp-python
llama-cli -hf mradermacher/Qwen3-32B-Uncensored-GGUF:Q4_K_M \
--jinja -c 8192 -ngl 99 -cnv \
--system "$(cat demo/dolfino-system-prompt.txt)"
# or point it at a local file
llama-cli -m Qwen3-32B-Uncensored.Q4_K_M.gguf --jinja -c 8192 -ngl 99 -cnv
vllm serve nicoboss/Qwen3-32B-Uncensored \
--max-model-len 8192 \
--gpu-memory-utilization 0.95
# then talk to it with any OpenAI client
curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "nicoboss/Qwen3-32B-Uncensored",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
A free CPU Space cannot hold a 32B model. The recipe is a Gradio Space on ZeroGPU with the weights mounted read-only and quantized to 4-bit on load.
# 1. create the Space (ZeroGPU needs a 30-day-old account or PRO)
hf repo create --repo-type space --space-sdk gradio you/qwen3-32b-demo
# 2. drop in app.py and requirements.txt, then push
hf upload you/qwen3-32b-demo demo/app.py app.py
hf upload you/qwen3-32b-demo demo/requirements.txt requirements.txt
# 3. mount the weights and ask for the GPU
python -c "
from huggingface_hub import HfApi, Volume, SpaceHardware
api = HfApi()
api.set_space_volumes('you/qwen3-32b-demo', [Volume(
type='model', source='nicoboss/Qwen3-32B-Uncensored',
mount_path='/models/qwen3-32b-uncensored', read_only=True)])
api.request_space_hardware('you/qwen3-32b-demo', SpaceHardware.ZERO_A10G)
"