Error on import protable_lib via pybindings #9745
Labels
module: extension
Issues related to code under extension/
module: user experience
Issues related to reducing friction for users
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
Here is the error and stack trace:
I have confirmed this issue is new and exist on both
release/0.6
andmain
(7030b33).I notice this issue when updating my local checkout to latest main, as a comparson, the pybindings works fine on an older commit (
0342babc505bcb90244874e9ed9218d90dd67b87
) from Tue this week, so likely the issue is introduced very recently.I caught this issue on
optimum-executch
, unfortunately, I don't know if there is another way to repo, I will just share the repo steps fromoptimum-executch
:optimum-executorch
repo and follow the setup guide here: https://github.com/huggingface/optimum-executorchRUN_SLOW=1 pytest tests/models/test_modeling_bert.py -v -s -k mask
You will see the error
Versions
Collecting environment information...
PyTorch version: 2.7.0.dev20250310
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 15.3.2 (arm64)
GCC version: Could not collect
Clang version: 16.0.0 (clang-1600.0.26.6)
CMake version: version 3.31.4
Libc version: N/A
Python version: 3.11.11 (main, Dec 11 2024, 10:25:04) [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-15.3.2-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Apple M1 Max
Versions of relevant libraries:
[pip3] executorch==0.6.0a0+92408be
[pip3] flake8==6.1.0
[pip3] flake8-breakpoint==1.1.0
[pip3] flake8-bugbear==24.4.26
[pip3] flake8-comprehensions==3.14.0
[pip3] flake8-plugin-utils==1.3.3
[pip3] flake8-pyi==23.5.0
[pip3] mypy==1.14.1
[pip3] mypy-extensions==1.0.0
[pip3] numpy==2.2.4
[pip3] optimum-executorch==0.0.0.dev0
[pip3] torch==2.7.0.dev20250310
[pip3] torchao==0.10.0+git923242e2
[pip3] torchaudio==2.6.0.dev20250310
[pip3] torchsr==1.0.4
[pip3] torchvision==0.22.0.dev20250310
[conda] executorch 0.6.0a0+92408be pypi_0 pypi
[conda] numpy 2.2.4 pypi_0 pypi
[conda] optimum-executorch 0.0.0.dev0 pypi_0 pypi
[conda] torch 2.7.0.dev20250310 pypi_0 pypi
[conda] torchao 0.10.0+git923242e2 pypi_0 pypi
[conda] torchaudio 2.6.0.dev20250310 pypi_0 pypi
[conda] torchfix 0.6.0 pypi_0 pypi
[conda] torchsr 1.0.4 pypi_0 pypi
[conda] torchvision 0.22.0.dev20250310 pypi_0 pypi
cc @mergennachin @byjlw
The text was updated successfully, but these errors were encountered: