Fix import error msg for megablocks (#2038)

This commit is contained in:
Woosuk Kwon 2023-12-11 11:40:56 -08:00 committed by GitHub
parent 2eaa81b236
commit 6120e5aaea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,10 +34,10 @@ from transformers import MistralConfig
try:
import megablocks.ops as ops
except ImportError:
print("MegaBlocks not found, please see "
"https://github.com/stanford-futuredata/megablocks/. "
"Note that MegaBlocks depends on mosaicml-turbo, which only "
"supports python 3.10.")
print(
"MegaBlocks not found. Please install it by `pip install megablocks`. "
"Note that MegaBlocks depends on mosaicml-turbo, which only supports "
"Python 3.10 for now.")
try:
import stk
except ImportError: