MBZUAI / swiftformer-xs

huggingface.co
Total runs: 2.3K
24-hour runs: 0
7-day runs: 233
30-day runs: 437
Model's Last Updated: July 23 2025
image-classification

Introduction of swiftformer-xs

Model Details of swiftformer-xs

SwiftFormer (swiftformer-xs)

Model description

The SwiftFormer model was proposed in SwiftFormer: Efficient Additive Attention for Transformer-based Real-time Mobile Vision Applications by Abdelrahman Shaker, Muhammad Maaz, Hanoona Rasheed, Salman Khan, Ming-Hsuan Yang, Fahad Shahbaz Khan.

SwiftFormer paper introduces a novel efficient additive attention mechanism that effectively replaces the quadratic matrix multiplication operations in the self-attention computation with linear element-wise multiplications. A series of models called 'SwiftFormer' is built based on this, which achieves state-of-the-art performance in terms of both accuracy and mobile inference speed. Even their small variant achieves 78.5% top-1 ImageNet1K accuracy with only 0.8 ms latency on iPhone 14, which is more accurate and 2× faster compared to MobileViT-v2.

Intended uses & limitations
How to use
import requests
from PIL import Image

url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)

from transformers import ViTImageProcessor
processor = ViTImageProcessor.from_pretrained('shehan97/swiftformer-xs')
inputs = processor(images=image, return_tensors="pt")


from transformers.models.swiftformer import SwiftFormerForImageClassification
new_model = SwiftFormerForImageClassification.from_pretrained('shehan97/swiftformer-xs')

output = new_model(inputs['pixel_values'], output_hidden_states=True)
logits = output.logits
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", new_model.config.id2label[predicted_class_idx])
Limitations and bias
Training data

The classification model is trained on the ImageNet-1K dataset.

Training procedure
Evaluation results

Runs of MBZUAI swiftformer-xs on huggingface.co

2.3K
Total runs
0
24-hour runs
59
3-day runs
233
7-day runs
437
30-day runs

More Information About swiftformer-xs huggingface.co Model

swiftformer-xs huggingface.co

swiftformer-xs huggingface.co is an AI model on huggingface.co that provides swiftformer-xs's model effect (), which can be used instantly with this MBZUAI swiftformer-xs model. huggingface.co supports a free trial of the swiftformer-xs model, and also provides paid use of the swiftformer-xs. Support call swiftformer-xs model through api, including Node.js, Python, http.

swiftformer-xs huggingface.co Url

https://huggingface.co/MBZUAI/swiftformer-xs

MBZUAI swiftformer-xs online free

swiftformer-xs huggingface.co is an online trial and call api platform, which integrates swiftformer-xs's modeling effects, including api services, and provides a free online trial of swiftformer-xs, you can try swiftformer-xs online for free by clicking the link below.

MBZUAI swiftformer-xs online free url in huggingface.co:

https://huggingface.co/MBZUAI/swiftformer-xs

swiftformer-xs install

swiftformer-xs is an open source model from GitHub that offers a free installation service, and any user can find swiftformer-xs on GitHub to install. At the same time, huggingface.co provides the effect of swiftformer-xs install, users can directly use swiftformer-xs installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

swiftformer-xs install url in huggingface.co:

https://huggingface.co/MBZUAI/swiftformer-xs

Url of swiftformer-xs

swiftformer-xs huggingface.co Url

Provider of swiftformer-xs huggingface.co

MBZUAI
ORGANIZATIONS

Other API from MBZUAI

huggingface.co

Total runs: 75.8K
Run Growth: 1.8K
Growth Rate: 2.41%
Updated:February 20 2025
huggingface.co

Total runs: 5.3K
Run Growth: -1.2K
Growth Rate: -23.60%
Updated:April 08 2026
huggingface.co

Total runs: 5.0K
Run Growth: 2.4K
Growth Rate: 47.82%
Updated:March 01 2024
huggingface.co

