huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
131.91k stars 26.27k forks source link

index is out of bounds for dimension with size 0 (after 4.41.2) #32321

Open geekodour opened 1 month ago

geekodour commented 1 month ago

System Info

see this issue for more details: https://github.com/kijai/ComfyUI-moondream/issues/19

Getting this error post this version which is preventing usage of the latest version. I'll try digging for a fix for this but otherwise if seems like an easy pick might be worth fixing.

Who can help?

@amyeroberts @ArthurZucker

Information

Tasks

Reproduction

https://github.com/kijai/ComfyUI-moondream/issues/19

Expected behavior

https://github.com/kijai/ComfyUI-moondream/issues/19

zucchini-nlp commented 1 month ago

Hey @geekodour ! From what I see the Phi-model code is totally defined within moondream, while they are calling to the transformers implementation of generate(). I recommend you to open an issue in moondream since they would have to update Phi modeling code, we have been actively modifying it lately.