Open peterzheng98 opened 2 months ago
Have a look under "https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.html#limitations", the NPU plugin currently only supports static shapes.
Can you run your use case on any other device type (CPU, GPU, AUTO, MULTI)?
@peterzheng98
unfortunatly, NPU does not support dynamic shapes yet as stated in your error message. You can try to reshape model to static input shapes like demonstrated in this notebook https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/openvino-api/openvino-api.ipynb
@dmatveev @smirnov-alexey do you have info about pixart model support on NPU?
@peterzheng98 unfortunatly, NPU does not support dynamic shapes yet as stated in your error message. You can try to reshape model to static input shapes like demonstrated in this notebook https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/openvino-api/openvino-api.ipynb
@dmatveev @smirnov-alexey do you have info about pixart model support on NPU?
I don't think so. I could run it on NPU once the shape is static to see if it helps
Have a look under "https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.html#limitations", the NPU plugin currently only supports static shapes.
Can you run your use case on any other device type (CPU, GPU, AUTO, MULTI)?
Thanks for the reply. The auto and GPU works.
@peterzheng98 unfortunatly, NPU does not support dynamic shapes yet as stated in your error message. You can try to reshape model to static input shapes like demonstrated in this notebook https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/openvino-api/openvino-api.ipynb @dmatveev @smirnov-alexey do you have info about pixart model support on NPU?
I don't think so. I could run it on NPU once the shape is static to see if it helps
I've tried compiling the model into IR and visualizing the IR by netron.
It seems that there's no -1
or ?
in the parameters shape, and only the input shape contains ?
or -1
.
Does it mean that I need change all -1
or ?
to fixed value to inference that model on NPU?
Describe the bug When compiling to NPU, runtime error raised.
The model remains unchanged (
PixArt-alpha/PixArt-LCM-XL-2-1024-MS
).Installation instructions (Please mark the checkbox) [ x ] I followed the installation guide at https://github.com/openvinotoolkit/openvino_notebooks#-installation-guide to install the notebooks.
Environment information OpenVINO IE version: 2024.3.0-36-5e5f3726bef Python version: 3.10 torch version: 2.4.0 transformers version: 4.44.2