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")# 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
- Xet hash:
- 441a57447d9ae0924778eebb0684c119cf1990df47981870772632bd4cdfcfe6
- Size of remote file:
- 14 MB
- SHA256:
- 51d3612439228fefaf92bec213209248f137f22d9691fb1fdc2dfb0fbf334cb0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.