Skip to content

use CCE fix for TP using vocab parallel for CEL#3000

Merged
winglian merged 1 commit into
mainfrom
cce-tp-fix
Aug 1, 2025
Merged

use CCE fix for TP using vocab parallel for CEL#3000
winglian merged 1 commit into
mainfrom
cce-tp-fix

Conversation

@winglian

@winglian winglian commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator

Description

We need to use Vocab Parallel for CCE with TP

Motivation and Context

How has this been tested?

Screenshots (if appropriate)

Types of changes

Social Handles (Optional)

Summary by CodeRabbit

  • Chores
    • Updated installation instructions and related messages to use a newer version of the cut-cross-entropy package.

@coderabbitai

coderabbitai Bot commented Aug 1, 2025

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This change updates the commit hash for the cut-cross-entropy[transformers] package installation reference from 849c3c5 to cbd58e0 in documentation, scripts, and installation instructions across multiple files. No other code, logic, or content changes are present.

Changes

Cohort / File(s) Change Summary
Update cut-cross-entropy commit hash
examples/colab-notebooks/colab-axolotl-example.ipynb, scripts/cutcrossentropy_install.py, src/axolotl/integrations/cut_cross_entropy/README.md, src/axolotl/integrations/cut_cross_entropy/__init__.py
Updated the Git commit hash in the installation command for the cut-cross-entropy[transformers] package from 849c3c5 to cbd58e0. No other changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested labels

ready to merge, scheduled_release

Suggested reviewers

  • NanoCode012

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cce-tp-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai 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.

Actionable comments posted: 0

🧹 Nitpick comments (2)
scripts/cutcrossentropy_install.py (1)

30-33: Avoid future hash drift by centralising the commit constant

The same hash string now appears in several places (README, this script, __init__.py, notebooks). Keeping them in sync is error-prone. Consider defining a single constant, e.g. in src/axolotl/integrations/cut_cross_entropy/_version.py, and importing it here:

-from packaging.version import Version as V
+from packaging.version import Version as V
+from axolotl.integrations.cut_cross_entropy._version import CCE_COMMIT
...
-    + f'{UV_PREFIX}pip install "cut-cross-entropy[transformers] @ git+https://github.com/axolotl-ai-cloud/ml-cross-entropy.git@cbd58e0"'
+    + f'{UV_PREFIX}pip install "cut-cross-entropy[transformers] @ git+https://github.com/axolotl-ai-cloud/ml-cross-entropy.git@{CCE_COMMIT}"'

This prevents silent divergence the next time the hash needs changing.

src/axolotl/integrations/cut_cross_entropy/__init__.py (1)

35-38: _CCE_INSTALL_MESSAGE duplicates logic found elsewhere

cbd58e0 is hard-coded here as well as in the install script and docs. If you adopt a shared constant as suggested above, refactor this message to interpolate the same value:

-from ._version import CCE_COMMIT
-_CCE_INSTALL_MESSAGE = (
-    "Please install Axolotl's fork of cut_cross_entropy with transformers support using "
-    f'`pip install "cut-cross-entropy[transformers] @ git+https://github.com/axolotl-ai-cloud/ml-cross-entropy.git@{CCE_COMMIT}"`'
-)
+from ._version import CCE_COMMIT
+_CCE_INSTALL_MESSAGE = (
+    "Please install Axolotl's fork of cut_cross_entropy with transformers support using "
+    f'`pip install "cut-cross-entropy[transformers] @ git+https://github.com/axolotl-ai-cloud/ml-cross-entropy.git@{CCE_COMMIT}"`'
+)

This single-source-of-truth pattern will keep documentation, runtime checks, and helper scripts aligned.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 02a3719 and 608bdff.

📒 Files selected for processing (4)
  • examples/colab-notebooks/colab-axolotl-example.ipynb (1 hunks)
  • scripts/cutcrossentropy_install.py (1 hunks)
  • src/axolotl/integrations/cut_cross_entropy/README.md (1 hunks)
  • src/axolotl/integrations/cut_cross_entropy/__init__.py (1 hunks)
🔇 Additional comments (2)
src/axolotl/integrations/cut_cross_entropy/README.md (1)

22-22: Verify the new commit hash actually exists and is publicly accessible

Hard-coding a commit reference protects against breaking changes upstream, but only if the hash is valid in the remote repository. Please double-check that cbd58e0 is pushed to axolotl-ai-cloud/ml-cross-entropy and still contains the expected CCE fix; otherwise the install command will fail at runtime.

examples/colab-notebooks/colab-axolotl-example.ipynb (1)

40-44: Commit hash bump is consistent with the rest of the repo – LGTM
The notebook now installs cut-cross-entropy[transformers] from commit cbd58e0, matching the other updated installation references. No further action required.

@github-actions

github-actions Bot commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

📖 Documentation Preview: https://688ceaa93a1848ee054b0815--resonant-treacle-0fd729.netlify.app

Deployed on Netlify from commit 608bdff

@codecov

codecov Bot commented Aug 1, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@winglian winglian merged commit 01a6bd1 into main Aug 1, 2025
14 checks passed
@winglian winglian deleted the cce-tp-fix branch August 1, 2025 17:22
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.

1 participant