cannot import name 'Gemma3ForConditionalGeneration' from 'transformers'

#22
by ansh10dave - opened

cannot import name 'Gemma3ForConditionalGeneration' from 'transformers' (C:\Users\ansh1\Transformers\env1\Lib\site-packages\transformers_init_.py)

I have the latest version of python, transformers==4.49.0 but still getting this error

Google org

Hi @ansh10dave , To use Gemma-3 models, we need the latest development version of the Transformers library (4.50.0.dev0). we can install it directly from the GitHub branch using: pip install git+https://github.com/huggingface/transformers@v4.49.0-Gemma-3 as mentioned here.

Kindly find the reference gist file. if you have any concerns let us know.
Thank you.

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment