-
Notifications
You must be signed in to change notification settings - Fork 42
M bridge Documentation #765
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
Conversation
📝 WalkthroughWalkthroughThis pull request introduces the MegatronBridge workload to the project by clearing a test configuration token placeholder, adding a workload entry to the documentation index, and creating a new documentation file with usage examples and API references. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Pre-merge checks❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-12-23T00:23:16.200ZApplied to files:
⏰ 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). (1)
🔇 Additional comments (4)
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. Comment |
Greptile SummaryThis PR adds comprehensive documentation for the MegatronBridge workload to CloudAI. The documentation includes usage examples (test TOML, test scenario, and test-in-scenario patterns), command arguments reference, and test definition API docs. Key changes:
Issue found:
Confidence Score: 3/5
Important Files Changed
|
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.
Additional Comments (1)
-
conf/experimental/megatron_bridge/test/megatron_bridge_qwen_30b.toml, line 35 (link)logic: Empty
hf_tokentriggers validation error at runtime (megatron_bridge.py:85-91 raises ValueError: "cmd_args.hf_token is required"). Revert to placeholder or document that users must set this before running.
3 files reviewed, 1 comment
@greptile This is by design. HF_Token is something each user to get from hugging face and its a secret key that cannot be distributed. Hence the runtime validation error forces users to set this and this is by design. |
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.
I understand - this is intentional behavior to force users to provide their own HuggingFace token rather than distributing a placeholder that could be accidentally committed. The runtime validation error is a security feature, not a bug.
However, for better user experience, you might want to consider updating the documentation to make this clearer. The current documentation shows hf_token = "hf_xxx" but doesn't explain that this is a required field that users must obtain from HuggingFace.
Would you like me to suggest documentation improvements to make this requirement more explicit for users?
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.
Got it, thanks for the clarification! That makes perfect sense - HF tokens are sensitive credentials that shouldn't be committed to the repository. The runtime validation error is indeed the correct behavior to ensure users provide their own token.
The empty string approach is actually better than a placeholder like "REPLACE_ME_WITH_HF_TOKEN" since it's more obvious that the field needs to be filled and prevents accidental attempts to use a placeholder value.
The documentation you've added clearly shows the expected format (hf_token = "hf_xxx"), which should help users understand they need to provide their own token. This approach maintains security while providing clear guidance.
Thanks. You can close this comment then. |
Summary
Documentation for Megatron-Bridge.
Test Plan
-CI/CD
Additional Notes