apple/coreml-FastViT-T8

Model

18

stars

11

commits

2

linked in READMEs

Jun 13, 2024

updated

coreml
image-classification

README

FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization

Please observe original license.

Model Details

Evaluation - Variants

VariantParametersSize (MB)Weight precisionAct. precisionΔ Pytorch acc
T83.6M7.8Float16Float16-0.9%
MA3642.7M84Float16Float16-0.06%

Evaluation - Inference time

VariantDeviceOSInference time (ms)Dominant compute unit
T8iPhone 12 Pro Max17.50.79Neural Engine
T8M3 Max14.40.62Neural Engine
MA36iPhone 12 Pro Max18.04.50Neural Engine
MA36M3 Max15.02.99Neural Engine

Download

Install huggingface-cli

brew install huggingface-cli

To download one of the .mlpackage folders to the models directory:

huggingface-cli download \
  --local-dir models --local-dir-use-symlinks False \
  apple/coreml-FastViT-T8 

Integrate in Swift apps

The huggingface/coreml-examples repository contains sample Swift code for coreml-FastViT-T8 and other models. See the instructions there to build the demo app, which shows how to use the model in your own Swift apps.

Citation

@inproceedings{vasufastvit2023,
  author = {Pavan Kumar Anasosalu Vasu and James Gabriel and Jeff Zhu and Oncel Tuzel and Anurag Ranjan},
  title = {FastViT:  A Fast Hybrid Vision Transformer using Structural Reparameterization},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  year = {2023}
}

Contributors

reach-vb

5 commits

pcuenq

4 commits

FL33TW00D-HF

2 commits

apple/coreml-FastViT-T8

Model

18

stars

11

commits

2

linked in READMEs

Jun 13, 2024

updated

coreml
image-classification

README

FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization

Please observe original license.

Model Details

Evaluation - Variants

VariantParametersSize (MB)Weight precisionAct. precisionΔ Pytorch acc
T83.6M7.8Float16Float16-0.9%
MA3642.7M84Float16Float16-0.06%

Evaluation - Inference time

VariantDeviceOSInference time (ms)Dominant compute unit
T8iPhone 12 Pro Max17.50.79Neural Engine
T8M3 Max14.40.62Neural Engine
MA36iPhone 12 Pro Max18.04.50Neural Engine
MA36M3 Max15.02.99Neural Engine

Download

Install huggingface-cli

brew install huggingface-cli

To download one of the .mlpackage folders to the models directory:

huggingface-cli download \
  --local-dir models --local-dir-use-symlinks False \
  apple/coreml-FastViT-T8 

Integrate in Swift apps

The huggingface/coreml-examples repository contains sample Swift code for coreml-FastViT-T8 and other models. See the instructions there to build the demo app, which shows how to use the model in your own Swift apps.

Citation

@inproceedings{vasufastvit2023,
  author = {Pavan Kumar Anasosalu Vasu and James Gabriel and Jeff Zhu and Oncel Tuzel and Anurag Ranjan},
  title = {FastViT:  A Fast Hybrid Vision Transformer using Structural Reparameterization},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  year = {2023}
}

Contributors

reach-vb

5 commits

pcuenq

4 commits

FL33TW00D-HF

2 commits