-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add BERT/Qwen2.5 Unit test and Refactor all GHA Conversion Tests #12785
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
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: suiyoubi <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
.github/workflows/cicd-main.yml
Outdated
with: | ||
RUNNER: self-hosted-azure | ||
SCRIPT: |- | ||
RUN_ID=${{ github.run_id }} BERT_TYPE=megatron bash tests/functional_tests/L2_NeMo_2_BERT_Pretraining.sh |
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.
Could you refactor this to one script per test? We'd like to see fully self contained scripts so that we can move these tests between different CI systems easily.
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.
sure, does this apply to all conversion test as well ?
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.
Yes, I noticed this too late unfortunately. It would be amazing if you could help with that refactoring too 🙏
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.
ok sounds good.I'll refactor them in this pr
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: suiyoubi <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: suiyoubi <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Ao Tang <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Ao Tang <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: suiyoubi <[email protected]>
from nemo.collections.llm.bert.model.bert_spec import ( | ||
TransformerLayerWithPostLNSupport, | ||
get_bert_layer_local_spec_postln, | ||
get_bert_layer_with_transformer_engine_spec_postln, | ||
) |
Check notice
Code scanning / CodeQL
Unused import Note test
Import of 'get_bert_layer_local_spec_postln' is not used.
Import of 'get_bert_layer_with_transformer_engine_spec_postln' is not used.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, we need to remove the unused import statement for TransformerLayerWithPostLNSupport
. This will clean up the code and remove an unnecessary dependency. The best way to fix this is to edit the import statement on line 20 to exclude TransformerLayerWithPostLNSupport
.
@@ -20,3 +20,2 @@ | ||
from nemo.collections.llm.bert.model.bert_spec import ( | ||
TransformerLayerWithPostLNSupport, | ||
get_bert_layer_local_spec_postln, |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
import argparse | ||
import os |
Check notice
Code scanning / CodeQL
Unused import Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, we need to remove the unused import statement for the os
module. This will clean up the code and remove the unnecessary dependency.
- Locate the import statement for the
os
module. - Remove the line that imports the
os
module. - Ensure that no other parts of the code are affected by this change.
@@ -14,3 +14,2 @@ | ||
import argparse | ||
import os | ||
from dataclasses import dataclass |
# limitations under the License. | ||
import argparse | ||
import os | ||
from dataclasses import dataclass |
Check notice
Code scanning / CodeQL
Unused import Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, we need to remove the unused import statement. This will clean up the code and eliminate the unnecessary dependency. The best way to fix this issue is to delete the line that imports dataclass
from the dataclasses
module.
@@ -15,3 +15,2 @@ | ||
import os | ||
from dataclasses import dataclass | ||
|
Signed-off-by: Ao Tang <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
# Conflicts: # tests/functional_tests/L2_NeMo_2_Conversion_Test.sh
Signed-off-by: Ao Tang <[email protected]>
[🤖]: Hi @suiyoubi 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully So it might be time to merge this PR or get some approvals I'm just a bot so I'll leave it you what to do next. //cc @pablo-garay @ko3n1g |
[🤖]: Hi @suiyoubi 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully So it might be time to merge this PR or get some approvals I'm just a bot so I'll leave it you what to do next. //cc @pablo-garay @ko3n1g |
Important
The
Update branch
button must only be pressed in very rare occassions.An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use this
GitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information