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:
- 94842e09975c78cdeedac9396e974602bac8225ca5dee7fc16387ab63037617b
- Size of remote file:
- 14 MB
- SHA256:
- f69e1666b49f915271dcb8918686137c68a695c3b232b61ee89fb592d5720d13
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.