Skip to content

Commit

Permalink
fix fp16 arg
Browse files Browse the repository at this point in the history
  • Loading branch information
bagustris committed May 30, 2024
1 parent c8ace63 commit 75c1a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nkululeko/models/model_tuned.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def compute_loss(
gradient_accumulation_steps=self.accumulation_steps,
evaluation_strategy="steps",
num_train_epochs=self.epoch_num,
fp16=self.device == "cuda",
fp16=self.device != "cpu",
save_steps=num_steps,
eval_steps=num_steps,
logging_steps=num_steps,
Expand Down

0 comments on commit 75c1a2f

Please sign in to comment.