Skip to content

[ci] Fix air_example_gptj_deepspeed_fine_tuning release test - #62486

Merged
matthewdeng merged 2 commits into
ray-project:masterfrom
JasonLi1909:fix-example-release-tests
Jun 8, 2026
Merged

matthewdeng merged 2 commits into
ray-project:masterfrom
JasonLi1909:fix-example-release-tests

Conversation

@JasonLi1909

@JasonLi1909 JasonLi1909 commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The air_example_gptj_deepspeed_fine_tuning release test fails due to dependency incompatibilities introduced when the base ray-ml image was upgraded to torch 2.7.0+cu128 (triton 3.3.0) in #61328.

This PR fixes the dependency issues so the test passes.

Failing build: https://buildkite.com/ray-project/release/builds/87834#_

Changes

  • Update notebook dependency pins: deepspeed 0.12.3 -> 0.17.2, accelerate 0.18.0 -> 0.33.0, transformers 4.26.0 -> 4.36.2
  • Remove reduce_bucket_size, stage3_prefetch_bucket_size, stage3_param_persistence_threshold from DeepSpeed config (HF Trainer resolved these "auto" values to floats, which DeepSpeed 0.17.2's pydantic validation rejects)
  • Install accelerate==0.33.0 and uninstall peft in BYOD script (base image's peft==0.11.1 is incompatible with transformers==4.36.2, and the notebook's pip install cell is commented out by jupytext during conversion)
  • Remove torch>=1.12.0 from runtime_env and stale TODO comment

@JasonLi1909
JasonLi1909 requested a review from a team as a code owner April 9, 2026 22:30

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates dependency versions for accelerate, transformers, and deepspeed in the GPT-J fine-tuning example and transitions from the lightning umbrella package to pytorch-lightning in the Dolly FSDP notebook and release scripts. Additionally, it replaces several emojis and special characters with unicode escapes. Feedback includes suggestions to explicitly uninstall the lightning package to prevent dependency conflicts, pinning pytorch-lightning to version 2.4.0 for consistency, and fixing a typo and redundant markdown cell in the Dolly notebook.

@JasonLi1909 JasonLi1909 changed the title [ci] Fix AIR example release test dependency pins for torch 2.7 compatibility [ci] Fix AIR example release tests Apr 10, 2026
@ray-gardener ray-gardener Bot added train Ray Train Related Issue release-test release test labels Apr 10, 2026
Update dependency versions in the GPT-J DeepSpeed example notebook
to be compatible with the base ray-ml image (torch 2.7.0+cu128,
triton 3.3.0).

- deepspeed 0.12.3 -> 0.17.2 (0.12.3 can't install against triton 3.3.0)
- accelerate 0.18.0 -> 0.33.0 (0.33.0 needed for peft==0.11.1 compat)
- transformers 4.26.0 -> 4.36.2
- Remove torch>=1.12.0 from runtime_env (use base image torch)
- Remove stale TODO comment about old deepspeed/accelerate incompatibility
- Remove reduce_bucket_size, stage3_prefetch_bucket_size,
  stage3_param_persistence_threshold from DeepSpeed config (resolved
  to floats by HF Trainer, rejected by DeepSpeed 0.17.2 pydantic
  validation)
- Install accelerate==0.33.0 and uninstall peft in BYOD script
  (peft==0.11.1 in base image is incompatible with transformers==4.36.2,
  and the notebook's pip install cell is commented out by jupytext)

Signed-off-by: JasonLi1909 <[email protected]>
Signed-off-by: JasonLi1909 <[email protected]>
@JasonLi1909
JasonLi1909 force-pushed the fix-example-release-tests branch from 6e0e3d2 to 44f134c Compare April 13, 2026 22:32
@JasonLi1909 JasonLi1909 changed the title [ci] Fix AIR example release tests [ci] Fix GPT-J DeepSpeed release test dependency pins Apr 13, 2026
@JasonLi1909 JasonLi1909 changed the title [ci] Fix GPT-J DeepSpeed release test dependency pins [ci] Fix air_example_gptj_deepspeed_fine_tuning release tests Apr 13, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 44f134c. Configure here.

" },\n",
" \"overlap_comm\": True,\n",
" \"contiguous_gradients\": True,\n",
" \"reduce_bucket_size\": \"auto\",\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed ZeRO Stage 3 auto-tuning causes memory overhead

Low Severity

The reduce_bucket_size, stage3_prefetch_bucket_size, and stage3_param_persistence_threshold "auto" entries were removed from the ZeRO Stage 3 config rather than replaced with explicit integer values. This causes DeepSpeed to use its defaults (e.g., reduce_bucket_size = 5e8 elements ≈ 1GB in fp16) instead of model-aware values the HF Trainer would compute (e.g., ~16.7M elements ≈ 33MB for GPT-J). Only stage3_prefetch_bucket_size needs removal due to a known float-type validation issue with DeepSpeed 0.17.x's Pydantic v2; the other two produce integers and are safe as "auto", or all three could be set to explicit int values as the Vicuna example does.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 44f134c. Configure here.

@JasonLi1909 JasonLi1909 changed the title [ci] Fix air_example_gptj_deepspeed_fine_tuning release tests [ci] Fix air_example_gptj_deepspeed_fine_tuning release test Apr 14, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Apr 28, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no more activity in the 14 days
since being marked stale.

Please feel free to reopen or open a new pull request if you'd still like this to be addressed.

Again, you can always ask for help on our discussion forum or Ray's public slack channel.

Thanks again for your contribution!

@pseudo-rnd-thoughts pseudo-rnd-thoughts added go add ONLY when ready to merge, run all tests and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels May 12, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label May 27, 2026

@pseudo-rnd-thoughts pseudo-rnd-thoughts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasonLi1909 Could you remove "manual" from the release_tests.yaml for this test

@github-actions github-actions Bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Jun 3, 2026
@matthewdeng
matthewdeng merged commit e8c9a06 into ray-project:master Jun 8, 2026
4 checks passed
sampan-s-nayak pushed a commit to sampan-s-nayak/ray that referenced this pull request Jun 10, 2026
…ject#62486)

## Summary

The `air_example_gptj_deepspeed_fine_tuning` release test fails due to
dependency incompatibilities introduced when the base ray-ml image was
upgraded to torch 2.7.0+cu128 (triton 3.3.0) in
ray-project#61328.

This PR fixes the dependency issues so the test passes.

Failing build: https://buildkite.com/ray-project/release/builds/87834#_

## Changes

- Update notebook dependency pins: `deepspeed` 0.12.3 -> 0.17.2,
`accelerate` 0.18.0 -> 0.33.0, `transformers` 4.26.0 -> 4.36.2
- Remove `reduce_bucket_size`, `stage3_prefetch_bucket_size`,
`stage3_param_persistence_threshold` from DeepSpeed config (HF Trainer
resolved these "auto" values to floats, which DeepSpeed 0.17.2's
pydantic validation rejects)
- Install `accelerate==0.33.0` and uninstall `peft` in BYOD script (base
image's `peft==0.11.1` is incompatible with `transformers==4.36.2`, and
the notebook's pip install cell is commented out by jupytext during
conversion)
- Remove `torch>=1.12.0` from runtime_env and stale TODO comment

Signed-off-by: JasonLi1909 <[email protected]>
Signed-off-by: JasonLi1909 <[email protected]>
Co-authored-by: Mark Towers <[email protected]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
…ject#62486)

## Summary

The `air_example_gptj_deepspeed_fine_tuning` release test fails due to
dependency incompatibilities introduced when the base ray-ml image was
upgraded to torch 2.7.0+cu128 (triton 3.3.0) in
ray-project#61328.

This PR fixes the dependency issues so the test passes.

Failing build: https://buildkite.com/ray-project/release/builds/87834#_

## Changes

- Update notebook dependency pins: `deepspeed` 0.12.3 -> 0.17.2,
`accelerate` 0.18.0 -> 0.33.0, `transformers` 4.26.0 -> 4.36.2
- Remove `reduce_bucket_size`, `stage3_prefetch_bucket_size`,
`stage3_param_persistence_threshold` from DeepSpeed config (HF Trainer
resolved these "auto" values to floats, which DeepSpeed 0.17.2's
pydantic validation rejects)
- Install `accelerate==0.33.0` and uninstall `peft` in BYOD script (base
image's `peft==0.11.1` is incompatible with `transformers==4.36.2`, and
the notebook's pip install cell is commented out by jupytext during
conversion)
- Remove `torch>=1.12.0` from runtime_env and stale TODO comment

Signed-off-by: JasonLi1909 <[email protected]>
Signed-off-by: JasonLi1909 <[email protected]>
Co-authored-by: Mark Towers <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ject#62486)

## Summary

The `air_example_gptj_deepspeed_fine_tuning` release test fails due to
dependency incompatibilities introduced when the base ray-ml image was
upgraded to torch 2.7.0+cu128 (triton 3.3.0) in
ray-project#61328.

This PR fixes the dependency issues so the test passes.

Failing build: https://buildkite.com/ray-project/release/builds/87834#_

## Changes

- Update notebook dependency pins: `deepspeed` 0.12.3 -> 0.17.2,
`accelerate` 0.18.0 -> 0.33.0, `transformers` 4.26.0 -> 4.36.2
- Remove `reduce_bucket_size`, `stage3_prefetch_bucket_size`,
`stage3_param_persistence_threshold` from DeepSpeed config (HF Trainer
resolved these "auto" values to floats, which DeepSpeed 0.17.2's
pydantic validation rejects)
- Install `accelerate==0.33.0` and uninstall `peft` in BYOD script (base
image's `peft==0.11.1` is incompatible with `transformers==4.36.2`, and
the notebook's pip install cell is commented out by jupytext during
conversion)
- Remove `torch>=1.12.0` from runtime_env and stale TODO comment

Signed-off-by: JasonLi1909 <[email protected]>
Signed-off-by: JasonLi1909 <[email protected]>
Co-authored-by: Mark Towers <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests release-test release test train Ray Train Related Issue unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants