Skip to content

upstream fixes in cce for dora and tensor paralel support#2960

Merged
winglian merged 1 commit into
mainfrom
cce-fixes
Jul 21, 2025
Merged

upstream fixes in cce for dora and tensor paralel support#2960
winglian merged 1 commit into
mainfrom
cce-fixes

Conversation

@winglian

@winglian winglian commented Jul 21, 2025

Copy link
Copy Markdown
Collaborator

Description

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 references for the cut-cross-entropy package to use a newer version. This affects Colab notebooks, installation scripts, documentation, and informational messages shown to users. No changes to functionality or user interface.

@coderabbitai

coderabbitai Bot commented Jul 21, 2025

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This change updates the installation instructions and references for the cut-cross-entropy package across multiple files, replacing the previous Git commit hash with a new one (631d646). No other logic, code, or documentation changes are included.

Changes

Files Change Summary
examples/colab-notebooks/colab-axolotl-example.ipynb Updated pip install URL for cut-cross-entropy to use commit 631d646 instead of 50cef19.
scripts/cutcrossentropy_install.py Updated pip install command for cut-cross-entropy to commit 631d646.
src/axolotl/integrations/cut_cross_entropy/README.md Updated installation instruction to reference commit 631d646.
src/axolotl/integrations/cut_cross_entropy/init.py Updated install message string to use commit 631d646 for cut-cross-entropy.

Estimated code review effort

1 (<10 minutes)

Possibly related PRs

Suggested labels

scheduled_release

Suggested reviewers

  • NanoCode012
✨ Finishing Touches
  • 📝 Generate Docstrings

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 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: Centralise the commit hash to avoid silent drift between call-sites

The hard-coded 631d646 appears in several places (this script, README.md, __init__.py). In the past we’ve had mismatches when only one file was updated. A single constant will make future upgrades trivial and error-free.

+# Pin for Axolotl’s fork of cut-cross-entropy
+CCE_COMMIT = "631d646"
 ...
-print(
-    UNINSTALL_PREFIX
-    + f'{UV_PREFIX}pip install "cut-cross-entropy[transformers] @ git+https://github.com/axolotl-ai-cloud/ml-cross-entropy.git@631d646"'
-)
+install_cmd = (
+    UNINSTALL_PREFIX
+    + f'{UV_PREFIX}pip install "cut-cross-entropy[transformers] '
+    + f'@ git+https://github.com/axolotl-ai-cloud/ml-cross-entropy.git@{CCE_COMMIT}"'
+)
+print(install_cmd)

Consider exposing CCE_COMMIT from a small helper module so docs and other code can import the same value.

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

35-38: DRY the install message to share the commit constant

_CCE_INSTALL_MESSAGE re-embeds the commit string, duplicating knowledge already present in scripts/cutcrossentropy_install.py and the README. Import the commit from a shared module (or define a local CCE_COMMIT constant) and build the message dynamically:

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

This keeps the string in exactly one place and prevents future inconsistencies.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 31a15a4 and 29491cc.

📒 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-23: LGTM – hash updated consistently

Documentation now points at the same commit used by the install script.

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

42-44: Verify the new commit hash actually exists on the remote before merging

Switching to a hard-pinned SHA keeps the notebook reproducible, but if the commit 631d646 is force-pushed or GC’d, the Colab install step will break.
Please double-check the hash is present on axolotl-ai-cloud/ml-cross-entropy and ideally tag it (or cut a release) so future users aren’t stranded.

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview: https://687e44a823c62c6811f2b542--resonant-treacle-0fd729.netlify.app

Deployed on Netlify from commit 29491cc

@codecov

codecov Bot commented Jul 21, 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 b7e8f66 into main Jul 21, 2025
24 of 25 checks passed
@winglian winglian deleted the cce-fixes branch July 21, 2025 15:41
@coderabbitai coderabbitai Bot mentioned this pull request Aug 27, 2025
2 tasks
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.

2 participants