openjev-p300x2 / scripts /setup_vllm_env.sh
changh95's picture
openjev (Qwen3.5-4B NLI classifier) on P300x2: TT code, vLLM pooling patches, results, Flappy Bird demo videos + viewer
32bed67 verified
Raw History Blame Contribute Delete
982 Bytes
#!/bin/bash
# Install vLLM 0.26.0 (TT "empty" target) + the vllm-tt-plugin fork into tt-metal's python_env.
# Mirrors vllm-tt-plugin/docs/install-vllm-tt.sh (run from the plugin root).
set -euo pipefail
source /home/ttuser/experiments/openjev/env.sh
cd /home/ttuser/experiments/openjev/vllm-tt-plugin
PY=$PYTHON_ENV_DIR/bin/python
$PY -m pip install -q uv 2>/dev/null || true
export VIRTUAL_ENV=$PYTHON_ENV_DIR # uv pip targets this venv
UV=$PYTHON_ENV_DIR/bin/uv
REQ=$(mktemp)
curl -fsSL https://raw.githubusercontent.com/vllm-project/vllm/v0.26.0/requirements/common.txt -o "$REQ"
$UV pip install --override docs/vllm-overrides.txt -r "$REQ"
rm -f "$REQ"
$UV pip install --no-deps --index-url https://download.pytorch.org/whl/cpu torchvision==0.26.0
VLLM_TARGET_DEVICE=empty $UV pip install --no-deps --no-binary vllm vllm==0.26.0
$UV pip install -e .
$PY -c "import vllm, vllm_tt_plugin; print('vllm', vllm.__version__, 'plugin', vllm_tt_plugin.__file__)"
echo SETUP_VLLM_DONE