Repository navigation
fix(setup): make the verl 0.7.1 install and Calc-X quick start run on a fresh environment - #712
Draft
Sri (sripadha) wants to merge 1 commit into
Draft
Sri (sripadha) wants to merge 1 commit into
Sri (sripadha) wants to merge 1 commit into
Conversation
… a fresh environment - setup_verl.sh: constrain datasets and pyarrow on the verl 0.7.1 path so `import datasets` works with the numpy<2 that verl 0.7.1 requires. - Calc-X docs: re-resolve the Google protobuf packages together with AutoGen, which pins protobuf 5.x; otherwise the Ray dashboard agent fails to import and `ray start` times out. - Quick start: launch run_local.sh from examples/calc_x, where its relative paths resolve.
Author
|
@microsoft-github-policy-service agree |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A fresh
bash scripts/setup_verl.sh 0.7.1 cu129install currently cannot start the Calc-X local run. This change fixes the three places where it stops.What changed
scripts/setup_verl.sh: on the0.7.1path, add"datasets>=3" "pyarrow<26". verl 0.7.1 requiresnumpy<2, pyarrow 26 requiresnumpy>=2, and without a lower bound uv falls back todatasets 2.14.4, which cannot be imported with a current pyarrow. The0.8.0path is unchanged.docs/01-quick-start.md,docs/50-example-calc-x.md: namegoogleapis-common-protos google-api-core proto-plus tensorboardin the Calc-X dependency install. AutoGen pinsprotobufto 5.x; without re-resolving these packages the Ray dashboard agent fails to import andray starttimes out.docs/01-quick-start.md: launchrun_local.shfromexamples/calc_x, as the Calc-X page already does. From the repository root the script cannot findtrain_calc_agent.py.How I verified it (WSL2, Python 3.12.13, uv 0.11.19, driver 566.14, main
6d7f2728)Before, in a clean environment built with the unchanged script:
python -c "import datasets"→ImportError: pyarrow requires NumPy 2.0 or newer, found 1.26.4uv pip checkreports 4 protobuf incompatibilities;ray start --head→The current node timed out during startupAfter, in a second clean environment built with the changed commands:
datasets 5.0.1,pyarrow 25.0.1,numpy 1.26.4;uv pip checkcleanDataset.from_parquetloadstrain(8192),test(500),test_mini(20)uv pip checkclean;ray start --head→Ray runtime startedtrain_calc_agent.build_config(...)and theagentlightning.verl.entrypoint/ Calc-X agent imports succeedpre-commit run --files <the three files>→ all hooks pass;bash -n scripts/setup_verl.shpassesmkdocs build --strictpasses with the frozendocsgroupNot run
flash-attnbuild step of the script and a full training run: my machine (RTX 2060 6 GB, 9 GB RAM) runs out of memory on both. I ran the script'suv pip installcommand by hand in the second environment for that reason.0.8.0/cu130path (driver too old). It is not touched by this change.AI assistance: Claude Code helped reproduce the failures and prepare this change.
Fixes #711