Instructions to use hf-internal-testing/tiny-random-SwiftFormerForImageClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-SwiftFormerForImageClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="hf-internal-testing/tiny-random-SwiftFormerForImageClassification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("hf-internal-testing/tiny-random-SwiftFormerForImageClassification") model = AutoModelForImageClassification.from_pretrained("hf-internal-testing/tiny-random-SwiftFormerForImageClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from hf-internal-testing/tiny-random-SwiftFormerForImageClassification: direct link, hf CLI and curl.
- Browser
- Download file 14 MB
-
https://huggingface.co/hf-internal-testing/tiny-random-SwiftFormerForImageClassification/resolve/031782f67da1ec621aed061d0ecd5c917aaef582/pytorch_model.bin
- Command line
-
hf download hf://hf-internal-testing/tiny-random-SwiftFormerForImageClassification@031782f67da1ec621aed061d0ecd5c917aaef582/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/hf-internal-testing/tiny-random-SwiftFormerForImageClassification/resolve/031782f67da1ec621aed061d0ecd5c917aaef582/pytorch_model.bin
14 MB
- Xet hash:
- 31ab5debb21b93376f152bea40f918ed80d54624aace19a39b51d3de2ae4fa8d
- Size of remote file:
- 14 MB
- SHA256:
- 2245bb0c8c5ed798b890cfe92530bdc07cd5fd78cd60a0b8bc0ca635c515232d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.