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 experimental ov backend to NPU model #11383

Closed
wants to merge 11 commits into from

Conversation

yangw1234
Copy link
Contributor

@yangw1234 yangw1234 commented Jun 20, 2024

Description

Add experimental ov backend to NPU model, which is faster and use less CPU resources comparing to NPU Acceleration Library.

Usage

from ipex_llm.transformers.npu_model import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True,
                                                 npu_backend="openvino")

Remaining problem:

  • meet NaN with very high probability

@yangw1234 yangw1234 marked this pull request as ready for review June 21, 2024 05:43
@yangw1234 yangw1234 changed the title [WIP] Add experimental ov backend to NPU model Add experimental ov backend to NPU model Jun 21, 2024
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.

1 participant