IMX95 - NPU do not works

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX95 - NPU do not works

Jump to solution
4,779 Views
IEI-SW3
Contributor II

As title, I’ve checked many related posts, and it seems that the IMX95 NPU still has quite a few issues. Here’s what I’ve tried so far:

Using the TFLite label_image demo program:

  • CPU A1 with kernel 6.6.3 SDK → Even when running label_image with the parameter --external_delegate_path=/usr/lib/libneutron_delegate.so, the NPU doesn’t seem to activate.

  • CPU B0 with kernel 6.12.20 SDK → It shows the following error message and then continues to use CPU computation:

     
    Error in cpuinfo: prctl(PR_SVE_GET_VL) failed INFO: Created TensorFlow Lite XNNPACK delegate for CPU.

My question is: which SDK version actually supports NPU properly? Would upgrading to the latest kernel 6.12.34 possibly help? I’d prefer not to roll back to kernel 6.6 if possible. Thanks.

Tags (1)
0 Kudos
Reply
1 Solution
4,749 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please try the attachment

Best Regards,
Zhiming

View solution in original post

0 Kudos
Reply
8 Replies
4,758 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please download eIQ to convert .tflite with Neutron support.

Zhiming_Liu_0-1761024034289.pngZhiming_Liu_0-1761024034289.png

The eIQ1.16 is for L6.12.20 Neutron support.

Zhiming_Liu_1-1761024318029.pngZhiming_Liu_1-1761024318029.png


Best Regards,
Zhiming

0 Kudos
Reply
4,751 Views
IEI-SW3
Contributor II

Thanks for your response.
Could you proivde me a prebuilt image for IMX95 EVK with 6.6.20 SDK? I can't found the download link from official website, thanks.

0 Kudos
Reply
4,750 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please try the attachment

Best Regards,
Zhiming

0 Kudos
Reply
4,067 Views
Tongshen
Contributor II

Hey Zhiming,

I downloaded the converted model and ran the inference under:
Linux version 6.12.20-lts-next-gdfaf2136deb2 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 14.2.0, GNU ld (GNU Binutils) 2.44) #1 SMP PREEMPT Wed Jun 4 10:15:09 UTC 2025
But get the empty result:

root@imx95-19x19-verdin:/usr/bin/tensorflow-lite-2.18.0/examples# python3 label_image.py -e /usr/lib/libneutron_delegate.so
Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}
INFO: NeutronDelegate delegate: 1 nodes delegated out of 4 nodes with 1 partitions.

INFO: Neutron delegate version: v1.0.0-a5d640e6, zerocp enabled.
Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warning: microcode version mismatch! 0xaf140cf5 (expected 0xcebb80a)
Warm-up time: 0.7 ms

Inference time: 0.5 ms

0.000000: toilet tissue
0.000000: starfish
0.000000: zebra
0.000000: sorrel
0.000000: guinea pig


However, when I downloaded the unconverted model and used eIQ v1.16 to convert the model, the inference result shows:

root@imx95-19x19-verdin:/usr/bin/tensorflow-lite-2.18.0/examples# python3 label_image.py -e /usr/lib/libneutron_delegate.so
Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}
INFO: NeutronDelegate delegate: 1 nodes delegated out of 4 nodes with 1 partitions.

INFO: Neutron delegate version: v1.0.0-a5d640e6, zerocp enabled.
Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warm-up time: 2.0 ms

Inference time: 1.9 ms

0.039216: Newfoundland
0.039216: tench
0.039216: Leonberg
0.039216: shower cap
0.039216: thunder snake

Could you give me more information here? Is my kernel version not correct?



0 Kudos
Reply
4,718 Views
IEI-SW3
Contributor II

Great, it works using your converted model even if the message still showing delegate for CPU on Kernel 6.12.20 SDK.

root@imx95evk:~# python3.13 ./classification.py -i grace_hopper.bmp -l labels_mobilenet_quant_v1_224.txt -m mobilenet_v1_1.0_224_quant_converted.tflite -e /usr/lib/libneutron_delegate.so
Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}
INFO: NeutronDelegate delegate: 1 nodes delegated out of 4 nodes with 1 partitions.

