Skip to content

Commit

Permalink
split wandb sample prompts on newline
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjansson committed Sep 4, 2024
1 parent 1d7d755 commit e7c89b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def train(
ge=1,
),
wandb_sample_prompts: str = Input(
description="Semicolon-separated list of prompts to use when logging samples to W&B. Only applicable if wandb_api_key is set.",
description="Newline-separated list of prompts to use when logging samples to W&B. Only applicable if wandb_api_key is set.",
default=None,
),
wandb_save_interval: int = Input(
Expand All @@ -204,7 +204,7 @@ def train(

sample_prompts = []
if wandb_sample_prompts:
sample_prompts = [p.strip() for p in wandb_sample_prompts.split(";")]
sample_prompts = [p.strip() for p in wandb_sample_prompts.split("\n")]

wandb_client = None
if wandb_api_key:
Expand Down

0 comments on commit e7c89b9

Please sign in to comment.