Skip to content

Commit

Permalink
check if cfg_early_exit_loss has curriculum
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaelhoushi committed Dec 1, 2024
1 parent e51419c commit 40b7987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/dev/early_exit_finetune_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def _setup_early_exit_loss(
train_last_layer = cfg_early_exit_loss.get("include_last_layer", True)
verbose = cfg_early_exit_loss.get("verbose", False)

if cfg_early_exit_loss.curriculum:
if cfg_early_exit_loss.get("curriculum", None):
early_exit_loss_curriculum = setup_early_exit_loss_curriculum(
early_exit_curriculum=cfg_early_exit_loss.curriculum,
do_output_hidden_states=do_output_hidden_states,
Expand Down

0 comments on commit 40b7987

Please sign in to comment.