Instructions to use lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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("lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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": "lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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/lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4
- SGLang
How to use lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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 "lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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": "lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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 "lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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": "lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-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 lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 with Docker Model Runner:
docker model run hf.co/lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4
Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4
NVFP4 vLLM-first build of HauhauCS/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive, with MTP tensors from the official Qwen/Qwen3.6-27B checkpoint and the full visual tower preserved in floating point.
Lineage
| Component | Source |
|---|---|
| Text backbone | HauhauCS/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive |
| MTP weights | Qwen/Qwen3.6-27B |
| Visual tower | Qwen3.6-compatible visual tower preserved from the full conversion path |
| Quantization pipeline | li-yifei/gguf-to-nvfp4 |
Contents
- NVFP4 text backbone shards for vLLM compressed-tensors loading.
model-multimodal-extra.safetensorscontaining:333model.visual.*tensors for the visual tower.15mtp.*tensors for speculative decoding experiments.
- Runtime-compatible
model.safetensors.index.jsonwith no straymodel.language_model.visual.*entries.
Recommended vLLM Startup
Full multimodal profile:
VLLM_NVFP4_GEMM_BACKEND=marlin \
vllm serve /path/to/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 \
--host 0.0.0.0 \
--trust-remote-code \
--max-model-len 32768 \
--gpu-memory-utilization 0.92 \
--max-num-seqs 1 \
--max-num-batched-tokens 4096 \
--kv-cache-dtype fp8
Text-only long-context profile:
VLLM_NVFP4_GEMM_BACKEND=marlin \
vllm serve /path/to/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 \
--host 0.0.0.0 \
--trust-remote-code \
--language-model-only \
--max-model-len 131072 \
--gpu-memory-utilization 0.92 \
--max-num-seqs 1 \
--max-num-batched-tokens 4096 \
--kv-cache-dtype fp8
MTP speculative profile:
VLLM_NVFP4_GEMM_BACKEND=marlin \
vllm serve /path/to/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 \
--trust-remote-code \
--language-model-only \
--max-model-len 131072 \
--gpu-memory-utilization 0.92 \
--max-num-seqs 1 \
--max-num-batched-tokens 4096 \
--kv-cache-dtype fp8 \
--reasoning-parser qwen3 \
--speculative-config '{"method":"mtp","num_speculative_tokens":2}'
Agent-Safe Responses Template
For agent loops that use /v1/responses, the stock Qwen3.6 template may enter thinking mode by default and spend the whole output budget on reasoning. This repo includes an optional deployment template:
chat_template_responses_reasoning_switch.jinja
Recommended agent-safe startup:
VLLM_NVFP4_GEMM_BACKEND=marlin vllm serve /path/to/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4 --host 0.0.0.0 --trust-remote-code --language-model-only --chat-template chat_template_responses_reasoning_switch.jinja --max-model-len 131072 --gpu-memory-utilization 0.92 --max-num-seqs 1 --max-num-batched-tokens 4096 --kv-cache-dtype fp8
Behavior with this template:
/v1/responseswithoutreasoning: non-thinking by default; avoids hidden-reasoning leakage in agent loops./v1/responseswithreasoning: {"effort": "low|medium|high"}: opens Qwen thinking mode via the template variablereasoning_effort.- This does not patch vLLM. Requested thinking is emitted as normal output text unless you run a separate parser/wrapper path.
Validation Status
- Tested on RTX 5090 with
vllm/vllm-openai:cu130-nightly. VLLM_NVFP4_GEMM_BACKEND=marlinis validated for this fixed artifact across text-only, full multimodal, and MTP startup paths.flashinfer-cutlassalso works and may be preferable for throughput tuning on this RTX 5090.- Full multimodal startup succeeds with
Qwen3_5ForConditionalGeneration. - Visual loading no longer emits
Parameter visual.blocks... not found in params_dict. /v1/responsesimage input was tested successfully against a 1980x1160 PNG screenshot.- MTP tensors are included and startup has been validated with both
marlinandflashinfer-cutlass; acceptance and throughput depend on workload and vLLM tuning.
Notes
- The visual tower is intentionally not NVFP4-quantized; it is preserved separately in the multimodal extra shard.
- Qwen3.6 linear-attention layers such as
linear_attn.in_proj_a/linear_attn.in_proj_bremain BF16, so their non-64-aligned output dimensions do not enter the NVFP4 Marlin GEMM path. - For agentic long-context text serving on a single 5090, use
--language-model-onlyto avoid reserving vision-side memory. - Current vLLM Responses behavior may still expose Qwen thinking text depending on chat-template handling; applications should parse and post-process accordingly.
References
- Source finetune GGUF:
https://huggingface.co/HauhauCS/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive - Official base model:
https://huggingface.co/Qwen/Qwen3.6-27B - Conversion and quantization pipeline:
https://github.com/li-yifei/gguf-to-nvfp4 - vLLM deployment config for RTX 5090:
https://github.com/li-yifei/vllm-qwen3.6-nvfp4-5090
- Downloads last month
- 1,546
Model tree for lyf/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-NVFP4
Base model
Qwen/Qwen3.6-27B