How to turn WanDB off in trainer?
I am trying to use the trainer to fine tune a bert model but it keeps trying to connect to wandb and I dont know what that is and just want it off. is there a config I am missing?
2021-05-19T01:32:09Z
import osos.environ[“WANDB_DISABLED”] = “true”This works for me.
2021-05-19T11:53:32Z
alternatively, you can disable the weights and biases (wandb) callback in theTrainingArgumentsdirectly:# None disables all integrations
args = TrainingArguments(report_to=None, ...)
2021-11-26T08:30:38Z
It should be “none”, notNone
2022-02-23T02:15:42Z
Hi after doing that i have the following error: “Error: You must call wandb.init() before wandb.log()”
2022-02-25T10:54:41Z
Hi@hiramcho, check out the docs on the logger to solve that issue. You just need to callwandb.init(project='your_project_name')somewhere before you start using the logger.https://docs.wandb.ai/guides/integrations/huggingface
2023-02-12T20:32:44Z
For me, I want wandb, but I don’t like the many prints during training.Even though I set the logging level to be WARNING, I still get many:Generate config GenerationConfig {
  "decoder_start_token_id": 0,
  "eos_token_id": 1,
  "pad_token_id": 0,
  "transformers_version": "4.26.0"
}How do I turn this print off? (Print is in configuration_utils.py:543)
2023-03-20T22:54:29Z
I get these annoying prints when running on KaggleGenerate config GenerationConfig {“decoder_start_token_id”: 0,“eos_token_id”: 1,“pad_token_id”: 0,“transformers_version”: “4.26.0”}when the code starts evaluationit prints each stephow to tun it off Please???
2023-03-22T13:25:34Z
I also had the same issue with the annoyingGenerate config GenerationConfiglines. In my case, upgrading from transformers 4.26.0 to 4.27.2 solved the issue.
2023-04-05T03:39:44Z
I also faced the same issue, and the issue is caused bytransformers/configuration_utils.py at main · huggingface/transformers · GitHubComment that part the issue should be solved.
2023-12-20T20:06:09Z
import wandbwandb.init(mode=“disabled”)
2024-03-09T08:37:35Z
Thanks! This is so weird. I was banging my head on it for too long lol.
2024-07-13T02:08:17Z
This method is productive in kaggle. Thank you!
2024-09-27T07:32:11Z
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.