Skip to content

Add option --torchscript in benchmark_gpt2.py#4500

Merged
tianleiwu merged 4 commits intomasterfrom
tlwu/benchmark_gpt2_torchscript
Jul 14, 2020
Merged

Add option --torchscript in benchmark_gpt2.py#4500
tianleiwu merged 4 commits intomasterfrom
tlwu/benchmark_gpt2_torchscript

Conversation

@tianleiwu
Copy link
Contributor

Description:
(1) Add option --torchscript in benchmark_gpt2.py

Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

Compare performance of TorchScript and OnnxRunime.

change output name prediction_scores to logits
move torchscript conversion after onn mocdle exporting
@tianleiwu tianleiwu requested a review from yufenglee July 14, 2020 01:52
@tianleiwu tianleiwu requested a review from a team as a code owner July 14, 2020 01:52
@tianleiwu tianleiwu added the GPT2 label Jul 14, 2020
@tianleiwu tianleiwu merged commit 25885cf into master Jul 14, 2020
@tianleiwu tianleiwu deleted the tlwu/benchmark_gpt2_torchscript branch July 14, 2020 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants