vasiuuu commited on
Commit
dbf2d43
·
1 Parent(s): acf77ab

Enable WandB logging and add API key

Browse files
Files changed (3) hide show
  1. requirements.txt +2 -0
  2. trainer/grpo_config.py +1 -1
  3. trainer/train.py +3 -0
requirements.txt CHANGED
@@ -9,3 +9,5 @@ accelerate
9
  pytest
10
  ruff
11
  mypy
 
 
 
9
  pytest
10
  ruff
11
  mypy
12
+
13
+ wandb
trainer/grpo_config.py CHANGED
@@ -22,6 +22,6 @@ def build_config(run_name="codeforge-grpo", output_dir="checkpoints"):
22
  logging_steps=1, save_steps=100,
23
  save_total_limit=3,
24
  output_dir=output_dir,
25
- # report_to="wandb", # Disabled to avoid token requirements unless needed
26
  run_name=run_name,
27
  )
 
22
  logging_steps=1, save_steps=100,
23
  save_total_limit=3,
24
  output_dir=output_dir,
25
+ report_to="wandb",
26
  run_name=run_name,
27
  )
trainer/train.py CHANGED
@@ -1,6 +1,9 @@
1
  import sys
2
  import os
3
 
 
 
 
4
  # Add the root directory to PYTHONPATH so codeforge module can be imported
5
  sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
6
 
 
1
  import sys
2
  import os
3
 
4
+ os.environ["WANDB_API_KEY"] = "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"
5
+ os.environ["WANDB_PROJECT"] = "codeforge-grpo"
6
+
7
  # Add the root directory to PYTHONPATH so codeforge module can be imported
8
  sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
9