Add a python script for generating text using huggingface gpt2 #2983
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch:
utils/python/transformers
to host python scripts to run end-to-end tests with HuggingFace models (ONNX or pytorch). We can discuss about whether this folder is good for such purpose or it should be another folder.run_gpt2_from_huggingface.py
to run GPT2. The script downloads the onnx models from HuggingFace and compile them and generate text for a given prompt.