Looks like the new transformer 4.49.0 has some issues

My HuggingFace space was working perfectly and I was quite taken aback when after a simple code refresh it started breaking with following error:
RuntimeError: expected mat1 and mat2 to have the same dtype, but got: float != c10::Half
I started going to older version of torch, torch-vision, diffusers and then finally to transformer.
I am a Beginner in this area, but wanted to let others know that if you face similar issue, go back to:
transformers==4.48.3

1 Like

It is quite common for the behavior of functions to change with version upgrades, causing sample code to start producing errors.:sweat_smile:
In many cases, this can be avoided by making minor corrections to the code, but if it seems too buggy or is highly reproducible, I think the developers will respond if you report it using the following.

Thanks for the quick reply.
I could not generate any images without going to the older version of transformers. I think it will start breaking for others too, once they do a “Factory Rebuild” of spaces.
I will post it to the GitHub repo for someone to look at! Thanks for the help.

1 Like

Oh, so it’s related to the Diffusers…
This isn’t something that concerns me.:downcast_face_with_sweat:
In any case, it should be dealt with on the Transformers side.

1 Like