Instructions to use acyildirimer/Qwen3.8-27B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use acyildirimer/Qwen3.8-27B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="acyildirimer/Qwen3.8-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("acyildirimer/Qwen3.8-27B-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("acyildirimer/Qwen3.8-27B-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 acyildirimer/Qwen3.8-27B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "acyildirimer/Qwen3.8-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": "acyildirimer/Qwen3.8-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/acyildirimer/Qwen3.8-27B-NVFP4
- SGLang
How to use acyildirimer/Qwen3.8-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 "acyildirimer/Qwen3.8-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": "acyildirimer/Qwen3.8-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 "acyildirimer/Qwen3.8-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": "acyildirimer/Qwen3.8-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 acyildirimer/Qwen3.8-27B-NVFP4 with Docker Model Runner:
docker model run hf.co/acyildirimer/Qwen3.8-27B-NVFP4
Qwen3.8-27B-NVFP4
Mixed-precision NVIDIA ModelOpt quantization of
Qwen/Qwen3.8-27B, pinned to upstream
revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0.
- MLP layers 0-55: W4A16 NVFP4, group size 16
- MLP layers 56-63: FP8 W8A8
lm_head: FP8 W8A8- Attention and large linear-attention projections: FP8 W8A8
- KV cache: FP8
- Vision tower: preserved in BF16
- MTP head: preserved in BF16
The checkpoint was quantized with NVIDIA ModelOpt 0.45.0. Calibration used 1,024 fully populated 512-token rows from the deterministic version-5 corpus, covering instruction following, science, code, function calling, web search, math, software engineering, multilingual data, and natural text.
On tool-eval-bench v2.2.0 with vLLM 0.27.1, temperature 0, seed 42, and all
69 scenarios, this checkpoint scored 125/138 (91/100). It failed the benchmark's
TC-34 and TC-58 prompt-injection checks; deployment should apply independent
tool authorization and untrusted-content defenses.
Use a runtime that supports mixed ModelOpt W4A16 NVFP4 + FP8 checkpoints. See the upstream model card for capabilities and limitations.
vLLM
Text only
vllm serve acyildirimer/Qwen3.8-27B-NVFP4 \
--quantization modelopt \
--max-model-len auto \
--kv-cache-dtype fp8 \
--gpu-memory-utilization 0.95 \
--enable-chunked-prefill \
--enable-prefix-caching \
--performance-mode interactivity \
--language-model-only \
--attention-backend auto \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--generation-config auto \
--override-generation-config \
'{"temperature":1.0,"top_p":0.95,"top_k":20,"min_p":0.0,"presence_penalty":0.0,"repetition_penalty":1.0}' \
--tool-call-parser qwen3_coder
Text only with MTP
vllm serve acyildirimer/Qwen3.8-27B-NVFP4 \
--quantization modelopt \
--max-model-len auto \
--kv-cache-dtype fp8 \
--gpu-memory-utilization 0.92 \
--enable-chunked-prefill \
--enable-prefix-caching \
--performance-mode interactivity \
--language-model-only \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 2}' \
--attention-backend auto \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--generation-config auto \
--override-generation-config \
'{"temperature":1.0,"top_p":0.95,"top_k":20,"min_p":0.0,"presence_penalty":0.0,"repetition_penalty":1.0}' \
--tool-call-parser qwen3_coder
Text, MTP, and vision
vllm serve acyildirimer/Qwen3.8-27B-NVFP4 \
--quantization modelopt \
--max-model-len auto \
--kv-cache-dtype fp8 \
--gpu-memory-utilization 0.91 \
--enable-chunked-prefill \
--enable-prefix-caching \
--performance-mode interactivity \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 2}' \
--attention-backend auto \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--generation-config auto \
--override-generation-config \
'{"temperature":1.0,"top_p":0.95,"top_k":20,"min_p":0.0,"presence_penalty":0.0,"repetition_penalty":1.0}' \
--tool-call-parser qwen3_coder
Check Avg Draft acceptance rate in the vLLM logs to confirm MTP speculative
decoding is effective for the deployed workload.
- Downloads last month
- 57
Model tree for acyildirimer/Qwen3.8-27B-NVFP4
Base model
Qwen/Qwen3.8-27B