Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmeda14960 committed Feb 16, 2024
1 parent a044367 commit 7b7e4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/levanter/main/train_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def add_floats(x, y):
# what is the f here?
logger.info(f"Interpolating between the two models with alpha={alpha}")
merged_model = named_jit(lambda m1, m2: jax.tree_util.tree_map(add_floats, m1, m2), donate_args=True)(model, model_2)
state = dataclasses.replace(state, model=model)
state = dataclasses.replace(state, model=merged_model)
else:
logger.info("No checkpoint found. Starting from scratch.")

Expand Down

0 comments on commit 7b7e4a4

Please sign in to comment.