How to fix the IndexError caused by latest transformers update
#28
by
dylanhogg
- opened
If you are seeing this error with the latest transformers version:IndexError: index is out of bounds for dimension with size 0
in modeling_phi.py:214
The hot fix is located in this commit:
https://huggingface.co/vikhyatk/moondream2/commit/308043be540ca5c09d369bc96dd96991131f9135
Hopefully this will be merged to main soon.
Also, big thanks to vikhyatk for an awesome model!