Instructions to use philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ") model = AutoModelForMultimodalLM.from_pretrained("philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ
- SGLang
How to use philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ with Docker Model Runner:
docker model run hf.co/philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ
Qwen3.6 40B DeckardUncensored OpusDistilled W4A16 AWQ
40B Opus-distilled uncensored — the high-ceiling tier for creative + coding.
Part of the Deckard-40B Uncensored collection — abliterated (Heretic) Qwen3.6 vision-language models served on Tesla V100 via 1Cat-vLLM.
What this is
W4A16-AWQ — 4-bit weight-only (AWQ, compressed-tensors), FP16 activations. Runs on 1Cat-vLLM's SM70 TurboMind path (Tesla V100) and on stock vLLM (Ampere+).
Base model: DavidAU/Qwen3.6-40B-Claude-4.6-Opus-Deckard-Heretic-Uncensored-Thinking
Serving
# 1Cat-vLLM on 2x Tesla V100 (SM70): W4A16-AWQ + MTP. (Also runs on stock vLLM, Ampere+.)
export VLLM_SM70_FLASH_ATTN_V100=1 VLLM_SM70_QUANT_BACKEND=turbomind
python -m vllm.entrypoints.openai.api_server \
--model philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ --trust-remote-code --dtype half \
--attention-backend FLASH_ATTN_V100 --tensor-parallel-size 2 \
--kv-cache-dtype fp8_e5m2 --max-num-seqs 6 \
--speculative-config '{"method":"mtp","num_speculative_tokens":4,"attention_backend":"FLASH_ATTN_V100","draft_sample_method":"greedy"}' \
--compilation-config '{"cudagraph_mode":"full_and_piecewise","cudagraph_capture_sizes":[1,2,4,8]}'
Variants
See the Deckard-40B Uncensored collection for all tiers and formats (BF16 / W4A16-AWQ / NVFP4).
Abliteration removes safety refusals; you are responsible for lawful, ethical use.
Changelog
- 2026-08-15 — tokenizer fix.
tokenizer.json/tokenizer_config.jsonwere re-serialized by the llm-compressor calibration run and shipped with an activetruncationblock (max_length1024/2048) plus a drifted pre-tokenizer regex (and, on the Qwen3.6-based repos, 7 phantom audio/TTS special tokens the base model does not define). That broke image inputs larger than the limit under transformers 5 / vLLM (Mismatch in image token count, surfacing as an HTTP 400Failed to apply Qwen3VLProcessor). Both files are now byte-identical to the upstream base model's (vocab/merges/added tokens were always identical — this is a metadata-only restore). If you downloaded before this date, re-fetch those two files. Thanks to @elBuffo for the report.
- Downloads last month
- 924
Model tree for philbert440/Qwen3.6-40B-DeckardUncensored-OpusDistilled-W4A16-AWQ
Base model
Qwen/Qwen3.6-27B