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 wrapper for running phi-3-mini with kv cache #4408

Closed
wants to merge 1 commit into from

Conversation

helunwencser
Copy link
Contributor

This PR adds a thin wrapper for Phi3ForCausalLM to do inference with kv cache enabled.

Test Plan:

python3 -m examples.models.phi-3-mini.eager -s 128 -kv -p "Tell me a story"
python3 -m examples.models.phi-3-mini.eager -s 128 -p "Tell me a story"

Make sure that these two commands generate the exact same thing.

Copy link

pytorch-bot bot commented Jul 24, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4408

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 24, 2024
@helunwencser helunwencser force-pushed the static_cache branch 4 times, most recently from da1e974 to b13f8aa Compare July 25, 2024 19:40
@helunwencser helunwencser force-pushed the phi-3-mini-wrapper branch 2 times, most recently from a7fffeb to 1bddce4 Compare July 25, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants