Skip to content

misc fixes 202507#2937

Merged
winglian merged 2 commits into
mainfrom
misc-fixes-wing
Jul 17, 2025
Merged

misc fixes 202507#2937
winglian merged 2 commits into
mainfrom
misc-fixes-wing

Conversation

@winglian

@winglian winglian commented Jul 17, 2025

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores

    • Updated coverage reporting configuration to provide informational status updates.
  • Refactor

    • Adjusted logging behavior so that certain dataset loading messages are now shown only in the main process, reducing duplicate log output in multi-process environments.
  • New Features

    • Added support for the "llama4" model type to enhance compatibility with new attention mechanisms.

@coderabbitai

coderabbitai Bot commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The updates include a configuration change in the code coverage settings to mark the project coverage status as informational, a modification in a utility function to restrict specific log messages to the main process only during dataset loading, and an extension of a function to support a new model type "llama4" by returning its corresponding attention class. No changes to public interfaces were made.

Changes

File(s) Change Summary
codecov.yml Added informational: true to coverage.status.project.default configuration.
src/axolotl/utils/data/shared.py Changed two logging calls in load_preprocessed_dataset to use main_process_only=True.
src/axolotl/monkeypatch/lora_kernels.py Extended get_attention_cls_from_config to handle "llama4" model type by returning Llama4TextAttention.

Poem

In the meadow of logs, where the data flows free,
Only the main bunny now shouts with glee.
Coverage reports whisper, "Just FYI,"
Informational flags wave as numbers fly.
A new llama friend joins the dance,
This rabbit’s updates enhance the chance! 🐇🦙


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 31b74a4 and eb90dc4.

📒 Files selected for processing (1)
  • src/axolotl/monkeypatch/lora_kernels.py (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: PyTest (3.11, 2.7.0)
  • GitHub Check: pre-commit
  • GitHub Check: PyTest from Source Dist (3.11, 2.7.1)
  • GitHub Check: PyTest from Source Dist (3.11, 2.7.0)
  • GitHub Check: PyTest (3.11, 2.7.1)
  • GitHub Check: PyTest from Source Dist (3.11, 2.6.0)
  • GitHub Check: PyTest (3.11, 2.6.0)
  • GitHub Check: pre-commit
🔇 Additional comments (1)
src/axolotl/monkeypatch/lora_kernels.py (1)

154-157: Confirmed “llama4” support and import path

The Hugging Face Transformers library (v4.51.0+) includes transformers.models.llama4.modeling_llama4, so the new branch in src/axolotl/monkeypatch/lora_kernels.py (lines 154–157) will import successfully. No further changes needed.

✨ 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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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 (1)
src/axolotl/utils/data/shared.py (1)

467-470: Align remaining LOG.info calls for consistency

Elsewhere in the same function (save_preprocessed_dataset at lines 431-435) the push-to-hub message is still broadcast to all processes (main_process_only=False).
If that wasn’t intentional, consider toggling it for symmetry:

-        LOG.info(
-            "Pushing merged prepared dataset to Huggingface hub at "
-            f"{cfg.push_dataset_to_hub} (version {dataset_hash})...",
-            main_process_only=False,
-        )
+        LOG.info(
+            "Pushing merged prepared dataset to Huggingface hub at "
+            f"{cfg.push_dataset_to_hub} (version {dataset_hash})...",
+            main_process_only=True,
+        )
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8a4bcac and 31b74a4.

📒 Files selected for processing (2)
  • codecov.yml (1 hunks)
  • src/axolotl/utils/data/shared.py (1 hunks)
🔇 Additional comments (2)
codecov.yml (1)

25-25: Confirm Codecov “informational” flag path

The new informational: true key is helpful for preventing status-check failures on coverage drops.
Double-check that this nesting (coverage.status.project.default) matches the latest Codecov spec; otherwise the flag will be ignored.

src/axolotl/utils/data/shared.py (1)

461-465: Good move: suppress log spam on workers

Restricting this message to the main process reduces noise in multi-process runs. ✅
No issues spotted.

@codecov

codecov Bot commented Jul 17, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/axolotl/monkeypatch/lora_kernels.py 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment thread src/axolotl/utils/data/shared.py
@winglian winglian merged commit 9dde9e1 into main Jul 17, 2025
9 of 12 checks passed
@winglian winglian deleted the misc-fixes-wing branch July 17, 2025 13:47
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