Skip to content

Commit 41291e0

Browse files
committed
removing unwated code which calls function for comparison
1 parent 73bcca4 commit 41291e0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • reference_algorithms/paper_baselines/schedule_free/jax

reference_algorithms/paper_baselines/schedule_free/jax/submission.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import jax.numpy as jnp
1111
from optax.contrib import schedule_free_adamw
1212
from algoperf import spec
13-
from custom_pytorch_jax_converter import use_pytorch_weights, are_weights_equal
1413

1514
_GRAD_CLIP_EPS = 1e-6
1615

@@ -165,13 +164,6 @@ def update_params(workload: spec.Workload,
165164
'grad_norm': grad_norm[0],
166165
}, global_step)
167166

168-
# Log the number of parameters.
169-
if global_step % 100 == 0:
170-
date_ = "2025-07-01"
171-
file_name = f"/results/schedule_free_pytorch_weights/criteo1tb_{date_}_after_{global_step}_steps.pth"
172-
params = use_pytorch_weights(file_name=file_name)
173-
are_weights_equal(new_params, params)
174-
del params
175167

176168
return (new_optimizer_state, opt_update_fn), new_params, new_model_state
177169

0 commit comments

Comments
 (0)