Skip to content

Commit

Permalink
quick fix for gpt export_model (PaddlePaddle#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI authored Sep 9, 2021
1 parent 2d4dc85 commit b55782c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/language_model/gpt/export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main():
model = model_class.from_pretrained(
args.model_path,
max_predict_len=32,
eol_token_id=self.tokenizer.eol_token_id)
eol_token_id=tokenizer.eol_token_id)
# Switch to eval model
model.eval()
# Convert to static graph with specific input description
Expand Down

0 comments on commit b55782c

Please sign in to comment.