Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyen-brat committed Oct 30, 2023
1 parent 9fc2913 commit e83c20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/claim_verification/joint_cross_encoder/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __call__(
metrics = [MulticlassF1Score(num_classes=3), MulticlassConfusionMatrix(num_classes=3)]
for epoch in range(epochs):
training_steps = 0
print(f'epoch: {epoch+1}/{epochs} ')
self.accelerator.print(f'epoch: {epoch+1}/{epochs} ')
self.model.zero_grad()
self.model.train()

Expand Down Expand Up @@ -275,7 +275,7 @@ def val_evaluation(self,
):
with torch.no_grad():
with torch.cuda.amp.autocast(): ###################
print('Val evaluation processing !')
self.accelerator.print('Val evaluation processing !')
output = []
for fact_claims_ids, labels, is_positive, _ in val_dataloader:
multi_evident_logits, _ = self.model(fact_claims_ids, is_positive)
Expand Down

0 comments on commit e83c20a

Please sign in to comment.