mlx_lm.server --model mlx-community/Meta-Llama-3.1-8B-Instruct-8bit --trust-remote-code --port 8722

This commit is contained in:
chenguangjian.jk
2024-07-24 11:45:37 +08:00
parent cd8efc7fbc
commit 8e3f04f66c
2 changed files with 437 additions and 0 deletions

11
llms/mlx_lm/Makefile Normal file
View File

@@ -0,0 +1,11 @@
run:
mlx_lm.server --model mlx-community/Meta-Llama-3.1-8B-Instruct-8bit --trust-remote-code --port 8722
k:
ps -ef|grep 'mlx_lm.server'|awk '{print $2}'|xargs kill -9
w:
curl -X GET "http://127.0.0.1:9000/api/ai/WriteBlogRandomlyWithLLM?model=MLXLMServer" -H "Request-Origion:SwaggerBootstrapUi" -H "accept:*/*"
c:
conda activate m3mlx