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

Phi-2 on Intel's MTL iGPU demo notebook #606

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Phi-2 on Intel's MTL iGPU demo notebook #606

merged 3 commits into from
Mar 15, 2024

Conversation

ofirzaf
Copy link
Contributor

@ofirzaf ofirzaf commented Mar 14, 2024

What does this PR do?

We added a notebook that demonstrates how to quantize Microsoft's Phi-2 model to 4bit Weight Only Quantization using OpenVINO. Then we show how to use the quantized model for generating text and code on Intel's iGPU found on the latest Intel's client CPUs. Lastly, we show a simple Gradio demo for chatbot with the quantized Phi-2 locally on your own laptop.

@echarlaix

Before submitting

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

@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.

Copy link
Collaborator

@echarlaix echarlaix left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for your work @ofirzaf !

notebooks/openvino/phi-2_on_mtl.ipynb Outdated Show resolved Hide resolved
notebooks/openvino/phi-2_on_mtl.ipynb Outdated Show resolved Hide resolved
notebooks/openvino/phi-2_on_mtl.ipynb Outdated Show resolved Hide resolved
notebooks/openvino/phi-2_on_mtl.ipynb Outdated Show resolved Hide resolved
notebooks/openvino/phi-2_on_mtl.ipynb Show resolved Hide resolved
notebooks/openvino/phi-2_on_mtl.ipynb Show resolved Hide resolved
@ofirzaf
Copy link
Contributor Author

ofirzaf commented Mar 15, 2024

Hi @echarlaix, thanks for the review. I uploaded a revised version. Please let me know if you think any other changes are needed. Thanks!

@echarlaix echarlaix merged commit 2b186f2 into huggingface:main Mar 15, 2024
10 of 11 checks 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.

5 participants