Instructions to use rameye/1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rameye/1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="rameye/1") 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("rameye/1") model = AutoModelForImageClassification.from_pretrained("rameye/1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update pytorch_model.bin
Browse files1123456734import torchfrom transformers import ViTForImageClassification
# Assuming your fine-tuned model is named 'model' (replace it with your model's actual name)ret_model.pth = ...
# Save the model state dictionarytorch.save(model.state_dict(), 'pytorch_model.bin')# Assuming you're loading the model using the ViTForImageClassification classmodel = ViTForImageClassification.from_pretrained('/home/user/.cache/huggingface/hub/models--rameye--1/snapshots/c2c5c38a641e6c048f33c2db25afa765727a04ed', from_tf=True)pytorch_model.bin+3-6