Skip to content

Commit 80c6cad

Browse files
committed
minor
Signed-off-by: h-guo18 <67671475+h-guo18@users.noreply.github.com>
1 parent e66985c commit 80c6cad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/speculative_decoding/eagle_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ def __call__(self, features: list[dict[str, Any]]) -> dict[str, Any]:
395395
class ARValidationCallback(TrainerCallback):
396396
def __init__(self, ar_validate_steps: int = 1000):
397397
self.ar_validate_steps = ar_validate_steps
398+
if wandb:
399+
wandb.init()
398400

399401
def on_step_end(self, args, state, control, **kwargs):
400402
if self.ar_validate_steps <= 0:

0 commit comments

Comments
 (0)