rl4phyx-backup / logs /install_verl_git.log
YUNTA88's picture
Upload folder using huggingface_hub
3eee49d verified
+ echo '=== Step 1: Install veRL from GitHub main ==='
=== Step 1: Install veRL from GitHub main ===
+ pip uninstall verl -y
+ tail -3
Uninstalling verl-0.7.0:
Successfully uninstalled verl-0.7.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ pip install git+https://ghfast.top/https://github.com/volcengine/verl.git@main --no-deps
+ tail -10
Collecting git+https://ghfast.top/https://github.com/volcengine/verl.git@main
Cloning https://ghfast.top/https://github.com/volcengine/verl.git (to revision main) to /tmp/pip-req-build-vs_is4qv
ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
+ python3 -c 'import verl'
+ echo 'Mirror failed, trying direct GitHub...'
Mirror failed, trying direct GitHub...
+ pip install git+https://github.com/volcengine/verl.git@main --no-deps
+ tail -10
Collecting git+https://github.com/volcengine/verl.git@main
Cloning https://github.com/volcengine/verl.git (to revision main) to /tmp/pip-req-build-cbzcv7tz
ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
+ echo ''
+ echo '=== Step 2: Clear pycache ==='
=== Step 2: Clear pycache ===
++ python3 -c 'import verl; import os; print(os.path.dirname(verl.__file__))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'verl'
+ VERL_PATH=
+ echo 'veRL path: '
veRL path:
+ find '' -type d -name __pycache__ -exec rm -rf '{}' +
+ echo ''
+ echo '=== Step 3: Patch flash_attention_2 -> sdpa ==='
=== Step 3: Patch flash_attention_2 -> sdpa ===
+ find '' -name '*.py' -exec sed -i s/flash_attention_2/sdpa/g '{}' +
find: '': No such file or directory
+ find '' -name '*.yaml' -exec sed -i s/flash_attention_2/sdpa/g '{}' +
find: '': No such file or directory
++ grep -rn flash_attention_2 '--include=*.py'
++ wc -l
+ echo 'Remaining flash_attention_2: 12'
Remaining flash_attention_2: 12
++ grep -rn '"sdpa"' '--include=*.py' '--include=*.yaml'
++ wc -l
+ echo 'sdpa refs: 5'
sdpa refs: 5
+ find '' -type d -name __pycache__ -exec rm -rf '{}' +
+ echo ''
+ echo '=== Step 4: Verify ==='
=== Step 4: Verify ===
+ python3
/opt/conda/lib/python3.11/site-packages/torch/utils/_pytree.py:185: FutureWarning: optree is installed but the version is too old to support PyTorch Dynamo in C++ pytree. C++ pytree support is disabled. Please consider upgrading optree using `python3 -m pip install --upgrade 'optree>=0.13.0'`.
warnings.warn(
torch: 2.6.0+cu124
INFO 03-08 05:30:38 [__init__.py:239] Automatically detected platform cuda.
vLLM: 0.8.5
Traceback (most recent call last):
File "<stdin>", line 7, in <module>
ModuleNotFoundError: No module named 'verl'
+ echo INSTALL_DONE
INSTALL_DONE