pytorch / executorch

On-device AI across mobile, embedded and edge for PyTorch
https://pytorch.org/executorch/
Other
1.88k stars 308 forks source link

Main requires numpy 1.25 but coremltools only supports up to 1.23 #4150

Open ccharp opened 3 months ago

ccharp commented 3 months ago

🐛 Describe the bug

I'm trying to run:

./backends/apple/coreml/scripts/install_requirements.sh

This repository's pyproject.tml specifies "numpy>=1.25.2, but coremltools only allows v1.23 for python 3.11. See here: https://github.com/apple/coremltools/blob/main/reqs/build.pip#L5

Versions

2024-07-03 12:59:09 (6.52 MB/s) - ‘collect_env.py’ saved [23357/23357]

Collecting environment information... PyTorch version: 2.5.0.dev20240618 Is debug build: False CUDA used to build PyTorch: None ROCM used to build PyTorch: N/A

OS: macOS 14.5 (arm64) GCC version: Could not collect Clang version: 15.0.0 (clang-1500.1.0.2.5) CMake version: version 3.30.0 Libc version: N/A

Python version: 3.11.9 (main, Apr 19 2024, 11:43:47) [Clang 14.0.6 ] (64-bit runtime) Python platform: macOS-14.5-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.4.0a0+8bd51ea [pip3] numpy==1.23.2 [pip3] torch==2.5.0.dev20240618 [pip3] torchaudio==2.4.0.dev20240618 [pip3] torchsr==1.0.4 [pip3] torchvision==0.20.0.dev20240618 [conda] executorch 0.4.0a0+8bd51ea pypi_0 pypi [conda] numpy 1.23.2 pypi_0 pypi [conda] torch 2.5.0.dev20240618 pypi_0 pypi [conda] torchaudio 2.4.0.dev20240618 pypi_0 pypi [conda] torchsr 1.0.4 pypi_0 pypi [conda] torchvision 0.20.0.dev20240618 pypi_0 pypi

ccharp commented 3 months ago

Tip of main as of this moment, btw.

cymbalrush commented 2 weeks ago

coremltools 8.0 release has

numpy==2.0.0; python_version >= "3.9"

https://github.com/pytorch/executorch/pull/5425/ updated the coremltools version. This should be fixed now.