Skip to content

Commit

Permalink
Set deterministic=True for inference.
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxu1067 authored and ashors1 committed Nov 1, 2023
1 parent 9d6b6db commit 1612dc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paxml/contrib/gpu/scripts_gpu/te_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def __call__(self,
inputs=x_in,
attention_mask=attention_mask,
encoded=cross_inputs,
encoder_decoder_mask=cross_attention_mask)
encoder_decoder_mask=cross_attention_mask,
deterministic=self.do_eval)
x_out = checkpoint_name(x_out, 'transformer_layer_out')
return x_out

Expand Down

0 comments on commit 1612dc7

Please sign in to comment.