Skip to content

Commit

Permalink
fix wandb secret
Browse files Browse the repository at this point in the history
  • Loading branch information
aksh-at committed May 23, 2024
1 parent 921f6b4 commit 2925f41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
HUGGINGFACE_HUB_CACHE="/pretrained",
HF_HUB_ENABLE_HF_TRANSFER="1",
TQDM_DISABLE="true",
ALLOW_WANDB=str(ALLOW_WANDB),
)
)
)
Expand All @@ -42,8 +41,10 @@

app = modal.App(
APP_NAME,
secrets=[modal.Secret.from_name("huggingface")]
+ ([modal.Secret.from_name("wandb")] if ALLOW_WANDB else []),
secrets=[
modal.Secret.from_name("huggingface"),
(modal.Secret.from_name("wandb") if ALLOW_WANDB else modal.Secret.from_dict({})),
],
)

# Volumes for pre-trained models and training runs.
Expand Down

0 comments on commit 2925f41

Please sign in to comment.