Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFBertModel: InvalidArgumentError.__init__() missing 2 required positional arguments: 'op' and 'message' #5310

Closed
tomigee opened this issue Mar 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tomigee
Copy link

tomigee commented Mar 8, 2024

Short description
Hi Hugging Face team,
First off thanks for the work you do. Here's my issue:
When I try to create a TFBertModel with a BertConfig object, it errors out on me

Environment information

  • Operating System: macOS Sonoma 14.1.1
  • Python version: 3.10.13
  • tensorflow version: 2.15.0
  • transformers version: 4.38.2

Reproduction instructions

from transformers import TFBertModel, BertConfig
configuration = BertConfig(max_position_embeddings=2048)
bert = TFBertModel.from_pretrained("bert-base-uncased", config=configuration)

If you share a colab, make sure to update the permissions to share it.

Link to logs
https://gist.github.com/tomigee/6c5b39629305463d9799b8ae5e5548b9

Expected behavior
A TFBertModel is created with no errors

Additional context
I reproduced this error on Google Colab, so it's not platform specific.

@tomigee tomigee added the bug Something isn't working label Mar 8, 2024
@tomigee
Copy link
Author

tomigee commented Mar 10, 2024

My mistake...I created this issue in the wrong repo. Closing it now.

@tomigee tomigee closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant