Skip to content

Commit 07c0345

Browse files
committed
minors on the __init__
Signed-off-by: Jingyu Xin <[email protected]>
1 parent 7ec3e5b commit 07c0345

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modelopt/torch/peft/lora/plugins/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
"""PEFT/LoRA plugins for various frameworks."""
1717

18-
from contextlib import suppress
18+
from modelopt.torch.utils import import_plugin
1919

20-
with suppress(ImportError):
21-
from . import megatron as _megatron
20+
with import_plugin("megatron"):
21+
from .megatron import *

0 commit comments

Comments
 (0)