Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
flybird11111 committed Sep 4, 2023
1 parent 692b85f commit 455b01e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/language/bert/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ def evaluate_subset(dataloader: DataLoader):
current_pp_group_ranks = pg_mesh.get_ranks_in_group(pp_group)
current_rank = dist.get_rank()

print(current_pp_group_ranks)

batch = iter([batch])

outputs = booster.execute_pipeline(batch,
Expand All @@ -84,11 +82,7 @@ def evaluate_subset(dataloader: DataLoader):
if booster.plugin.stage_manager.is_last_stage():
val_loss = outputs["loss"]

#TODO get merged output
#logits = outputs["outputs"].logits
logits = outputs["outputs"][0].logits
logits = logits.repeat((2, 1))
####
logits = outputs["outputs"].logits

accum_loss.add_(val_loss)

Expand Down

0 comments on commit 455b01e

Please sign in to comment.