Closed przecze closed 2 years ago
cc @sgugger
As the error message indicates, you need to have cometml installed to use it report_to="comet_ml"
RuntimeError: CometCallback requires comet-ml to be installed. Run `pip install comet-ml`.
It also tells you exactly which command to run to fix this: pip install comet-ml
.
Hey, The issue here is that error appears despite cometml being installed (with pip).
EDIT: Edited the issue title to make it more clear.
On Mon, Jul 4, 2022, 14:33 Sylvain Gugger @.***> wrote:
As the error message indicates, you need to have cometml installed to use it report_to="comet_ml"
RuntimeError: CometCallback requires comet-ml to be installed. Run
pip install comet-ml
.It also tells you exactly which command to run to fix this: pip install comet-ml.
— Reply to this email directly, view it on GitHub https://github.com/huggingface/transformers/issues/17691#issuecomment-1173767326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7MPQSGKFHH4UZWW3JTEWLVSLKYRANCNFSM5YURU4KQ . You are receiving this because you authored the thread.Message ID: @.***>
Did you properly initialize it with your API key then?
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
@sgugger How to do it? In this doc, there's no mentioning about API key in comet callback. I tried set up COMET_API_KEY, COMET_MODE, COMET_PROJECT_NAME inside function that runs on spawn, but no luck so far. Also downgraded comet-ml till 3.1.17.
os.environ["COMET_API_KEY"] = "<api-key>"
os.environ["COMET_MODE"] = "ONLINE"
os.environ["COMET_PROJECT_NAME"] = "<project-name>"
Maybe open an issue with them? We did not write this integration with comet-ml and we don't maintain it. It was written by the Comet team :-)
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
This is still an issue
This is still an issue, please re-open or address it -- none of the suggested methods of integrating with Comet ML are working for me -- neither the report_to="comet_ml" approach or the manual compute_metrics approach from this tutorial (https://www.comet.com/docs/v2/integrations/ml-frameworks/huggingface/).
This is still an issue right now, please kindly consider reopen and resolve this problem ! Thank you.
Still happens to me with comet_ml installed with both conda and pip.
@ngctnnnn @guyshur @frmccann97 @maximejkb As mentioned above, we didn't add and don't maintain the comet-ml integration. Have you raised an issue in their relevant repo?
System Info
Who can help?
@sg
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
This can be reproduced by adding
report_to='comet_ml'
to training arguments in this notebook: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/BERT/Fine_tuning_BERT_(and_friends)_for_multi_label_text_classification.ipynbFollowing error happens when creating the Trainer:
Expected behavior