[INFO|integration_utils.py:750] 2024-07-08 16:22:45,186 >> Automatic Weights & Biases logging enabled, to disable set os.environ["WANDB_DISABLED"] = "true" wandb: WARNING The `run_name` is currently set to the same value as `TrainingArguments.output_dir`. If this was not intended, please specify a different run name by setting the `TrainingArguments.run_name` parameter. wandb: Network error (SSLError), entering retry loop. wandb: W&B API key is configured. Use `wandb login --relogin` to force relogin wandb: Network error (SSLError), entering retry loop. wandb: ERROR Run initialization has timed out after 90.0 sec. wandb: ERROR Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-
使用transformers.Trainer过程中,wandb连不上,想着直接关了算了。
1. 在Python代码中设置路径
在代码最前面写:
1 2
import os os.environ["WANDB_DISABLED"]="true"
这样做的缺点是会报警告信息:
1
Using the `WANDB_DISABLED` environment variable is deprecated and will be removed in v5. Use the --report_to flag to control the integrations used for logging results (for instance --report_to none).
File "/home/ma-user/anaconda3/envs/chatglm/lib/python3.10/site-packages/transformers/trainer_callback.py", line 421, in add_callback cb = callback() if isinstance(callback, type) else callback File "/home/ma-user/anaconda3/envs/chatglm/lib/python3.10/site-packages/transformers/integrations/integration_utils.py", line 603, in __init__ raise RuntimeError( RuntimeError: TensorBoardCallback requires tensorboard to be installed. Either update your PyTorch version or install tensorboardX.