Instructions to use lkk688/Qwen3.6-27B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lkk688/Qwen3.6-27B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="lkk688/Qwen3.6-27B-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("lkk688/Qwen3.6-27B-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("lkk688/Qwen3.6-27B-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?"} ] }, ] 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 lkk688/Qwen3.6-27B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lkk688/Qwen3.6-27B-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": "lkk688/Qwen3.6-27B-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/lkk688/Qwen3.6-27B-NVFP4
- SGLang
How to use lkk688/Qwen3.6-27B-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 "lkk688/Qwen3.6-27B-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": "lkk688/Qwen3.6-27B-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 "lkk688/Qwen3.6-27B-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": "lkk688/Qwen3.6-27B-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 lkk688/Qwen3.6-27B-NVFP4 with Docker Model Runner:
docker model run hf.co/lkk688/Qwen3.6-27B-NVFP4
Qwen3.6-27B-NVFP4
This repository provides a ModelOpt-exported NVFP4 checkpoint derived from Qwen/Qwen3.6-27B.
What this repo contains
This repo includes:
- ModelOpt NVFP4 quantized weights
hf_quant_config.jsonconfig.json- tokenizer files
- chat template files
The checkpoint is intended for deployment with runtimes that support ModelOpt-style FP4 / NVFP4 model loading.
Quantization summary
- Base model:
Qwen/Qwen3.6-27B - Quantization format:
NVFP4 - KV cache:
FP8 - Export style: Unified Hugging Face checkpoint
- Primary target runtime: vLLM / compatible ModelOpt FP4 loaders
Conversion notes
This checkpoint was produced after testing multiple export strategies.
A direct default NVFP4 export path produced structurally inconsistent checkpoints for this model family.
The working export used a more conservative recipe closer to MLP-only NVFP4 with FP8 KV cache, which preserved deployment correctness and passed basic reasoning / tool-calling / smoke evaluations.
Validation summary
Basic validation completed successfully for:
- short-answer generation
- reasoning on/off behavior
- streaming / non-streaming behavior
- tool-call parsing
- JSON smoke tests
- basic code-generation smoke tests
Observed caveat:
- Some long reasoning prompts may consume a large reasoning budget before producing the final answer, so higher output-token limits may be needed for long-chain reasoning tasks.
Example deployment (vLLM)
docker run -d \
--name qwen36-nvfp4 \
--gpus '"device=0"' \
--ipc=host \
--network=host \
--restart unless-stopped \
-v /path/to/this/repo:/model \
vllm/vllm-openai:cu130-nightly \
/model \
--served-model-name qwen3.6-27b-nvfp4 \
--quantization modelopt_fp4 \
--tensor-parallel-size 1 \
--gpu-memory-utilization 0.90 \
--max-model-len 32768 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder \
--language-model-only \
--port 8000
Example test request:
curl -s http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.6-27b-nvfp4",
"messages": [{"role":"user","content":"Hello. Please answer only: test successful."}],
"chat_template_kwargs": {"enable_thinking": false},
"max_tokens": 64,
"temperature": 0.0
}'
Acknowledgements
Base model: Qwen/Qwen3.6-27B Quantization / export workflow: NVIDIA Model Optimizer ecosystem
- Downloads last month
- 6
Model tree for lkk688/Qwen3.6-27B-NVFP4
Base model
Qwen/Qwen3.6-27B