Repository navigation
[ci] Fix air_example_gptj_deepspeed_fine_tuning release test - #62486
Conversation
There was a problem hiding this comment.
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.
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]>
6e0e3d2 to
44f134c
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 44f134c. Configure here.
| " },\n", | ||
| " \"overlap_comm\": True,\n", | ||
| " \"contiguous_gradients\": True,\n", | ||
| " \"reduce_bucket_size\": \"auto\",\n", |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 44f134c. Configure here.
|
This pull request has been automatically marked as stale because it has not had 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. |
|
This pull request has been automatically closed because there has been no more activity in the 14 days 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! |
|
This pull request has been automatically marked as stale because it has not had 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. |
pseudo-rnd-thoughts
left a comment
There was a problem hiding this comment.
@JasonLi1909 Could you remove "manual" from the release_tests.yaml for this test
…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]>
…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]>
…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]>


Summary
The
air_example_gptj_deepspeed_fine_tuningrelease 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
deepspeed0.12.3 -> 0.17.2,accelerate0.18.0 -> 0.33.0,transformers4.26.0 -> 4.36.2reduce_bucket_size,stage3_prefetch_bucket_size,stage3_param_persistence_thresholdfrom DeepSpeed config (HF Trainer resolved these "auto" values to floats, which DeepSpeed 0.17.2's pydantic validation rejects)accelerate==0.33.0and uninstallpeftin BYOD script (base image'speft==0.11.1is incompatible withtransformers==4.36.2, and the notebook's pip install cell is commented out by jupytext during conversion)torch>=1.12.0from runtime_env and stale TODO comment