Instructions to use n1kooo/vit-cifar10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use n1kooo/vit-cifar10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="n1kooo/vit-cifar10") 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("n1kooo/vit-cifar10") model = AutoModelForImageClassification.from_pretrained("n1kooo/vit-cifar10", device_map="auto") - Notebooks
- Google Colab
- Kaggle
vit-cifar10
This model is a fine-tuned version of google/vit-base-patch16-224 on the n1kooo/vit-cifar10 dataset. It achieves the following results on the evaluation set:
- Loss: 0.1006
- Accuracy: 0.968
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.0861 | 1.0 | 2500 | 0.0955 | 0.9708 |
| 0.0927 | 2.0 | 5000 | 0.0890 | 0.974 |
| 0.0793 | 3.0 | 7500 | 0.0881 | 0.974 |
| 0.0656 | 4.0 | 10000 | 0.0864 | 0.9738 |
| 0.0787 | 5.0 | 12500 | 0.0867 | 0.9746 |
Framework versions
- Transformers 4.52.3
- Pytorch 2.7.0
- Datasets 3.6.0
- Tokenizers 0.21.1
- Downloads last month
- 8
Model tree for n1kooo/vit-cifar10
Base model
google/vit-base-patch16-224