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

Infer if the model needs to be exported #825

Merged
merged 14 commits into from
Sep 5, 2024
Merged

Infer if the model needs to be exported #825

merged 14 commits into from
Sep 5, 2024

Conversation

echarlaix
Copy link
Collaborator

@echarlaix echarlaix commented Jul 15, 2024

As #722 this PR remove the need to specify if the model needs to be exported or not with export

  from optimum.intel import OVModelForCausalLM

- model = OVModelForCausalLM.from_pretrained("gpt2", export=True)
+ model = OVModelForCausalLM.from_pretrained("gpt2")

@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 added the openvino-test Trigger OpenVINO slow tests label Jul 15, 2024
@echarlaix echarlaix requested a review from eaidova September 4, 2024 16:09
@echarlaix echarlaix merged commit 3586b5b into main Sep 5, 2024
22 of 24 checks passed
@echarlaix echarlaix deleted the automatic-export branch September 5, 2024 14:37
echarlaix added a commit that referenced this pull request Sep 10, 2024
* Infer if the model needs to be exported

* add test

* fix test revision

* remove infer export in pipeline

* apply comments

* fix offline mode
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.

4 participants