Skip to content

Add interactive mlx task#157

Open
mina-parham wants to merge 5 commits intomainfrom
add/interactive-mlx-lm
Open

Add interactive mlx task#157
mina-parham wants to merge 5 commits intomainfrom
add/interactive-mlx-lm

Conversation

@mina-parham
Copy link
Copy Markdown
Contributor

No description provided.

"name": "MLX LM Server",
"description": "MLX LM OpenAI-compatible inference server for Apple Silicon (plus Open WebUI)",
"setup": "if ! command -v uv >/dev/null 2>&1; then curl -LsSf https://astral.sh/uv/install.sh | sh; fi && export PATH=\"$HOME/.local/bin:$HOME/.cargo/bin:$PATH\" && uv venv ~/mlx-lm-venv --seed --python 3.11 && . ~/mlx-lm-venv/bin/activate && uv pip install \"mlx-lm>=0.28.3\" open-webui",
"command": "ADAPTER_FLAG=''; if [ -n \"$ADAPTER_PATH\" ]; then ADAPTER_FLAG=\"--adapter-path $ADAPTER_PATH\"; fi; ~/mlx-lm-venv/bin/python -m mlx_lm.server --model $MODEL_NAME $ADAPTER_FLAG --host 0.0.0.0 --port 8000 > /tmp/mlx-lm.log 2>&1 & sleep 5 && OPENAI_API_BASE_URL=http://127.0.0.1:8000/v1 OPENAI_API_KEY=dummy WEBUI_AUTH=false ~/mlx-lm-venv/bin/open-webui serve --host 0.0.0.0 --port 8080 > /tmp/openwebui.log 2>&1 & sleep 5 && echo 'Local MLX LM API: http://localhost:8000' && echo 'Local Open WebUI: http://localhost:8080' && tail -f /tmp/mlx-lm.log /tmp/openwebui.log",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to use port 8000? I know we probably aren't going to be running on a server with other things but that port gets used by vllm.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to 8001

"password": true
}
],
"icon": "https://github.com/ml-explore/mlx-lm.png",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to be working?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Like the URL 404s. Although github is having issues today.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed logo

@dadmobile
Copy link
Copy Markdown
Member

Are we still moving forward wtih this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants