Skip to content

Commit

Permalink
Add use_faster to faster_gpt sample. (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshengCS authored Dec 10, 2021
1 parent 0720afe commit 9d9bd67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/language_model/gpt/faster_gpt/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def do_predict(args):
bos_token_id=bos_id,
eos_token_id=eos_id,
decode_strategy="sampling",
use_fp16_decoding=args.use_fp16_decoding)
use_fp16_decoding=args.use_fp16_decoding,
use_faster=True)
output_sequence = out_seq.numpy()

paddle.fluid.core._cuda_synchronize(place)
Expand Down

0 comments on commit 9d9bd67

Please sign in to comment.