Instructions to use worstchan/EAT-base_epoch30_pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use worstchan/EAT-base_epoch30_pretrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="worstchan/EAT-base_epoch30_pretrain", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("worstchan/EAT-base_epoch30_pretrain", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
AttributeError: 'EAT' object has no attribute '_initialize_weights'
#1
by revantteotiameta - opened
When calling thismodel_id = "worstchan/EAT-base_epoch30_pretrain" eat_model = AutoModel.from_pretrained(model_id, trust_remote_code=True).eval()
I getAttributeError: 'EAT' object has no attribute '_initialize_weights'
It seems the issue is caused by recent updates in the transformers library. Installing the updated requirements.txt in the repo should resolve it β thanks for pointing it out!
worstchan changed discussion status to closed