From c1f89c4417eafb415ba4ae199cacfe5d752274c4 Mon Sep 17 00:00:00 2001 From: "chenguangjian.jk" Date: Thu, 25 Jul 2024 10:55:25 +0800 Subject: [PATCH] mlx_lm.server --model mlx-community/Mistral-Nemo-Instruct-2407-8bit --trust-remote-code --port 8722 --- llms/mlx_lm/Makefile | 3 +-- llms/mlx_lm/kill.sh | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100755 llms/mlx_lm/kill.sh diff --git a/llms/mlx_lm/Makefile b/llms/mlx_lm/Makefile index 0a0843ef..94844d12 100644 --- a/llms/mlx_lm/Makefile +++ b/llms/mlx_lm/Makefile @@ -1,9 +1,8 @@ run: - #mlx_lm.server --model mlx-community/Meta-Llama-3.1-8B-Instruct-8bit --trust-remote-code --port 8722 mlx_lm.server --model mlx-community/Mistral-Nemo-Instruct-2407-8bit --trust-remote-code --port 8722 k: - ps -ef|grep 'mlx_lm.server'|awk '{print $2}'|xargs kill -9 + ./kill.sh w: curl -X GET "http://127.0.0.1:9000/api/ai/WriteBlogRandomlyWithLLM?model=MLXLMServer" -H "Request-Origion:SwaggerBootstrapUi" -H "accept:*/*" diff --git a/llms/mlx_lm/kill.sh b/llms/mlx_lm/kill.sh new file mode 100755 index 00000000..f481a37f --- /dev/null +++ b/llms/mlx_lm/kill.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +ps -ef|grep 'mlx_lm.server'|awk '{print $2}'|xargs kill -9 \ No newline at end of file