Merge pull request #298 from trycua/fix/mlx

[Fix] Remove mlx-vlm patch, use PyPi release mlx-vlm>=0.1.27
This commit is contained in:
ddupont
2025-06-20 12:22:56 -04:00
committed by GitHub
3 changed files with 4 additions and 16 deletions

View File

@@ -34,10 +34,7 @@ pip install "cua-agent[anthropic]" # Anthropic Cua Loop
pip install "cua-agent[uitars]" # UI-Tars support
pip install "cua-agent[omni]" # Cua Loop based on OmniParser (includes Ollama for local models)
pip install "cua-agent[ui]" # Gradio UI for the agent
# For local UI-TARS with MLX support, you need to manually install mlx-vlm:
pip install "cua-agent[uitars-mlx]"
pip install git+https://github.com/ddupont808/mlx-vlm.git@stable/fix/qwen2-position-id # PR: https://github.com/Blaizzy/mlx-vlm/pull/349
pip install "cua-agent[uitars-mlx]" # MLX UI-Tars support
```
## Run

View File

@@ -38,8 +38,7 @@ uitars = [
"httpx>=0.27.0,<0.29.0",
]
uitars-mlx = [
# The mlx-vlm package needs to be installed manually with:
# pip install git+https://github.com/ddupont808/mlx-vlm.git@stable/fix/qwen2-position-id
"mlx-vlm>=0.1.27; sys_platform == 'darwin'"
]
ui = [
"gradio>=5.23.3,<6.0.0",
@@ -88,9 +87,8 @@ all = [
"requests>=2.31.0,<3.0.0",
"ollama>=0.4.7,<0.5.0",
"gradio>=5.23.3,<6.0.0",
"python-dotenv>=1.0.1,<2.0.0"
# mlx-vlm needs to be installed manually with:
# pip install git+https://github.com/ddupont808/mlx-vlm.git@stable/fix/qwen2-position-id
"python-dotenv>=1.0.1,<2.0.0",
"mlx-vlm>=0.1.27; sys_platform == 'darwin'"
]
[tool.pdm]

View File

@@ -209,13 +209,6 @@ echo "📦 Updating C/ua packages..."
pip install -U pip setuptools wheel Cmake
pip install -U cua-computer "cua-agent[all]"
# Install mlx-vlm on Apple Silicon Macs
if [[ $(uname -m) == 'arm64' ]]; then
echo "Installing mlx-vlm for Apple Silicon Macs..."
pip install git+https://github.com/Blaizzy/mlx-vlm.git
# pip install git+https://github.com/ddupont808/mlx-vlm.git@stable/fix/qwen2-position-id
fi
# Create a simple demo script
mkdir -p "$DEMO_DIR"