Skip to content

Commit 4f1ee03

Browse files
committed
Simplify
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent ab215c3 commit 4f1ee03

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,15 @@ build-darwin-python-backend: build
366366
bash ./scripts/build/python-darwin.sh
367367

368368
backends/mlx:
369-
BACKEND=mlx BUILD_TYPE=mps $(MAKE) build-darwin-python-backend
369+
BACKEND=mlx $(MAKE) build-darwin-python-backend
370370
./local-ai backends install "ocifile://$(abspath ./backend-images/mlx.tar)"
371371

372372
backends/diffuser-darwin:
373-
USE_PIP=true BACKEND=diffusers BUILD_TYPE=mps $(MAKE) build-darwin-python-backend
373+
BACKEND=diffusers $(MAKE) build-darwin-python-backend
374374
./local-ai backends install "ocifile://$(abspath ./backend-images/diffusers.tar)"
375375

376376
backends/mlx-vlm: build
377-
BACKEND=mlx-vlm BUILD_TYPE=mps bash ./scripts/build/python-darwin.sh
377+
BACKEND=mlx-vlm bash ./scripts/build/python-darwin.sh
378378
./local-ai backends install "ocifile://$(abspath ./backend-images/mlx-vlm.tar)"
379379

380380
backend-images:

scripts/build/python-darwin.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -ex
44

55
export PORTABLE_PYTHON=true
6+
export BUILD_TYPE=mps
7+
export USE_PIP=true
68
IMAGE_NAME="${IMAGE_NAME:-localai/llama-cpp-darwin}"
79
mkdir -p backend-images
810
make -C backend/python/${BACKEND}

0 commit comments

Comments
 (0)