Run this model with HF Jobs

Run google/vit-base-patch16-224-in21k on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/google/vit-base-patch16-224-in21k. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/google/vit-base-patch16-224-in21k on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

How to replicate CIFAR100 fine-tuning performance?

#3
by HuBot2020 - opened

Has anyone else managed to get decent accuracy with this pretrained model after fine-tuning for CIFAR100? I've replicated the conditions claimed in the paper (aside from resolution changed to 324) where we have batch size of 512, cosine learning scheduler, with 10,000 warmup steps, and varied learning rate between 0.0001 to 0.1.

I perform an 80/20 split on the train data provided in huggingface for training/validation and then use the 'test' portion to test for top-1 accuracy. Validation accuracy jumps to 90%, but I consistently get 40% accuracy on the test dataset no matter what parameter I tune.

Has anyone managed to fine-tune this pretrained model on CIFAR100, and found consistently high accuracy (80-90%) in the 'test' dataset for CIFAR100?

I have the same problem with you. But I found it works when I change transformers version to 4.26.0.

Sign up or log in to comment