Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
Change default checkpoint saving dtype to float32 instead of bfloat16…
Browse files Browse the repository at this point in the history
…. Saving

PiperOrigin-RevId: 363758862
  • Loading branch information
Mesh TensorFlow Team committed Mar 18, 2021
1 parent 441ff47 commit 5d16bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesh_tensorflow/transformer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def parse_gin_defaults_and_flags(skip_unknown=False, finalize_config=True):
# this stupid VariableDtype class and stop passing it all over creation.
@gin.configurable
def get_variable_dtype(
master_dtype=tf.bfloat16,
master_dtype=tf.float32,
slice_dtype=tf.float32,
activation_dtype=tf.float32):
"""Datatypes to use for the run.
Expand Down

0 comments on commit 5d16bca

Please sign in to comment.