Skip to content

Commit

Permalink
login to wandb
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiyomaru committed Dec 14, 2023
1 parent d22aab6 commit 921989e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions llm_judge/gen_judgment.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def make_match_pairwise(
parser.add_argument(
"--overwrite", action="store_true", help="Overwrite existing judgment files."
)
parser.add_argument(
"--wandb",
action="store_true",
help="Log to wandb.",
)
args = parser.parse_args()

if args.verbose == 0:
Expand All @@ -157,6 +162,12 @@ def make_match_pairwise(
level=level,
)

if args.wandb:
import wandb

wandb.login()
wandb.init()

logger.info("Load questions")
questions = load_questions(str(QUESTION_FILE))
if args.first_n:
Expand Down

0 comments on commit 921989e

Please sign in to comment.