I want to run models on the NPU, and I’ve converted them all to the int8 16p format, but I get this error when I run them: terminate called after throwing an instance of ‘std::runtime_error’
terminate called recursively
what(): tcm buffer acquire failed for core id 1.
terminate called recursively
I’ve read that upgrading spacemit-ort to 2.0.5 can fix this, but I don’t seem to be able to upgrade to 2.0.5; I can only get 2.0.3.
cml@cml-spacemitk1xmusepiproboard:~$ pip install --upgrade spacemit-ort --break-system-packages
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: Simple Index, https://git.spacemit.com/api/v4/projects/33/packages/pypi/simple
Requirement already satisfied: spacemit-ort in ./.local/lib/python3.12/site-packages (2.0.2+rc3)
Collecting spacemit-ort
Downloading https://git.spacemit.com/api/v4/projects/33/packages/pypi/files/136fc180ec38909cf2975bf2279c72f0d39a7d2fc5740ba86f8cc34c40d3de40/spacemit_ort-2.0.3-py3-none-linux_riscv64.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 7.5 MB/s eta 0:00:00
Requirement already satisfied: onnxruntime>=1.24.0 in /usr/lib/python3.12/dist-packages (from spacemit-ort) (1.24.0+spacemit.a3)
Requirement already satisfied: coloredlogs in /usr/lib/python3.12/dist-packages (from onnxruntime>=1.24.0->spacemit-ort) (15.0.1)
Requirement already satisfied: flatbuffers in /usr/lib/python3.12/dist-packages (from onnxruntime>=1.24.0->spacemit-ort) (25.12.19)
Requirement already satisfied: numpy>=2.2.0 in ./.local/lib/python3.12/site-packages (from onnxruntime>=1.24.0->spacemit-ort) (2.5.1)
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from onnxruntime>=1.24.0->spacemit-ort) (24.0)
Requirement already satisfied: protobuf in /usr/lib/python3.12/dist-packages (from onnxruntime>=1.24.0->spacemit-ort) (7.35.0)
Requirement already satisfied: sympy in /usr/lib/python3/dist-packages (from onnxruntime>=1.24.0->spacemit-ort) (1.12)
Requirement already satisfied: humanfriendly>=9.1 in /usr/lib/python3.12/dist-packages (from coloredlogs->onnxruntime>=1.24.0->spacemit-ort) (10.0)
Installing collected packages: spacemit-ort
Attempting uninstall: spacemit-ort
Found existing installation: spacemit-ort 2.0.2+rc3
Uninstalling spacemit-ort-2.0.2+rc3:
Successfully uninstalled spacemit-ort-2.0.2+rc3
Successfully installed spacemit-ort-2.0.3