We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec3e5b commit 07c0345Copy full SHA for 07c0345
modelopt/torch/peft/lora/plugins/__init__.py
@@ -15,7 +15,7 @@
15
16
"""PEFT/LoRA plugins for various frameworks."""
17
18
-from contextlib import suppress
+from modelopt.torch.utils import import_plugin
19
20
-with suppress(ImportError):
21
- from . import megatron as _megatron
+with import_plugin("megatron"):
+ from .megatron import *
0 commit comments