huggingface / optimum-intel

🤗 Optimum Intel: Accelerate inference with Intel optimization tools
https://huggingface.co/docs/optimum/main/en/intel/index
Apache License 2.0
358 stars 99 forks source link

prevent loading model for export if it is not supported #710

Closed eaidova closed 1 month ago

eaidova commented 1 month ago

What does this PR do?

Prevent downloading and loading model into RAM if it is not supported for export and custom export config is not provided

eaidova commented 1 month ago

@echarlaix @IlyasMoutawwakil @AlexKoff88 could you please take a look?

P.S. Possibly the same changes may be useful for onnx too

HuggingFaceDocBuilderDev commented 1 month ago

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.