Instructions to use zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4") 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("zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4", 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]:])) - TensorRT
How to use zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4", "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/zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4
- SGLang
How to use zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 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 "zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4" \ --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": "zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4", "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 "zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4" \ --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": "zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4", "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 zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 with Docker Model Runner:
docker model run hf.co/zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4
Qwen3.8-27B-Dominatrix-abliterated — MTP-NVFP4 (DFlash 2 compatible)
Mixed-precision NVFP4/FP8 PTQ of zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated — allura-org's Dominatrix roleplay finetune with huihui-ai's refusal direction projected out.
23 GB, built with NVIDIA TensorRT Model Optimizer for Blackwell (SM120) inference in SGLang or vLLM.
The distinguishing feature: lm_head is left dense BF16, which is a hard requirement for
DFlash 2 speculative decoding. Most ModelOpt NVFP4 exports of this architecture quantize
lm_head and therefore cannot run DFlash 2 at all. Cost of the dense head is ~1.9 GB of
VRAM over a packed one.
Quantization layout
| component | precision |
|---|---|
MLP gate_proj / up_proj / down_proj |
NVFP4 W4A4 |
self_attn q/k/v/o, linear_attn projections |
FP8 e4m3 |
| KV cache | FP8 |
lm_head |
BF16, dense |
embed_tokens, MTP head, vision tower |
BF16 |
Export format is ModelOpt MIXED_PRECISION with a per-layer map in hf_quant_config.json.
Calibrated on in-domain ChatML roleplay text rather than a generic news corpus.
hf_quant_config.jsonrecordsproducer.version: 0.0.0because it was built from an editable install. That field is not meaningful provenance.
Serving
SGLang with DFlash 2
Requires the z-lab/Qwen3.8-27B-DFlash2 drafter and an SGLang build including PR #35371.
sglang serve \
--trust-remote-code \
--model-path /models/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4 \
--mem-fraction-static 0.70 \
--attention-backend flashinfer \
--chunked-prefill-size 2048 \
--reasoning-parser qwen3 \
--speculative-algorithm DFLASH \
--speculative-draft-model-path /models/Qwen3.8-27B-DFlash2-zlab \
--speculative-dflash-block-size 8 \
--speculative-draft-model-quantization unquant
--kv-cache-dtype can be omitted: this checkpoint declares kv_cache_quant_algo: FP8, so
SGLang's auto resolves it.
Without speculative decoding
Drop the four --speculative-* flags. The dense lm_head buys nothing in that configuration
but is otherwise harmless.
MTP
The mtp.* tensors survive the quant in BF16, so MTP speculation remains available as an
alternative drafter. Pick one — MTP or DFlash 2, not both.
Hardware
NVFP4 requires Blackwell (SM120+) for native FP4 tensor-core execution. Built and tested on an RTX PRO 6000 Blackwell. Weights are ~23 GB, leaving room for a long-context KV cache and the 2B DFlash 2 drafter.
Quality
Fidelity of the underlying BF16 abliteration versus stock Dominatrix is summarised on the BF16 card.
The quantization error of this build has not been measured. Treat it as unquantified.
Leaving lm_head dense should help, since the output projection is among the most
quantization-sensitive layers, but that is reasoning, not a measurement.
Sampler guidance from upstream Dominatrix carries over: temperature 1.0–1.25 with min_p 0.1 or top_p 0.95; some prefer 0.7 and nothing else.
- Downloads last month
- 18
Model tree for zebulon-prime/Qwen3.8-27B-Dominatrix-abliterated-MTP-NVFP4
Base model
Qwen/Qwen3.8-27B