Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vime/backends/megatron_utils/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,9 @@ def train(
log_dict["train/step"] = accumulated_step_id
logging_utils.log(args, log_dict, step_key="train/step")

if args.ci_test and "train/train_rollout_logprob_abs_diff" in log_dict:
assert log_dict["train/train_rollout_logprob_abs_diff"] <= 0.1, f"{log_dict=}"

if args.ci_test and not args.ci_disable_kl_checker:
if step_id == 0 and "train/ppo_kl" in log_dict and "train/pg_clipfrac" in log_dict:
# TODO: figure out why KL is not exactly zero when using PPO loss with KL clipping, and whether this is expected behavior or a bug.
Expand Down
Loading