Instructions to use amd/Qwen3.8-Flash-Next-Quark-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amd/Qwen3.8-Flash-Next-Quark-MXFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="amd/Qwen3.8-Flash-Next-Quark-MXFP4") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("amd/Qwen3.8-Flash-Next-Quark-MXFP4") model = AutoModelForMultimodalLM.from_pretrained("amd/Qwen3.8-Flash-Next-Quark-MXFP4", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amd/Qwen3.8-Flash-Next-Quark-MXFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amd/Qwen3.8-Flash-Next-Quark-MXFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amd/Qwen3.8-Flash-Next-Quark-MXFP4", "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/amd/Qwen3.8-Flash-Next-Quark-MXFP4
- SGLang
How to use amd/Qwen3.8-Flash-Next-Quark-MXFP4 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 "amd/Qwen3.8-Flash-Next-Quark-MXFP4" \ --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": "amd/Qwen3.8-Flash-Next-Quark-MXFP4", "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 "amd/Qwen3.8-Flash-Next-Quark-MXFP4" \ --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": "amd/Qwen3.8-Flash-Next-Quark-MXFP4", "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 amd/Qwen3.8-Flash-Next-Quark-MXFP4 with Docker Model Runner:
docker model run hf.co/amd/Qwen3.8-Flash-Next-Quark-MXFP4
Commit History
9 days ago
-
Update README.md
Verified signature0024086
22 days ago
-
Fix MMMU-Pro dataset format in evaluation commands (#5)
- Fix MMMU-Pro dataset format in evaluation commands (c3f7d4207891d943623f69efd8f9586f825c2a9d)b71e28a
25 days ago
-
Update README.md
Verified signature79909fc
26 days ago
-
[doc] Use <YOUR_SUBSCRIPTION_KEY> placeholder instead of <AMD_SUBSCRIPTION_KEY> (#4)
- [doc] Use <YOUR_SUBSCRIPTION_KEY> placeholder instead of <AMD_SUBSCRIPTION_KEY> (ee5f5bf07f09f4b8edb476c7d7d2c672a035b26d)aac47a8 -
Update README: add comprehensive evaluation results (GPQA, AIME26, MMMU Pro, SciCode, AA-LCR, IFBench) and model serving section (#3)
- Update README: add comprehensive evaluation results (GPQA, AIME26, MMMU Pro, SciCode, AA-LCR, IFBench) and model serving section (a9e3583bad8a3d618182dad2351d9a29f12374ca) - Fix script order: GSM8K first, matching table row order (d37d1141b0814a1ff5c8a70cab9ddfe8acbaf2a8) - Remove redundant top-level Model serving section; use new vLLM server for GSM8K (d5b73dcdc182ea45311e3120a6fcd1accb85398c) - Mention lm-evaluation-harness in Evaluation section intro (8bfc1ed84127f9ae7c1173969e7b114dd38d18fc) - Add Docker image and environment info to Reproduction section (4d1c4d7932f1c081e4f42b0f69564075db9dd559) - Move env info: vLLM version to Model Overview, EvalScope/SciCode sandbox to Reproduction intro (06f5a32fcd2c844419b32f4c5fdbaf5b8a63522b) - Move vLLM version from Model Overview to Reproduction section (eeabc8abf224e0bb2e6a467231eaa06505fc5355) - Remove specific vLLM version from Reproduction intro (a39dac4d75e5f45a2b28767729480ce862cf23d2)42090b8
-
fix: expand exclude for MTP experts + embed (#2)
- fix: expand exclude for MTP experts + embed (QUARK-1454) (4357862ac7632ef7005b8a41725595c45636af8a) Co-authored-by: linzhao <linzhao-amd@users.noreply.huggingface.co>89d2453 -
Update README.md
Verified signature12ff62e
-
Update README.md
Verified signatureb2091c3
-
Update README.md
Verified signature1b7c404 -
Update README.md
Verified signatured1b6b0f
-
Update README.md
Verified signaturef6113ea -
Update README.md
Verified signature287c09b -
Update README.md
Verified signaturef615e59 -
Update README.md
Verified signature1ad7d94 -
Update README.md
Verified signature8dfb0fd -
Upload LICENSE with huggingface_hub
Verified signaturee6fc9e1 -
Upload folder using huggingface_hub
Verified signature778d4d1 -
initial commit
Verified signaturef0f080f