Image-Text-to-Text
Transformers
Safetensors
qwen3_5
paroquant
mxfp6
w6a8
rocm
rdna4
vllm
quantized
conversational
6-bit
paroquant_mxfp6
Instructions to use hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6") 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("hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6") model = AutoModelForMultimodalLM.from_pretrained("hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6", 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 hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6", "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/hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6
- SGLang
How to use hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6 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 "hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6" \ --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": "hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6", "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 "hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6" \ --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": "hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6", "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 hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6 with Docker Model Runner:
docker model run hf.co/hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6
File size: 3,463 Bytes
d132d56 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | Swift-Qwen3.8-27B
Copyright 2026 UkisAI
UkisAI's contribution (the "Swift Contribution") is licensed under the
Swift Open License v1.0. See LICENSE.
This model is a Derivative Work of Qwen3.8-27B
https://huggingface.co/Qwen/Qwen3.8-27B
Copyright 2026 Alibaba Cloud
Licensed under the Apache License, Version 2.0. See LICENSE-APACHE-2.0.
Changes made by UkisAI (Apache License 2.0, Section 4(b) change notice):
- model-*.safetensors, model.safetensors.index.json: model weights were
fine-tuned by UkisAI (LoRA adapter trained by UkisAI and merged into the
Base Model weights).
- generation_config.json: added "min_p": 0 and "repetition_penalty": 1.0.
- README.md: replaced. ukisai-banner.png and swift-speed-demo.mp4 added.
- All other files (config.json, chat_template.jinja, tokenizer.json,
tokenizer_config.json, vocab.json, merges.txt, preprocessor_config.json,
video_preprocessor_config.json) are unmodified from Qwen3.8-27B and
remain under the Apache License, Version 2.0.
------------------------------------------------------------------------------
The notice above is reproduced unchanged from ukisai/Swift-Qwen3.8-27b.
What follows is an additional attribution and change notice for this
repository. It does not modify the Swift Open License v1.0 or the Apache
License, Version 2.0.
------------------------------------------------------------------------------
Swift-Qwen3.8-27B-PARO-MXFP6
https://huggingface.co/hugypufy/Swift-Qwen3.8-27B-PARO-MXFP6
Copyright 2026 UkisAI. Swift Contribution licensed under the Swift Open
License v1.0 (https://huggingface.co/ukisai/Swift-Qwen3.8-27b/blob/main/LICENSE).
Derivative of Qwen3.8-27B, Copyright 2026 Alibaba Cloud, Apache License 2.0.
This repository is a quantized Derivative Work of Swift-Qwen3.8-27B
https://huggingface.co/ukisai/Swift-Qwen3.8-27b
made by hugypufy. It is not made, reviewed or endorsed by UkisAI, by
Alibaba Cloud, or by z-lab.
It incorporates rotation tensors from z-lab/Qwen3.8-27B-PARO
https://huggingface.co/z-lab/Qwen3.8-27B-PARO
Licensed under the Apache License, Version 2.0. See LICENSE-APACHE-2.0.
Changes made by hugypufy, 2026-09-16 (Swift Open License v1.0 Section 4(b);
Apache License 2.0 Section 4(b)):
- model-*.safetensors, model.safetensors.index.json: replaced with new
weights (same 18-shard layout).
* The 400 linear projections of the 64 decoder layers were rotated with
the ParoQuant rotations of z-lab/Qwen3.8-27B-PARO and quantized to
OCP MXFP6 E2M3 elements with e8m0 scales per 32 weights. The weights
and block exponents were then fine-tuned layer by layer under that
grid, with the rotations frozen, and exported as 6-bit codes.
* The rotation tensors (theta, pairs, channel_scales) are copied
unchanged from z-lab/Qwen3.8-27B-PARO.
* All other floating-point tensors were converted from bfloat16 to
float16.
* The MTP head tensors (mtp.*) were removed.
- config.json: "quantization_config" added. Otherwise unmodified.
- README.md: replaced.
- NOTICE: this addendum appended.
- chat_template.jinja, generation_config.json, tokenizer.json,
tokenizer_config.json, vocab.json, merges.txt, preprocessor_config.json and
video_preprocessor_config.json are byte-identical to Swift-Qwen3.8-27B.
LICENSE and LICENSE-APACHE-2.0 are unmodified copies.
- ukisai-banner.png and swift-speed-demo.mp4 are not included.
|