optimum-intel icon indicating copy to clipboard operation
optimum-intel copied to clipboard

Pipeline

Open jiqing-feng opened this issue 1 year ago • 10 comments

Hi @echarlaix . I just recognized that we didn't have any ipex optimization guide in README.

To make it more friendly to users, I integrated the generation modeling in our new pipeline. Users can just import pipeline from optimum-intel and easily apply optimum-intel optimization by only changing 1 line code from HF.

I think this approach is better than the old one, and it also aligns with optimum-nvidia

You can see that I simplified the pipeline as much as possible because we only need to consider text-generation for now. With this framework, it would be better to enable other tasks in the future.

Would you please help to review these changes? Thx!

jiqing-feng avatar Jan 08 '24 06:01 jiqing-feng

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.

Hi @echarlaix I have updated the pipeline design to try to align with the optimum. Please take a look and check if the design is correct. Once our design is done, we could discuss the tests : )

jiqing-feng avatar Apr 02 '24 07:04 jiqing-feng

Hi @echarlaix . Would you please review my changes? Thx!

jiqing-feng avatar Apr 07 '24 07:04 jiqing-feng

Hi @IlyasMoutawwakil . Thanks for your review. Would you please check my new changes? Thx!

jiqing-feng avatar Apr 15 '24 05:04 jiqing-feng

@jiqing-feng great PR! I left a comment about one last place where hub kwargs should be passed as well. Can you please add a test for the default task models, to make sure they're always usuable/exportable with simple pipeline(task=)

IlyasMoutawwakil avatar Apr 22 '24 10:04 IlyasMoutawwakil

Hi @IlyasMoutawwakil @echarlaix . I have finished your required changes, but the CI fails are not related to my changes. Would you please take a look? Thx!

jiqing-feng avatar Apr 25 '24 01:04 jiqing-feng

Hi @IlyasMoutawwakil , I have added the test for the default task models, but these models are too large, so the CI is over time. Do you have any idea how to fix it?

jiqing-feng avatar Apr 28 '24 08:04 jiqing-feng

Thank you @jiqing-feng , yeah I didn't expect that, let's not include them for now. We can add them to a slow tests CI later. otherwise LGTM !

IlyasMoutawwakil avatar Apr 29 '24 07:04 IlyasMoutawwakil

Hi @IlyasMoutawwakil . I think we could merge this PR since the failed CIs are not related to my changes

jiqing-feng avatar Apr 29 '24 08:04 jiqing-feng

To fix the code style test you can do the following :

pip install .[quality]
make style

echarlaix avatar Apr 29 '24 10:04 echarlaix

Hi @echarlaix . I have fixed all your comments except the model/graph check. Would you please review it? Thx!

jiqing-feng avatar May 06 '24 02:05 jiqing-feng

Hi @echarlaix @IlyasMoutawwakil . Thanks for your review. I suppose we can merge it.

jiqing-feng avatar May 15 '24 07:05 jiqing-feng