Total runs: 4.6K
Run Growth: -1.3K
Growth Rate: -27.43%
Updated:April 08 2026
huggingface.co

Total runs: 3.0K
Run Growth: -1.0K
Growth Rate: -35.01%
Updated:April 08 2026
huggingface.co

Total runs: 2.5K
Run Growth: -424
Growth Rate: -17.00%
Updated:April 08 2026
huggingface.co

Total runs: 1.9K
Run Growth: 359
Growth Rate: 19.23%
Updated:March 13 2025
huggingface.co

Total runs: 1.2K
Run Growth: -1.2K
Growth Rate: -99.49%
Updated:April 28 2023
huggingface.co

Total runs: 1.1K
Run Growth: -1.2K
Growth Rate: -110.15%
Updated:April 28 2023
huggingface.co

Total runs: 935
Run Growth: -1.2K
Growth Rate: -125.13%
Updated:April 28 2023
huggingface.co

Total runs: 916
Run Growth: 242
Growth Rate: 26.42%
Updated:February 28 2024
huggingface.co

Total runs: 732
Run Growth: 689
Growth Rate: 94.13%
Updated:March 25 2024
huggingface.co

Total runs: 406
Run Growth: 0
Growth Rate: 0.00%
Updated:December 26 2024
huggingface.co

Total runs: 262
Run Growth: 78
Growth Rate: 29.77%
Updated:February 27 2026
huggingface.co

Total runs: 156
Run Growth: 144
Growth Rate: 92.31%
Updated:December 16 2024
huggingface.co

Total runs: 137
Run Growth: 31
Growth Rate: 22.63%
Updated:February 28 2024
huggingface.co

Total runs: 116
Run Growth: -179
Growth Rate: -154.31%
Updated:February 27 2026
huggingface.co

Total runs: 102
Run Growth: 58
Growth Rate: 56.86%
Updated:September 10 2025
huggingface.co

Total runs: 93
Run Growth: -112
Growth Rate: -120.43%
Updated:February 27 2026
huggingface.co

Total runs: 90
Run Growth: 68
Growth Rate: 75.56%
Updated:September 10 2025
huggingface.co

Total runs: 87
Run Growth: -158
Growth Rate: -181.61%
Updated:December 27 2023
huggingface.co

Total runs: 57
Run Growth: 51
Growth Rate: 89.47%
Updated:January 20 2026
huggingface.co

Total runs: 38
Run Growth: -26
Growth Rate: -68.42%
Updated:December 18 2024
huggingface.co

Total runs: 36
Run Growth: 15
Growth Rate: 41.67%
Updated:September 10 2025
huggingface.co

Total runs: 34
Run Growth: 16
Growth Rate: 47.06%
Updated:December 16 2024
huggingface.co

Total runs: 31
Run Growth: 16
Growth Rate: 51.61%
Updated:December 16 2024
huggingface.co

Total runs: 29
Run Growth: 0
Growth Rate: 0.00%
Updated:July 11 2026
huggingface.co

Total runs: 25
Run Growth: 7
Growth Rate: 26.92%
Updated:December 27 2023
huggingface.co

Total runs: 25
Run Growth: 17
Growth Rate: 68.00%
Updated:March 16 2025
huggingface.co

Total runs: 20
Run Growth: 13
Growth Rate: 65.00%
Updated:February 28 2024
huggingface.co

Total runs: 14
Run Growth: 14
Growth Rate: 100.00%
Updated:November 28 2025
huggingface.co

Total runs: 13
Run Growth: 9
Growth Rate: 69.23%
Updated:June 12 2025
huggingface.co

Total runs: 9
Run Growth: -3
Growth Rate: -33.33%
Updated:March 25 2024
huggingface.co

Total runs: 8
Run Growth: 1
Growth Rate: 12.50%
Updated:April 13 2026
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:January 19 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 05 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 09 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 10 2025