Instructions to use Inferact/Qwen3.8-27B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Inferact/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="Inferact/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("Inferact/Qwen3.8-27B-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("Inferact/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 Inferact/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 "Inferact/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": "Inferact/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/Inferact/Qwen3.8-27B-NVFP4
- SGLang
How to use Inferact/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 "Inferact/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": "Inferact/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 "Inferact/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": "Inferact/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 Inferact/Qwen3.8-27B-NVFP4 with Docker Model Runner:
docker model run hf.co/Inferact/Qwen3.8-27B-NVFP4
unsloth/Qwen3.8-27B-NVFP4 vs. Inferact/Qwen3.8-27B-NVFP4?
Let's gather everyone's experiences/benchmarks here.
I've not tested in a lighter harness, but in both hermes and oh-my-pi, when expected to take action, this model very easily get's caught in a thinking loop. Enough context is gathered, but the model continues to rehearse what should be done, but never takes action. Not always mitigated by medium setting.
I suspect the quantization method is at fault. I've not seen this behavior with 3.6 27B or any other model larger than 12B. Reasoning remains coherent but tasks where there is the potential for mistakes cause inaction. These tasks were in the feature engineering and Linux system admin domains.
I've not tested in a lighter harness, but in both
hermesandoh-my-pi, when expected to take action, this model very easily get's caught in a thinking loop. Enough context is gathered, but the model continues to rehearse what should be done, but never takes action. Not always mitigated bymediumsetting.I suspect the quantization method is at fault. I've not seen this behavior with 3.6 27B or any other model larger than 12B. Reasoning remains coherent but tasks where there is the potential for mistakes cause inaction. These tasks were in the feature engineering and Linux system admin domains.
I experienced the same issue. But, it decides to do what it needs to do, and does it, eventually. ๐
FYI, This happens to me even with the official FP8 quant from Qwen team.
Sometimes it loops tool calls, sometimes it swaps tool names with skill script names, sometimes it generates gibberish thinking traces with characters from various languages.
FYI, This happens to me even with the official FP8 quant from Qwen team.
Sometimes it loops tool calls, sometimes it swaps tool names with skill script names, sometimes it generates gibberish thinking traces with characters from various languages.
Have you experienced this with the fp16 weights?
I experienced the same. I also tried different combinations of changing repetition penalty and presence penalty on top of changing the chat template Jinja file. No luck. Unsloth version is the same.
I have not reattempted with nvfp4, but fp8 seems to be highly sensitive to the generation config. Whatever Qwen shipped is not their own recommended config for thinking mode.
What engines are you all using? I've only tried vLLM + MTP. I'm going to try SGLang + DSpark as I've seen some posts mentioning success with NVFP4.
Anecdotally, reasoning seems to reflect a very detailed world model and an intricate self-verification. Absurdly long reasoning traces might be a signature with this model, but unlike past releases the final output is successful. Outdated information and nuance seem to be the trigger for loops. For example, the model completely adjudicated whether to comply with my request because of a linux kernel feature added in version 5.
