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

Adding CodeLlama-7B inference and compilation example notebook #549

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Adding CodeLlama-7B inference and compilation example notebook #549

merged 2 commits into from
Apr 3, 2024

Conversation

jimburtoft
Copy link
Contributor

What does this PR do?

Adds a CodeLlama-7B inference example.

Before submitting

  • [ x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • [x ] Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@jimburtoft
Copy link
Contributor Author

We're working to get some more model specific examples out using optimum-neuron.

I did NOT include a link in docs/source/tutorials/overview.mdx nor do I have an mdx version of the notebook. You are welcome to convert it or I can add it if you want to send instructions.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment on lines 60 to 70
"The following steps set up Jupyter Notebook and launch this tutorial:\n",
"1. Clone the [AWS Neuron Samples](https://github.com/aws-neuron/aws-neuron-samples) repo to your instance using\n",
"```\n",
"git clone https://github.com/aws-neuron/aws-neuron-samples.git\n",
"```\n",
"2. Navigate to the `transformers-neuronx` inference samples folder\n",
"```\n",
"cd aws-neuron-samples/torch-neuronx/transformers-neuronx/inference\n",
"```\n",
"3. Follow the instructions in [Jupyter Notebook QuickStart](https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/setup/notebook/setup-jupyter-notebook-steps-troubleshooting.html) to run Jupyter Notebook on your instance.\n",
"4. Locate this tutorial in your Jupyter Notebook session (`CodeLlama-7B.ipynb`) and launch it. Follow the rest of the instructions in this tutorial. "
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this should be fetch from optimum-neuron instead, isn't it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dacorvo I fixed a number of path issues in that section. Thanks for the fresh eyes.

Copy link
Collaborator

@dacorvo dacorvo 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 pull-request !

@dacorvo dacorvo merged commit 6253f12 into huggingface:main Apr 3, 2024
1 check passed
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