Skip to content

Commit

Permalink
enhance logging
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardAnt committed Sep 15, 2024
1 parent 6e6b760 commit f6c2fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poc/dsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ async def run(self) -> None:
any_rejected: bool
tok_ids, any_rejected = self.rejection_sampler(response, mask)
print(
f"Manager: Updated tok_ids with response {response.id}. The new tok_ids are {self.tok_ids}"
f"Manager: Updated tok_ids with response {response.id}"
)
tok_ids_padded = torch.full_like(self.tok_ids[0, mask], -1)
tok_ids_padded[: len(tok_ids)] = tok_ids
Expand All @@ -310,7 +310,7 @@ async def run(self) -> None:
)
self.tok_ids[0, mask] = tok_ids_padded
print(
f"Manager: Token ids after assignment: {self.tok_ids[0, mask]}"
f"Manager: Token ids after assignment: {self.tok_ids}"
)
if any_rejected:
print(f"Manager: Rejected response {response.id}")
Expand Down

0 comments on commit f6c2fb9

Please sign in to comment.