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 OpenVINO pipelines #740

Merged
merged 21 commits into from
Jun 13, 2024
Merged

Add OpenVINO pipelines #740

merged 21 commits into from
Jun 13, 2024

Conversation

echarlaix
Copy link
Collaborator

@echarlaix echarlaix commented May 31, 2024

Add pipelines able to load a model and convert it to the openvino format if needed

from optimum.intel.pipelines import pipeline

# Load openvino model
ov_pipe = pipeline("text-generation", "helenai/gpt2-ov", accelerator="openvino")
# Load pytorch model and convert it to openvino before inference
pipe = pipeline("text-generation", "gpt2", accelerator="openvino")

@helena-intel @eaidova

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

@echarlaix echarlaix requested a review from AlexKoff88 May 31, 2024 16:56
@echarlaix echarlaix added the openvino-test Trigger OpenVINO slow tests label Jun 7, 2024
@echarlaix echarlaix merged commit 0c2217d into main Jun 13, 2024
25 checks passed
@echarlaix echarlaix deleted the ov-pipeline branch June 13, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openvino-test Trigger OpenVINO slow tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants