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.

A similar problem here on transformers==4.44.0. Works fine when using git+https://github.com/tic-top/transformers.git (transformers==4.44.dev0)

ValueError: The checkpoint you are trying to load has model type `kosmos-2.5` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

Sign up or log in to comment