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