INFO: Neutron delegate version: v1.0.0-a5d640e6, zerocp enabled.
Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warning: microcode version mismatch! 0xcebb80a (expected 0x36336a10)
0.850980: military uniform
0.058824: Windsor tie
0.011765: bulletproof vest
0.007843: bow tie
0.007843: mortarboard
time: 1.484ms

 

Where's the converted tool I can get? Because my target is running mobilebert.tflite for tiny NLP model, it seems convert for Neutron NPU is necessary, thanks.

If you have better way to running NLP (no matter LLM or SLM model), welcome to provide me, thanks a lot

0 Kudos
Reply
4,707 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,
Please install eIQ from here.

https://www.nxp.com/design/design-center/software/eiq-ai-development-environment/eiq-toolkit-for-end...

 

For LLM models, let me confirm if we can provide it.


Best Regards,
Zhiming

4,695 Views
IEI-SW3
Contributor II

Hello, I would like to know if this conversion method will become the standard approach in the future.
It’s a bit inconvenient for customers, since they can’t directly use a generic model and must perform an additional conversion step (similar to Rockchip’s RKNN). If this will be the mainstream method on IMX95, please let me know — I’ll need to communicate this to the customer in advance. Thank you.

0 Kudos
Reply
4,661 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

This is the standard approach. 

