mirror of
https://github.com/mudler/LocalAI.git
synced 2025-12-24 06:58:57 -05:00
* Add mlx-vlm Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Add to CI workflows Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Add requirements-mps.txt Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Simplify Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
24 lines
542 B
Bash
24 lines
542 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
export PORTABLE_PYTHON=true
|
|
export BUILD_TYPE=mps
|
|
export USE_PIP=true
|
|
IMAGE_NAME="${IMAGE_NAME:-localai/llama-cpp-darwin}"
|
|
mkdir -p backend-images
|
|
make -C backend/python/${BACKEND}
|
|
|
|
cp -rfv backend/python/common backend/python/${BACKEND}/
|
|
|
|
PLATFORMARCH="${PLATFORMARCH:-darwin/arm64}"
|
|
|
|
./local-ai util create-oci-image \
|
|
backend/python/${BACKEND}/. \
|
|
--output ./backend-images/${BACKEND}.tar \
|
|
--image-name $IMAGE_NAME \
|
|
--platform $PLATFORMARCH
|
|
|
|
make -C backend/python/${BACKEND} clean
|
|
|