-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[WIP] VeOmni RL Engine #4850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[WIP] VeOmni RL Engine #4850
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| #!/bin/bash | ||
|
|
||
|
|
||
|
|
||
| export MAX_JOBS=32 | ||
| eval "$(conda shell.bash hook)" | ||
| conda create -n verlVeomni python=3.11 -y | ||
| conda activate verlVeomni | ||
|
|
||
| python -m pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 | ||
JacobHelwig marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| uv pip install --no-cache-dir "vllm==0.11.0" | ||
|
|
||
| echo "2. install basic packages" | ||
| uv pip install "transformers[hf_xet]>=4.51.0" accelerate datasets peft hf-transfer \ | ||
| "numpy<2.0.0" "pyarrow>=15.0.0" pandas "tensordict>=0.8.0,<=0.10.0,!=0.9.0" torchdata \ | ||
| ray[default] codetiming hydra-core pylatexenc qwen-vl-utils wandb dill pybind11 liger-kernel mathruler \ | ||
| pytest py-spy pre-commit ruff tensorboard | ||
|
|
||
| echo "pyext is lack of maintainace and cannot work with python 3.12." | ||
| echo "if you need it for prime code rewarding, please install using patched fork:" | ||
| echo "pip install git+https://github.com/ShaohonChen/PyExt.git@py311support" | ||
|
|
||
| uv pip install "nvidia-ml-py>=12.560.30" "fastapi[standard]>=0.115.0" "optree>=0.13.0" "pydantic>=2.9" "grpcio>=1.62.1" | ||
|
|
||
|
|
||
| echo "3. install FlashAttention and FlashInfer" | ||
| # FlashAttention will be installed automatically by VeOmni[gpu] | ||
| # The correct version (2.8.3+cu12torch2.8cxx11abiTRUE) is specified in VeOmni's pyproject.toml | ||
|
|
||
| # pip install --no-cache-dir flashinfer-python==0.3.1 | ||
|
|
||
|
|
||
|
|
||
| echo "5. May need to fix opencv" | ||
| uv pip install opencv-python | ||
| uv pip install opencv-fixer && \ | ||
| python -c "from opencv_fixer import AutoFix; AutoFix()" | ||
|
|
||
|
|
||
| echo "6. Install veomni" | ||
|
|
||
| git clone https://github.com/ByteDance-Seed/VeOmni.git | ||
| cd VeOmni | ||
| uv pip install -e .[gpu] | ||
JacobHelwig marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
|
|
||
| echo "Successfully installed all packages" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.