Closed StefanSmith closed 4 months ago
Hi @StefanSmith, thanks for reporting the issue. Marking this as a bug since I can reproduce the behavior.
Patch is released in v1.50.0. If you are AWS SAM CLI user, please wait for next AWS SAM CLI release. Closing
Description:
Installing llama-cpp-python via
sam build --use-container
fails on python versions beyond 3.9.The wheel is built by lambda-builders during the build process (with resulting file name
llama_cpp_python-0.2.55-cp311-cp311-manylinux_2_26_x86_64.whl
) but lambda-builders does not consider this wheel to be compatible because the mapping betwen abi (cp310
) and glibc version (major =2
, minor =26
) does not support python versions beyond 3.9.I am not an expert in manylinux wheels but at first glance it seems like a simple matter of adding entries for
cp310
,cp311
, etc, with value(2, 26)
.Steps to reproduce:
Ensure docker is running with adequate RAM to avoid exhausting memory during wheel build. I allocated 16GB. If using Docker Desktop, go to Preferences > Resources and set the Memory to the desired value.
Observed result:
Expected result:
Running the same steps as above but with
--runtime python3.9
produces the following successful result.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Running on Mac
Add --debug flag to command you are running