rameye commited on
Commit
294eb66
1 Parent(s): c2c5c38

Update pytorch_model.bin

Browse files
Files changed (1) hide show
  1. pytorch_model.bin +3 -6
pytorch_model.bin CHANGED
@@ -1,7 +1,4 @@
1
- import torch
2
 
3
- # Assuming your fine-tuned model is named 'model' (replace it with your model's actual name)
4
- ret_model.pth = ...
5
-
6
- # Save the model state dictionary
7
- torch.save(model.state_dict(), 'pytorch_model.bin')
 
1
+ from transformers import ViTForImageClassification
2
 
3
+ # Assuming you're loading the model using the ViTForImageClassification class
4
+ model = ViTForImageClassification.from_pretrained('/home/user/.cache/huggingface/hub/models--rameye--1/snapshots/c2c5c38a641e6c048f33c2db25afa765727a04ed', from_tf=True)