uv安装
pip install uv
uv python list
uv python find
export UV_DEFAULT_INDEX="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
export UV_HTTP_TIMEOUT=120
uv python install 3.12
mkdir -p /opt/testpy & cd /opt/testpy
uv python pin 3.12
uv init
uv venv
source .venv/bin/activate
uv add flask
uv add pandas==2.2
uv remove flask
uv tree
uv pip freeze > requirements.txt
deactivate
vllm安装&使用
uv venv myenv --python 3.12 --seed
source myenv/bin/activate
export UV_DEFAULT_INDEX="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
export UV_HTTP_TIMEOUT=120
uv pip install vllm
uv run --with vllm vllm --help
uv run --with vllm vllm serve /data/models/DeepSeek-R1-Distill-Llama-70B --tensor-parallel-size 4 --host 0.0.0.0 --port 1001 --max-model-len 8192 --gpu-memory-utilization 0.90 --trust-remote-code --enable-reasoning --reasoning-parser deepseek_r1 --enable-chunked-prefill --enable-prefix-caching
deactivate