Zhiming_Liu_0-1761095740798.pngZhiming_Liu_0-1761095740798.png

 



Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2189555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAs%20title%2C%20I%E2%80%99ve%20checked%20many%20related%20posts%2C%20and%20it%20seems%20that%20the%20IMX95%20NPU%20still%20has%20quite%20a%20few%20issues.%20Here%E2%80%99s%20what%20I%E2%80%99ve%20tried%20so%20far%3A%3C%2FP%3E%3CP%3EUsing%20the%20%3CSTRONG%3ETFLite%20label_image%20demo%20program%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3ECPU%20A1%20with%20kernel%206.6.3%20SDK%3C%2FSTRONG%3E%20%E2%86%92%20Even%20when%20running%20label_image%20with%20the%20parameter%20--external_delegate_path%3D%2Fusr%2Flib%2Flibneutron_delegate.so%2C%20the%20NPU%20doesn%E2%80%99t%20seem%20to%20activate.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ECPU%20B0%20with%20kernel%206.12.20%20SDK%3C%2FSTRONG%3E%20%E2%86%92%20It%20shows%20the%20following%20error%20message%20and%20then%20continues%20to%20use%20CPU%20computation%3A%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3EError%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Ein%3C%2FSPAN%3E%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%20%3CSPAN%20class%3D%22%22%3EINFO%3A%3C%2FSPAN%3E%20Created%20TensorFlow%20Lite%20XNNPACK%20%3CSPAN%20class%3D%22%22%3Edelegate%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Efor%3C%2FSPAN%3E%20CPU.%20%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EMy%20question%20is%3A%20which%20SDK%20version%20actually%20supports%20NPU%20properly%3F%20Would%20upgrading%20to%20the%20latest%20%3CSTRONG%3Ekernel%206.12.34%3C%2FSTRONG%3E%20possibly%20help%3F%20I%E2%80%99d%20prefer%20not%20to%20roll%20back%20to%20%3CSTRONG%3Ekernel%206.6%3C%2FSTRONG%3E%20if%20possible.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%26nbsp%3B%3CSPAN%3Ethe%20standard%20approach.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1761095740798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1761095740798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361971iF5F566455DEB157A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1761095740798.png%22%20alt%3D%22Zhiming_Liu_0-1761095740798.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EZhiming_Liu_0-1761095740798.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189884%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189884%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20would%20like%20to%20know%20if%20this%20conversion%20method%20will%20become%20the%20standard%20approach%20in%20the%20future.%3CBR%20%2F%3EIt%E2%80%99s%20a%20bit%20inconvenient%20for%20customers%2C%20since%20they%20can%E2%80%99t%20directly%20use%20a%20generic%20model%20and%20must%20perform%20an%20additional%20conversion%20step%20(similar%20to%20Rockchip%E2%80%99s%20RKNN).%20If%20this%20will%20be%20the%20mainstream%20method%20on%20IMX95%2C%20please%20let%20me%20know%20%E2%80%94%20I%E2%80%99ll%20need%20to%20communicate%20this%20to%20the%20customer%20in%20advance.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189745%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189745%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EPlease%20install%20eIQ%20from%20here.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Feiq-ai-development-environment%2Feiq-toolkit-for-end-to-end-model-development-and-deployment%3AEIQ-TOOLKIT%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Feiq-ai-development-environment%2Feiq-toolkit-for-end-to-end-model-development-and-deployment%3AEIQ-TOOLKIT%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20%3CSPAN%3ELLM%20models%2C%20let%20me%20confirm%20if%20we%20can%20provide%20it.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189735%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189735%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGreat%2C%20it%20works%20using%20your%20converted%20model%20even%20if%20the%20message%20still%20showing%20delegate%20for%20CPU%20on%20Kernel%206.12.20%20SDK.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3Eroot%40imx95evk%3A~%23%20python3.13%20.%2Fclassification.py%20-i%20grace_hopper.bmp%20-l%20labels_mobilenet_quant_v1_224.txt%20-m%20mobilenet_v1_1.0_224_quant_converted.tflite%20-e%20%2Fusr%2Flib%2Flibneutron_delegate.so%3CBR%20%2F%3ELoading%20external%20delegate%20from%20%2Fusr%2Flib%2Flibneutron_delegate.so%20with%20args%3A%20%7B%7D%3CBR%20%2F%3EINFO%3A%20NeutronDelegate%20delegate%3A%201%20nodes%20delegated%20out%20of%204%20nodes%20with%201%20partitions.%3C%2FP%3E%3CP%3EINFO%3A%20Neutron%20delegate%20version%3A%20v1.0.0-a5d640e6%2C%20zerocp%20enabled.%3CBR%20%2F%3EError%20in%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%3CBR%20%2F%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3CBR%20%2F%3EWarning%3A%20microcode%20version%20mismatch!%200xcebb80a%20(expected%200x36336a10)%3CBR%20%2F%3E0.850980%3A%20military%20uniform%3CBR%20%2F%3E0.058824%3A%20Windsor%20tie%3CBR%20%2F%3E0.011765%3A%20bulletproof%20vest%3CBR%20%2F%3E0.007843%3A%20bow%20tie%3CBR%20%2F%3E0.007843%3A%20mortarboard%3CBR%20%2F%3E%3CSTRONG%3Etime%3A%201.484ms%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhere's%20the%20converted%20tool%20I%20can%20get%3F%20Because%20my%20target%20is%20running%20mobilebert.tflite%20for%20tiny%20NLP%20model%2C%20it%20seems%20convert%20for%26nbsp%3BNeutron%20NPU%20is%20necessary%2C%20thanks.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20better%20way%20to%20running%20NLP%20(no%20matter%20LLM%20or%20SLM%20model)%2C%20welcome%20to%20provide%20me%2C%20thanks%20a%20lot%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20try%20the%20attachment%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20your%20response.%3CBR%20%2F%3ECould%20you%20proivde%20me%20a%20prebuilt%20image%20for%20IMX95%20EVK%20with%206.6.20%20SDK%3F%20I%20can't%20found%20the%20download%20link%20from%20official%20website%2C%20thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX95%20-%20NPU%20do%20not%20works%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EPlease%20download%20eIQ%20to%20convert%20.tflite%20with%20Neutron%20support.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1761024034289.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1761024034289.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361735iB6FEBBFCB1B4FCB0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1761024034289.png%22%20alt%3D%22Zhiming_Liu_0-1761024034289.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EZhiming_Liu_0-1761024034289.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20eIQ1.16%20is%20for%20L6.12.20%26nbsp%3BNeutron%20support.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_1-1761024318029.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_1-1761024318029.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361736i0389BF8CAD6E8C91%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_1-1761024318029.png%22%20alt%3D%22Zhiming_Liu_1-1761024318029.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EZhiming_Liu_1-1761024318029.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E