Skip to content

Commit

Permalink
generate: missing to in DoLa body, causing exceptions in multi-gpu …
Browse files Browse the repository at this point in the history
…generation (#32856)
  • Loading branch information
gante authored Aug 17, 2024
1 parent 6806d33 commit 52cb403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,7 @@ def _dola_decoding(
for candidate_premature_layer in candidate_premature_layers:
candidate_premature_logits[candidate_premature_layer] = lm_head(
outputs.hidden_states[candidate_premature_layer][:, -1, :]
)
).to(final_logits.device)

if synced_gpus and this_peer_finished:
continue # don't waste resources running the code we don't need
Expand Down

0 comments on commit 52cb403

Please sign in to comment.