Skip to content

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
microsoft:mainfrom
sripadha:fix/verl-071-install-deps
Draft

Sri (sripadha) wants to merge 1 commit into
microsoft:mainfrom
sripadha:fix/verl-071-install-deps

Conversation

@sripadha

Copy link
Copy Markdown

A fresh bash scripts/setup_verl.sh 0.7.1 cu129 install currently cannot start the Calc-X local run. This change fixes the three places where it stops.

What changed

  • scripts/setup_verl.sh: on the 0.7.1 path, add "datasets>=3" "pyarrow<26". verl 0.7.1 requires numpy<2, pyarrow 26 requires numpy>=2, and without a lower bound uv falls back to datasets 2.14.4, which cannot be imported with a current pyarrow. The 0.8.0 path is unchanged.
  • docs/01-quick-start.md, docs/50-example-calc-x.md: name googleapis-common-protos google-api-core proto-plus tensorboard in the Calc-X dependency install. AutoGen pins protobuf to 5.x; without re-resolving these packages the Ray dashboard agent fails to import and ray start times out.
  • docs/01-quick-start.md: launch run_local.sh from examples/calc_x, as the Calc-X page already does. From the repository root the script cannot find train_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.4
  • after the documented Calc-X install: uv pip check reports 4 protobuf incompatibilities; ray start --head → The current node timed out during startup

After, in a second clean environment built with the changed commands:

  • resolves to datasets 5.0.1, pyarrow 25.0.1, numpy 1.26.4; uv pip check clean
  • Dataset.from_parquet loads train (8192), test (500), test_mini (20)
  • after the changed Calc-X install: uv pip check clean; ray start --head → Ray runtime started
  • train_calc_agent.build_config(...) and the agentlightning.verl.entrypoint / Calc-X agent imports succeed
  • pre-commit run --files <the three files> → all hooks pass; bash -n scripts/setup_verl.sh passes
  • mkdocs build --strict passes with the frozen docs group

Not run

  • The flash-attn build 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's uv pip install command by hand in the second environment for that reason.
  • The 0.8.0 / cu130 path (driver too old). It is not touched by this change.

AI assistance: Claude Code helped reproduce the failures and prepare this change.

Fixes #711

… 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.
@sripadha

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fresh verl==0.7.1 / cu129 install cannot start the Calc-X quick start

1 participant