Image-Text-to-Text
Transformers
Safetensors
qwen3_5_moe
qwen3.6
qwen
nvfp4
vision-language
vllm
blackwell
Mixture of Experts
conversational
8-bit precision
compressed-tensors
Instructions to use NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="NeuralNet-Hub/Qwen3.6-35B-A3B-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("NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("NeuralNet-Hub/Qwen3.6-35B-A3B-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 NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeuralNet-Hub/Qwen3.6-35B-A3B-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": "NeuralNet-Hub/Qwen3.6-35B-A3B-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/NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4
- SGLang
How to use NeuralNet-Hub/Qwen3.6-35B-A3B-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 "NeuralNet-Hub/Qwen3.6-35B-A3B-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": "NeuralNet-Hub/Qwen3.6-35B-A3B-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 "NeuralNet-Hub/Qwen3.6-35B-A3B-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": "NeuralNet-Hub/Qwen3.6-35B-A3B-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 NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4 with Docker Model Runner:
docker model run hf.co/NeuralNet-Hub/Qwen3.6-35B-A3B-NVFP4
Upload folder using huggingface_hub
Browse files- config.json +1 -1
- generation_config.json +1 -1
- model.safetensors +2 -2
- model.safetensors.index.json +2 -2
- processor_config.json +4 -1
config.json
CHANGED
|
@@ -488,7 +488,7 @@
|
|
| 488 |
"vocab_size": 248320
|
| 489 |
},
|
| 490 |
"tie_word_embeddings": false,
|
| 491 |
-
"transformers_version": "5.
|
| 492 |
"video_token_id": 248057,
|
| 493 |
"vision_config": {
|
| 494 |
"deepstack_visual_indexes": [],
|
|
|
|
| 488 |
"vocab_size": 248320
|
| 489 |
},
|
| 490 |
"tie_word_embeddings": false,
|
| 491 |
+
"transformers_version": "5.3.0",
|
| 492 |
"video_token_id": 248057,
|
| 493 |
"vision_config": {
|
| 494 |
"deepstack_visual_indexes": [],
|
generation_config.json
CHANGED
|
@@ -9,5 +9,5 @@
|
|
| 9 |
"temperature": 1.0,
|
| 10 |
"top_k": 20,
|
| 11 |
"top_p": 0.95,
|
| 12 |
-
"transformers_version": "5.
|
| 13 |
}
|
|
|
|
| 9 |
"temperature": 1.0,
|
| 10 |
"top_k": 20,
|
| 11 |
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "5.3.0"
|
| 13 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ced3e4d79ab24e23b9a535bd727e903f9865995f55ae7a4fd4e88f1a8da7bcb9
|
| 3 |
+
size 23354237448
|
model.safetensors.index.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0e728399255380e4f4169f3f07c5c9e7e755e908f089f04e93864b2ade7785f
|
| 3 |
+
size 12432607
|
processor_config.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"image_processor": {
|
|
|
|
| 3 |
"do_convert_rgb": true,
|
| 4 |
"do_normalize": true,
|
| 5 |
"do_rescale": true,
|
|
@@ -9,7 +10,7 @@
|
|
| 9 |
0.5,
|
| 10 |
0.5
|
| 11 |
],
|
| 12 |
-
"image_processor_type": "
|
| 13 |
"image_std": [
|
| 14 |
0.5,
|
| 15 |
0.5,
|
|
@@ -27,6 +28,8 @@
|
|
| 27 |
},
|
| 28 |
"processor_class": "Qwen3VLProcessor",
|
| 29 |
"video_processor": {
|
|
|
|
|
|
|
| 30 |
"do_convert_rgb": true,
|
| 31 |
"do_normalize": true,
|
| 32 |
"do_rescale": true,
|
|
|
|
| 1 |
{
|
| 2 |
"image_processor": {
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
"do_convert_rgb": true,
|
| 5 |
"do_normalize": true,
|
| 6 |
"do_rescale": true,
|
|
|
|
| 10 |
0.5,
|
| 11 |
0.5
|
| 12 |
],
|
| 13 |
+
"image_processor_type": "Qwen2VLImageProcessorFast",
|
| 14 |
"image_std": [
|
| 15 |
0.5,
|
| 16 |
0.5,
|
|
|
|
| 28 |
},
|
| 29 |
"processor_class": "Qwen3VLProcessor",
|
| 30 |
"video_processor": {
|
| 31 |
+
"data_format": "channels_first",
|
| 32 |
+
"default_to_square": true,
|
| 33 |
"do_convert_rgb": true,
|
| 34 |
"do_normalize": true,
|
| 35 |
"do_rescale": true,
|