cancel
Showing results for 
Search instead for 
Did you mean: 

Weights compression using Decompression Unit on STM32N6 NPU

AMurz.1
Associate III

Hi,

Is there a way to enable weights compression while also using the STM32N6 NPU ?

I saw there is Decompression unit in the reference manual where it tells the NPU compiler is the tool that generate codebooks offline (there is also mention of it in lib_aton.h too):

AMurz1_0-1762120315464.png

AMurz1_1-1762120331873.png

This would help to reduce the model size in RAM.

 

I've tried with models using a single channel in 1x1 Conv, but maybe this feature can only be used with some specific conditions ?

 

Thanks!

Alexis Murzeau

 

 

1 REPLY 1
Julian E.
ST Employee

Hi @AMurz.1,

 

The compression is not supported by the ST Edge AI Core CLI using the NPU.

JulianE_0-1762158968414.png

ref: https://stedgeai-dc.st.com/assets/embedded-docs/command_line_interface.html 

 

For any other MCU you can use this -c option to explicitly use the compression.

 

For the NPU, the support of compression will most likely come at some point. I know that the first level of developer working on it have some early commands/tools to play with it, but it is not tested and not even available internally.

 

have a good day,

Julian

 

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.