-
Notifications
You must be signed in to change notification settings - Fork 491
Update dependencies for OLMo-core trainer #1378
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
base: main
Are you sure you want to change the base?
Conversation
- Update ai2-olmo-core to use finbarr/skip-init-if-initialized fork - Add torchao>=0.11.0 for OLMo-core compatibility - Update vllm from ==0.12.0 to >=0.12.0 - Update wandb to 0.18.1 - Switch PyTorch index from cu129 to cu128 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary of ChangesHello @finbarrtimbers, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on updating and streamlining the project's Python dependencies and build configurations. The changes are crucial for ensuring compatibility with the OLMo-core trainer, introducing new libraries like Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
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 several dependencies to support the OLMo-core trainer, including switching to a fork of ai2-olmo-core, adding torchao, and updating vllm and wandb. It also changes the PyTorch CUDA index from cu129 to cu128. My review focuses on potential inconsistencies introduced by these changes, such as a wandb downgrade, conflicting information about flash-attn support on aarch64, outdated documentation, and the removal of several files from static type checking. These changes could impact stability, maintainability, and correctness.
I am having trouble creating individual review comments. Click here to see my feedback.
pyproject.toml (35)
This change removes the platform_machine != 'aarch64' condition, which enables flash-attn for aarch64 architectures. However, the docs/DGX_SPARK.md file states that "Flash Attention: Not available - uses PyTorch SDPA instead" for DGX Spark (aarch64). This seems contradictory. If flash-attn is not supported on aarch64, this change could cause installation or runtime errors on that platform. Please clarify if flash-attn is now supported on aarch64 or if this condition should be kept.
pyproject.toml (32)
The wandb dependency is being downgraded from 0.23.1 to 0.18.1. This is a significant version change. While the PR description mentions updating to 0.18.1, a downgrade of this magnitude could introduce breaking changes or remove important features/bugfixes. Could you please provide some context for this downgrade? If it's intentional, it would be helpful to add a comment in pyproject.toml explaining why this specific older version is required.
pyproject.toml (60-65)
This pull request removes the pinned vLLM wheel for aarch64 that was previously defined here. However, the documentation in docs/DGX_SPARK.md still refers to it:
- vLLM: Uses cu130 wheel (v0.13.0) pinned to specific commit
The documentation should be updated to reflect that vLLM is no longer pinned to a specific wheel for aarch64 and what the new installation process or behavior is. Keeping documentation in sync with code changes is crucial for maintainability.
pyproject.toml (169-176)
Several files (actor_manager.py, benchmark_generators.py, code_utils/api.py, data_loader.py, dpo_config.py) have been removed from the [tool.ty.src].include list for type checking. Excluding files from static analysis can hide potential type-related bugs and makes the code harder to maintain. Could you please explain why these files are being excluded? If there are specific type errors that are difficult to resolve, it might be better to address them with # type: ignore comments and a TODO, rather than excluding the entire files.
Summary
Test plan
make style && make qualityuv run pytest open_instruct/test_utils.py🤖 Generated with Claude Code