debug-tp-2


文档摘要

A Quick Reproduce to Evaluate the Speed of TP 2

A Quick Reproduce to Evaluate the Speed of TP 2

docker run \ -it \ --shm-size 32g \ --gpus all \ -v {YOUR_HUGGINGFACE_CACHE_DIR}:/root/.cache \ --ipc=host \ --network=host \ --privileged \ --name sglang-FSDP-TP-2 \ lmsysorg/sglang:dev \ /bin/zsh
apt update apt install -y python3.10 python3.10-venv python3 -m ensurepip --upgrade python3 -m venv ~/.python/veRL-multiturn-rollout source ~/.python/veRL-multiturn-rollout/bin/activate python3 -m pip install uv
cd ~ git clone -b fsdp_tp_2_sgl https://github.com/volcengine/verl.git cd verl python3 -m uv pip install -e ".[sglang]" python3 -m uv pip install wheel python3 -m uv pip install packaging # best to use for torch 2.6.0 and sglang 0.4.6.post1 flash-attn 2.7.4.post1 python3 -m uv pip install flash-attn==2.7.4.post1 --no-build-isolation --no-deps python3 -m uv pip install . python3 -m uv pip install -r ./requirements.txt
export WANDB_API_KEY={YOUR_WANDB_API_KEY} function now() { date '+%Y-%m-%d-%H-%M' }
python3 ./examples/data_preprocess/gsm8k_multiturn_w_tool.py
bash profile-sglang.sh 1 # The final 1 is the number of SGLang TP size.

作者与出处
原作者: zhaochenyang20
来源:zhaochenyang20
许可证:Apache-2.0
整理: 灏天文库整理
由灏天文库结构化整理,提供目录导航、全文检索与在线阅读,便于系统化学习
发布者: 作者: zhaochenyang20 转发
评论区 (0)
U