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

[Bug]: Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb uses deprecated WANDB_LOG_MODEL=true #572

Open
travis-the-dragon opened this issue Aug 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@travis-the-dragon
Copy link
Contributor

Tell us what happened?

Please tell us which example failed and why. Please link the wandb.ai logs if you have one.

Running this notebook:
https://colab.research.google.com/github/wandb/examples/blob/master/colabs/huggingface/Optimize_Hugging_Face_models_with_Weights_&_Biases.ipynb#scrollTo=t2mS3c0ZURB5

on the cell that starts with python run_glue.py \

Fails with this error:

ValueError: 'true' is not a valid WandbLogModel

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/content/run_glue.py", line 637, in <module>
    main()
  File "/content/run_glue.py", line 528, in main
    trainer = Trainer(
  File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 598, in __init__
    self.callback_handler = CallbackHandler(
  File "/usr/local/lib/python3.10/dist-packages/transformers/trainer_callback.py", line 403, in __init__
    self.add_callback(cb)
  File "/usr/local/lib/python3.10/dist-packages/transformers/trainer_callback.py", line 420, in add_callback
    cb = callback() if isinstance(callback, type) else callback
  File "/usr/local/lib/python3.10/dist-packages/transformers/integrations/integration_utils.py", line 773, in __init__
    self._log_model = WandbLogModel(os.getenv("WANDB_LOG_MODEL", "false"))
  File "/usr/lib/python3.10/enum.py", line 385, in __call__
    return cls.__new__(cls, value)
  File "/usr/lib/python3.10/enum.py", line 718, in __new__
    raise exc
  File "/usr/lib/python3.10/enum.py", line 700, in __new__
    result = cls._missing_(value)
  File "/usr/local/lib/python3.10/dist-packages/transformers/integrations/integration_utils.py", line 747, in _missing_
    raise DeprecationWarning(
DeprecationWarning: Setting `WANDB_LOG_MODEL` as true is deprecated and will be removed in version 5 of transformers. Use one of `'end'` or `'checkpoint'` instead.

@travis-the-dragon travis-the-dragon added the bug Something isn't working label Aug 28, 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

3 participants