-
Notifications
You must be signed in to change notification settings - Fork 0
UPSTREAM PR #15307: Add OpenVINO backend #74
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
Open
DajanaV
wants to merge
166
commits into
main
Choose a base branch
from
upstream-PR15307-branch_ravi9-dev_backend_openvino
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
UPSTREAM PR #15307: Add OpenVINO backend #74
DajanaV
wants to merge
166
commits into
main
from
upstream-PR15307-branch_ravi9-dev_backend_openvino
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…e model * Add OpenVINO ADD operator to Llama.cpp. The output is somewhat abnormal and needs further debugging.
…ontend-utils, GraphIterator, Decoder
…on openvino device
f72076f to
3f5e1ff
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mirrored from ggml-org/llama.cpp#15307
Overview
This PR introduces an OpenVINO backend for
llama.cpp, enabling hardware-accelerated inference on Intel® CPUs, GPUs, and NPUs. The backend leverages OpenVINO to deliver optimized inference with the existing llama.cpp GGUF model ecosystem. Enables performance improvements via OpenVINO’s graph compilation and kernel fusion.Key Features:
New backend implementation
ggml/src/ggml-openvino.Supported precisions
Supported devices
For NPU:
-ub 1is required forllama-cliandllama-server(a smaller context size is also recommended for better performance, e.g.,-c 512).For llama-bench:
-fa 1is required on all devices.Tested Models
The following models are validated for functionality.
Accuracy and performance are WIP.
Llama-3.2-1B-Instruct-GGUFLlama-3.1-8B-Instructmicrosoft/Phi-3-mini-4k-instruct-ggufQwen/Qwen2.5-1.5B-Instruct-GGUFQwen/Qwen3-8Bopenbmb/MiniCPM-1B-sft-bf16tencent/Hunyuan-7B-Instructmistralai/Mistral-7B-Instruct-v0.3Work in Progress
Notes on quantization support
CPU
GPU
NPU
Other notes:
NOTE: Optimum-intel converts the fp16/bf16 token embedding tensor and the weight tensor in the last matmul to int8 asym channel-wise (config code).