Skip to content

Commit 11cbf0a

Browse files
committed
Add mlx-vlm
1 parent 1d830ce commit 11cbf0a

File tree

9 files changed

+713
-0
lines changed

9 files changed

+713
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ backends/mlx: build
369369
BACKEND=mlx BUILD_TYPE=mps $(MAKE) build-darwin-python-backend
370370
./local-ai backends install "ocifile://$(abspath ./backend-images/mlx.tar)"
371371

372+
backends/mlx-vlm: build
373+
BACKEND=mlx-vlm BUILD_TYPE=mps bash ./scripts/build/python-darwin.sh
374+
./local-ai backends install "ocifile://$(abspath ./backend-images/mlx-vlm.tar)"
375+
372376
backend-images:
373377
mkdir -p backend-images
374378

backend/index.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,23 @@
142142
- text-to-text
143143
- LLM
144144
- MLX
145+
- &mlx-vlm
146+
name: "mlx-vlm"
147+
uri: "quay.io/go-skynet/local-ai-backends:latest-metal-darwin-arm64-mlx-vlm"
148+
icon: https://avatars.githubusercontent.com/u/102832242?s=200&v=4
149+
urls:
150+
- https://github.com/ml-explore/mlx-vlm
151+
mirrors:
152+
- localai/localai-backends:latest-metal-darwin-arm64-mlx-vlm
153+
license: MIT
154+
description: |
155+
Run Vision-Language Models with MLX
156+
tags:
157+
- text-to-text
158+
- multimodal
159+
- vision-language
160+
- LLM
161+
- MLX
145162
- &rerankers
146163
name: "rerankers"
147164
alias: "rerankers"
@@ -391,6 +408,11 @@
391408
uri: "quay.io/go-skynet/local-ai-backends:master-metal-darwin-arm64-mlx"
392409
mirrors:
393410
- localai/localai-backends:master-metal-darwin-arm64-mlx
411+
- !!merge <<: *mlx-vlm
412+
name: "mlx-vlm-development"
413+
uri: "quay.io/go-skynet/local-ai-backends:master-metal-darwin-arm64-mlx-vlm"
414+
mirrors:
415+
- localai/localai-backends:master-metal-darwin-arm64-mlx-vlm
394416
- !!merge <<: *kitten-tts
395417
name: "kitten-tts-development"
396418
uri: "quay.io/go-skynet/local-ai-backends:master-kitten-tts"

backend/python/mlx-vlm/Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.PHONY: mlx-vlm
2+
mlx-vlm:
3+
bash install.sh
4+
5+
.PHONY: run
6+
run: mlx-vlm
7+
@echo "Running mlx-vlm..."
8+
bash run.sh
9+
@echo "mlx run."
10+
11+
.PHONY: test
12+
test: mlx-vlm
13+
@echo "Testing mlx-vlm..."
14+
bash test.sh
15+
@echo "mlx tested."
16+
17+
.PHONY: protogen-clean
18+
protogen-clean:
19+
$(RM) backend_pb2_grpc.py backend_pb2.py
20+
21+
.PHONY: clean
22+
clean: protogen-clean
23+
rm -rf venv __pycache__

0 commit comments

Comments
 (0)