-
Notifications
You must be signed in to change notification settings - Fork 3.3k
remove rag collection #14157
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
remove rag collection #14157
Conversation
Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
| from nemo.collections.nlp.data.common.sequence_to_sequence_dataset import SequenceToSequenceDataset | ||
|
|
||
| try: | ||
| from nemo.collections.nlp.data.common.sequence_to_sequence_dataset import SequenceToSequenceDataset |
Check notice
Code scanning / CodeQL
Unused import Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To fix the problem, the unused import of SequenceToSequenceDataset should be removed. This involves deleting both the try block that imports SequenceToSequenceDataset and the except block that assigns it to ABC. This will clean up the code and remove unnecessary dependencies.
| @@ -28,8 +28,3 @@ | ||
|
|
||
| try: | ||
| from nemo.collections.nlp.data.common.sequence_to_sequence_dataset import SequenceToSequenceDataset | ||
| except ModuleNotFoundError: | ||
| from abc import ABC | ||
|
|
||
| SequenceToSequenceDataset = ABC | ||
|
|
| except ModuleNotFoundError: | ||
| from abc import ABC | ||
|
|
||
| SequenceToSequenceDataset = ABC |
Check notice
Code scanning / CodeQL
Unused global variable Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To fix the issue, we should remove the assignment to SequenceToSequenceDataset in the except block. Since the variable is unused and does not have any side effects, deleting the assignment will clean up the code without affecting functionality. If the variable is intended for future use or documentation purposes, we should rename it to indicate that it is unused (e.g., _unused_SequenceToSequenceDataset).
| @@ -33,4 +33,2 @@ | ||
|
|
||
| SequenceToSequenceDataset = ABC | ||
|
|
||
| from nemo.collections.nlp.data.language_modeling.megatron.base_dataset_utils import ( |
Signed-off-by: dimapihtar <[email protected]>
Signed-off-by: dimapihtar <[email protected]>
|
[🤖]: Hi @dimapihtar 👋, 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. |
* remove rag collection Signed-off-by: dimapihtar <[email protected]> * remove data/common Signed-off-by: dimapihtar <[email protected]> * Apply isort and black reformatting Signed-off-by: dimapihtar <[email protected]> * fix importso Signed-off-by: dimapihtar <[email protected]> * fix imports Signed-off-by: dimapihtar <[email protected]> --------- Signed-off-by: dimapihtar <[email protected]> Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Signed-off-by: Amir Hussein <[email protected]>
* remove rag collection Signed-off-by: dimapihtar <[email protected]> * remove data/common Signed-off-by: dimapihtar <[email protected]> * Apply isort and black reformatting Signed-off-by: dimapihtar <[email protected]> * fix importso Signed-off-by: dimapihtar <[email protected]> * fix imports Signed-off-by: dimapihtar <[email protected]> --------- Signed-off-by: dimapihtar <[email protected]> Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]>
* remove rag collection Signed-off-by: dimapihtar <[email protected]> * remove data/common Signed-off-by: dimapihtar <[email protected]> * Apply isort and black reformatting Signed-off-by: dimapihtar <[email protected]> * fix importso Signed-off-by: dimapihtar <[email protected]> * fix imports Signed-off-by: dimapihtar <[email protected]> --------- Signed-off-by: dimapihtar <[email protected]> Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Signed-off-by: Amir Hussein <[email protected]>
* remove rag collection Signed-off-by: dimapihtar <[email protected]> * remove data/common Signed-off-by: dimapihtar <[email protected]> * Apply isort and black reformatting Signed-off-by: dimapihtar <[email protected]> * fix importso Signed-off-by: dimapihtar <[email protected]> * fix imports Signed-off-by: dimapihtar <[email protected]> --------- Signed-off-by: dimapihtar <[email protected]> Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Signed-off-by: Amir Hussein <[email protected]>
* remove rag collection Signed-off-by: dimapihtar <[email protected]> * remove data/common Signed-off-by: dimapihtar <[email protected]> * Apply isort and black reformatting Signed-off-by: dimapihtar <[email protected]> * fix importso Signed-off-by: dimapihtar <[email protected]> * fix imports Signed-off-by: dimapihtar <[email protected]> --------- Signed-off-by: dimapihtar <[email protected]> Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]>
* remove rag collection Signed-off-by: dimapihtar <[email protected]> * remove data/common Signed-off-by: dimapihtar <[email protected]> * Apply isort and black reformatting Signed-off-by: dimapihtar <[email protected]> * fix importso Signed-off-by: dimapihtar <[email protected]> * fix imports Signed-off-by: dimapihtar <[email protected]> --------- Signed-off-by: dimapihtar <[email protected]> Signed-off-by: dimapihtar <[email protected]> Co-authored-by: dimapihtar <[email protected]> Signed-off-by: Guyue Huang <[email protected]>
Important
The
Update branchbutton 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 thisGitHub 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