Error: 'Kosmos2_5ForConditionalGeneration' from 'transformers' when using the latest transformer version

#7
by Nidhin117 - opened

When using transformer version transformers==4.43.0.dev0 both Kosmos2_5ForConditionalGeneration and AutoModelForVision2Seq were loaded without errors and inferencing of the Kosmos model was possible. However, they are not working on the latest version of transformers 4.43.2 as well as the previous 2 releases, 4.32.1 and 4.43.0.

same probleem for me!

@Nidhin117 were you able to resolve this issue?

How did you download transformer version transformers==4.43.0.dev0?

The version on the requirements.txt is 4.32.0.dev0 (git+https://github.com/Dod-o/kosmos2.5_tools.git@transformers)?

use pip install git+https://github.com/tic-top/transformers.git (transformers==4.44.0.dev0) and it works.

Sign up or log in to comment