-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move details script and fix wandb logging (#314)
- Loading branch information
1 parent
f987b3c
commit 80e7e7b
Showing
4 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import os | ||
|
||
|
||
def init_wandb_training(training_args): | ||
""" | ||
Helper function for setting up Weights & Biases logging tools. | ||
""" | ||
if training_args.wandb_entity is not None: | ||
os.environ["WANDB_ENTITY"] = training_args.wandb_entity | ||
if training_args.wandb_project is not None: | ||
os.environ["WANDB_PROJECT"] = training_args.wandb_project |