Unable to load processor or model from pretrained model
#1
by
Kajih
- opened
It seems that it is currently not possible to load the model.
processor = AutoProcessor.from_pretrained("microsoft/git-base")
raises this error: AttributeError: 'NoneType' object has no attribute 'from_pretrained')
and
model = AutoModelForCausalLM.from_pretrained("microsoft/git-large")
raises KeyError: 'git'
Am I doing something wrong?
Hi,
GIT is only available if you install Transformers from source at the moment:
pip install git+https://github.com/huggingface/transformers.git
Kajih
changed discussion title from
Enable to load processor or model from pretrained model
to Unable to load processor or model from pretrained model