Instructions to use ukisai/Swift1.5-Qwen3.8-Flash-Next with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ukisai/Swift1.5-Qwen3.8-Flash-Next with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ukisai/Swift1.5-Qwen3.8-Flash-Next") 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("ukisai/Swift1.5-Qwen3.8-Flash-Next") model = AutoModelForMultimodalLM.from_pretrained("ukisai/Swift1.5-Qwen3.8-Flash-Next", 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 ukisai/Swift1.5-Qwen3.8-Flash-Next with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ukisai/Swift1.5-Qwen3.8-Flash-Next" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ukisai/Swift1.5-Qwen3.8-Flash-Next", "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/ukisai/Swift1.5-Qwen3.8-Flash-Next
- SGLang
How to use ukisai/Swift1.5-Qwen3.8-Flash-Next 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 "ukisai/Swift1.5-Qwen3.8-Flash-Next" \ --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": "ukisai/Swift1.5-Qwen3.8-Flash-Next", "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 "ukisai/Swift1.5-Qwen3.8-Flash-Next" \ --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": "ukisai/Swift1.5-Qwen3.8-Flash-Next", "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 ukisai/Swift1.5-Qwen3.8-Flash-Next with Docker Model Runner:
docker model run hf.co/ukisai/Swift1.5-Qwen3.8-Flash-Next
First Look Results
Nice release, and the speedup is real. I ran Swift 1.5 against base Flash-Next at a matched quant and found three things worth passing along.
The base model's MTP head drafts for Swift just as well. With the base Flash-Next MTP sidecar (mtp-Qwen3.8-Flash-Next-shared-Q8_0.gguf, --spec-type draft-mtp, 3 draft tokens), acceptance was 0.729 on Swift vs 0.730 on base: 17.9 -> 25.5 tok/s (1.43x) on 4x P100. Since Swift ships with MTP off, that might be worth a line on the card.
The chat template in the GSQ-RCO IQ3_XXS GGUF differs from the base GGUFs. It has no developer role and doesn't merge system messages, and reasoning_effort "high" raises "Unexpected reasoning effort high" where the base template maps it to xhigh. For plain user prompts the rendered text is byte-identical, so it didn't affect the numbers below.
Calibration on questions that have no answer. Base = ISTA-DASLab's GSQ-RCO IQ3_XXS, the same allocation (1128 of 1224 tensors share type and shape; only the routers differ). Preregistered, same server flags and seeds.
Thinking off, 240 factual questions (100 about things that don't exist): Swift said UNKNOWN to 65 of the fake ones vs 74 for base (paired 95% CI -0.15 to -0.03). 10 items flipped from UNKNOWN to an invented answer, 1 the other way. Accuracy on real hard questions was identical (0.83).
xhigh, 16 short questions x 3 seeds: both refused 19/24 fake ones, but the base's misses were 5 runs past 12k tokens while Swift's were 4 invented answers and 1 runaway (e.g. "the SI unit of thermal permittivity", which doesn't exist -> "W/(m*K)"). Swift thought 0.35x as long on the fake questions and finished the set 4.5x faster.
So on this test the speed comes mostly from cutting runaways, and part of the price is answering where the base kept looking. Caveats: one quant tier, factual Q&A rather than the coding and agent work Swift targets, and small samples on the xhigh test.
Full numbers and method: https://github.com/apollo-mg/Project-Apollo/blob/main/data/receipts/viability/RESULT_SWIFT_FLASHNEXT.md
(Test designed and run with my agent, Claude; I reviewed it before posting.)