uoft-cs/cifar100
Viewer • Updated • 60k • 40.7k • 64
How to use anchitya/vit-cifar100-lora with PEFT:
Task type is invalid.
This model is a Vision Transformer Small (ViT-S/16) pretrained on ImageNet and fine-tuned on CIFAR-100 using LoRA (Low-Rank Adaptation) via the PEFT library.
vit_small_patch16_224 (timm)import timm
from peft import PeftModel, LoraConfig
import torch
# Load base model
base_model = timm.create_model('vit_small_patch16_224', pretrained=True, num_classes=100)
# Load fine-tuned weights
checkpoint = torch.load('best_model.pth', map_location='cpu')
model.load_state_dict(checkpoint['model_state_dict'])
model.eval()
This model was trained as part of DLops Assignment 5.