Bug report: torch._dynamo.exc.Unsupported: Unexpected type in sourceless builder transformers.models.gemma3.configuration_gemma3.Gemma3TextConfig

#51
by YovelRVeritex - opened
This comment has been hidden (marked as Resolved)

same problem

Google org

Hi, Could you please provide more details on the issue including the code that produces this error and the platform it's being used on? Thank you.

I was facing this problem and the solution was to revert to torch-2.6.0 and torchvision-0.21.0

Google org

Thanks for letting us know about this concern. I have escalated it to the appropriate internal team for investigation and will update you as soon as we have more information.

Reverting didn't work for me, but setting torch._dynamo.config.disable = True did. It seems to decrease performance though.

Hi @DasChameleon ,

I have reproduced the issue in my local and can able to successfully get the output from the model after upgrading the (torch, torchvision, torchaudio, triton) to latest versions ('2.7.1+cu126', '0.22.1+cu126', '2.7.1+cu126', '3.3.1') respectively. Please find the attached gist file for your reference. Please let me know if you required any further assistance. Thank you so much for your patience and continues interest in Gemma models.

Thanks.

Hi Guys, same issue here. Here are my findings:

  • torch 2.7.0, triton 3.3.0 -> error: torch._dynamo.exc.Unsupported: Unexpected type in sourceless builder builtins.method
  • torch 2.7.0, triton 3.3.1 -> same error
  • torch 2.7.1, (same as torchaudio, torchvision), triton 3.3.1 , ok

Sign up or log in to comment