Former-commit-id: ebdeaca9cdfd6138c690a0fcb9f676deaddff177
This commit is contained in:
hiyouga 2023-11-14 15:27:05 +08:00
parent 7461bf84e5
commit 87197ba91d

View File

@ -1,6 +1,12 @@
import readline
from llmtuner import ChatModel from llmtuner import ChatModel
try:
import platform
if platform.system() != "Windows":
import readline
except ImportError:
print("Install `readline` for a better experience.")
def main(): def main():
chat_model = ChatModel() chat_model = ChatModel()