Skip to content

Commit

Permalink
Fix Noisy CUDA Shutdown (#20)
Browse files Browse the repository at this point in the history
* Reorder imports

Signed-off-by: Ryan Wolf <rywolf@nvidia.com>

* Update precommit exclude

Signed-off-by: Ryan Wolf <rywolf@nvidia.com>

* Clarify comment

Signed-off-by: Ryan Wolf <rywolf@nvidia.com>

---------

Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
  • Loading branch information
ryantwolf authored Apr 2, 2024
1 parent fc167a6 commit 35d5f8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ repos:
hooks:
- id: isort
name: Format imports
exclude: docs/
exclude: docs/|nemo_curator/modules/__init__.py
6 changes: 5 additions & 1 deletion nemo_curator/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
# limitations under the License.

from .add_id import AddId
from .distributed_data_classifier import DomainClassifier, QualityClassifier
from .exact_dedup import ExactDuplicates
from .filter import Filter, Score, ScoreFilter
from .fuzzy_dedup import LSH, MinHash
from .meta import Sequential
from .modify import Modify
from .task import TaskDecontamination

# Pytorch related imports must come after all imports that require cugraph,
# because of context cleanup issues b/w pytorch and cugraph
# See this issue: https://github.com/rapidsai/cugraph/issues/2718
from .distributed_data_classifier import DomainClassifier, QualityClassifier

__all__ = [
"DomainClassifier",
"ExactDuplicates",
Expand Down

0 comments on commit 35d5f8f

Please sign in to comment.