Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a python script for generating text using huggingface gpt2 #2983

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

tungld
Copy link
Collaborator

@tungld tungld commented Oct 23, 2024

This patch:

  • creates a folder 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.
  • creates a python script 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.

Copy link
Collaborator

@AlexandreEichenberger AlexandreEichenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the new script

@tungld tungld merged commit 012f33c into onnx:main Oct 24, 2024
7 checks passed
@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #15900 [push] Add a python script for ... started at 00:28

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #15897 [push] Add a python script for ... started at 23:28

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #14927 [push] Add a python script for ... started at 00:42

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #15900 [push] Add a python script for ... passed after 2 hr 6 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #15897 [push] Add a python script for ... passed after 2 hr 15 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #14927 [push] Add a python script for ... passed after 3 hr 53 min

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.

3 participants