Skip to content

Commit

Permalink
Merge branch 'main' into release-candidate
Browse files Browse the repository at this point in the history
# Conflicts:
#	tests/module_tests/test_trainable.py
  • Loading branch information
LarsKue committed Dec 6, 2023
2 parents ed9f82f + 103a3e2 commit a580910
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lightning_trainable/launcher/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ def main(args=None):
if num_threads is not None:
torch.set_num_threads(num_threads)

# Set matmul precision
matmul_precision = hparams.pop("matmul_precision", None)
if matmul_precision is not None:
torch.set_float32_matmul_precision(matmul_precision)

# Load the model
if "model" not in hparams:
model_class_file = checkpoint_file.parent.parent / "model.txt"
Expand Down

0 comments on commit a580910

Please sign in to comment.