Image-Text-to-Text
Transformers
Safetensors
qwen3_5
int4
w4a16
compressed-tensors
auto-round
vllm
qwen3
conversational
Instructions to use jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound") 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("jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound") model = AutoModelForMultimodalLM.from_pretrained("jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound", 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 jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound", "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/jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound
- SGLang
How to use jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound 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 "jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound" \ --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": "jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound", "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 "jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound" \ --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": "jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound", "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 jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound with Docker Model Runner:
docker model run hf.co/jamesbrunet/Swift-Qwen3.8-27b-W4A16-AutoRound
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- model-00001-of-00067.safetensors +3 -0
- model-00006-of-00067.safetensors +3 -0
- model-00010-of-00067.safetensors +3 -0
- model-00017-of-00067.safetensors +3 -0
- model-00022-of-00067.safetensors +3 -0
- model-00023-of-00067.safetensors +3 -0
- model-00024-of-00067.safetensors +3 -0
- model-00025-of-00067.safetensors +3 -0
- model-00028-of-00067.safetensors +3 -0
- model-00029-of-00067.safetensors +3 -0
- model-00032-of-00067.safetensors +3 -0
- model-00033-of-00067.safetensors +3 -0
- model-00035-of-00067.safetensors +3 -0
- model-00038-of-00067.safetensors +3 -0
- model-00039-of-00067.safetensors +3 -0
- model-00042-of-00067.safetensors +3 -0
- model-00043-of-00067.safetensors +3 -0
- model-00044-of-00067.safetensors +3 -0
- model-00048-of-00067.safetensors +3 -0
- model-00049-of-00067.safetensors +3 -0
- model-00052-of-00067.safetensors +3 -0
- model-00053-of-00067.safetensors +3 -0
- model-00054-of-00067.safetensors +3 -0
- model-00055-of-00067.safetensors +3 -0
- model-00058-of-00067.safetensors +3 -0
- model-00059-of-00067.safetensors +3 -0
- model-00061-of-00067.safetensors +3 -0
- tokenizer.json +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
model-00001-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed7dbfbf972fe232f8dee5996349ffdf5ad5310b07321849658fb544d2282ae3
|
| 3 |
+
size 198434584
|
model-00006-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b92c7e050a9a8ef198435e918cbab2cfddefdd275c5b4a1c1d7e90c0406ea1fa
|
| 3 |
+
size 198434584
|
model-00010-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dae8f78e24ad6177545d84ea885df51dd985ea77564b301e375c4f6877f63d1e
|
| 3 |
+
size 198434584
|
model-00017-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5114a84edd215a2ec506ca643da9d2605b4ee72f3219dc3bde6230bd134f363
|
| 3 |
+
size 198434616
|
model-00022-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4ff032395dd05732020f4229857e0f9b6402f501e13c6408572c51ad6646721
|
| 3 |
+
size 198434616
|
model-00023-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a68f820f378734b94a3989e9b2935f3bbfc5250aa45a88851529b1dca7168408
|
| 3 |
+
size 198434616
|
model-00024-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9144a4d9386532465799953ac3b8635ab79b662da775dd5d87b529c1e1898bfb
|
| 3 |
+
size 191963352
|
model-00025-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:832cf026d9cfe95cbadd52b77b9bbd665c4fb034dfde7a4a644b1ca9bdcffdef
|
| 3 |
+
size 198434616
|
model-00028-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7177ba1ee0024915aae51fc5aaf41443b3d820dd46407309d274e184b9f72ee1
|
| 3 |
+
size 191963352
|
model-00029-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c8bd808a9fb1cbd64283c495ce56e7998b20447be8a1be99a7d104d49d26650
|
| 3 |
+
size 198434616
|
model-00032-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:892bdc66736ef83ba140918363fc1220d62638a829dbf75d24aa5a06c0b7022e
|
| 3 |
+
size 191963352
|
model-00033-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d3f6cabdad31523e4ae708dffa81b9a6d0f5e6c67cfbbda7b72d866a851e799
|
| 3 |
+
size 198434616
|
model-00035-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50061cd204531458c90e144e2148104bec5cb9e3b862668f47bd9117dc4cd694
|
| 3 |
+
size 198434616
|
model-00038-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59aa7050f339ad880167206a95eaaeb7d6e9c03d42b4eea4da47eb93abe8db30
|
| 3 |
+
size 198434616
|
model-00039-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f1fde4d7ef66d9c24f4cb9ba32f7cd00a722ff2512ca90ebcde263ea3360f1d
|
| 3 |
+
size 198434616
|
model-00042-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a13556bffbe89b36078301948abc2406759a8d35e2156190a520d63bdc4dfc5
|
| 3 |
+
size 198434616
|
model-00043-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3798e8c84b7ce44c5f31113f26702a27e06e2228229ab7a8019cc42500cafb4c
|
| 3 |
+
size 198434616
|
model-00044-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd8b72c7613b718eebe792d8afb346bac88c460b2316361b970b78c0cde0fd11
|
| 3 |
+
size 191963352
|
model-00048-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2330b32c1c78a28fa5e750a1c0229cbb0905eb16cf2f857bff5b0edaa3afe889
|
| 3 |
+
size 191963352
|
model-00049-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fbe20bd808a6820f19065bea5b4a0385e2f13eea7a96e07215f57f7dae6935f
|
| 3 |
+
size 198434616
|
model-00052-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d1d07adcd1166bd332e7a16bf90816509634b805cd7606fe5d2fef491656c85
|
| 3 |
+
size 191963352
|
model-00053-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e80cef6c8a30b136171059daddcce80bc1d0e5b50295ab1533bf9cca90d26d34
|
| 3 |
+
size 198434616
|
model-00054-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eef81fdfa1b5cb12f7262c8e5e1e83b155e977e893470e8ea3e5d52b0d9bc036
|
| 3 |
+
size 198434616
|
model-00055-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23c5940aff0b80717793b01bae74640c9dedb779ae57e8083632763df8eb7067
|
| 3 |
+
size 198434616
|
model-00058-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3924ef8d4b90b5ab924c8153a6f9d69c81987f73a6ac6711173f23624cd41f49
|
| 3 |
+
size 198434616
|
model-00059-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ffbc88746e2863daf8f4dae065a5832d727102fc00bf9c142e4e7a5cf03cfc5
|
| 3 |
+
size 198434616
|
model-00061-of-00067.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:497ff3a28c76c93c03a9995fbc79f886e20acd641ae3479182580fc5397a8f2a
|
| 3 |
+
size 198434616
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|