Skip to content

Commit f1ce1ea

Browse files
committed
Import error
1 parent c91daac commit f1ce1ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lit_stablelm/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
from lit_stablelm.model import StableLMConfig, StableLM, build_rope_cache, apply_rope
22
from lit_stablelm.tokenizer import Tokenizer
3+
4+
from lightning_utilities.core.imports import RequirementCache
5+
6+
if not bool(RequirementCache("torch>=2.1.0dev")):
7+
raise ImportError(
8+
"Lit-StableLM requires torch nightly (future torch 2.1). Please follow the installation instructions in the"
9+
" repository README.md"
10+
)

0 commit comments

Comments
 (0)