Skip to content

Commit 44dd966

Browse files
committed
Wandb fixes
1 parent f8071c7 commit 44dd966

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

olmocr/train/train.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import argparse
66
import logging
7+
import os
78

89
import numpy as np
910
import torch
@@ -86,6 +87,11 @@ def main():
8687
logger.error(f"Configuration validation failed: {e}")
8788
return
8889

90+
# Set wandb project from config
91+
if config.project_name:
92+
os.environ["WANDB_PROJECT"] = config.project_name
93+
logger.info(f"Setting WANDB_PROJECT to: {config.project_name}")
94+
8995
# Load processor for tokenization
9096
logger.info(f"Loading processor: {config.model.name}")
9197
processor = AutoProcessor.from_pretrained(

0 commit comments

Comments
 (0)