Update README.md
Browse files
README.md
CHANGED
@@ -80,9 +80,9 @@ import os
|
|
80 |
# 加载模型
|
81 |
|
82 |
model_dir='ClueAI/ChatYuan-large-v2'
|
83 |
-
tokenizer =
|
84 |
# 速度会受到网络影响
|
85 |
-
model =
|
86 |
history = []
|
87 |
print("starting")
|
88 |
while True:
|
|
|
80 |
# 加载模型
|
81 |
|
82 |
model_dir='ClueAI/ChatYuan-large-v2'
|
83 |
+
tokenizer = AutoTokenizer.from_pretrained(model_dir)
|
84 |
# 速度会受到网络影响
|
85 |
+
model = AutoModel.from_pretrained(model_dir, trust_remote_code=True)
|
86 |
history = []
|
87 |
print("starting")
|
88 |
while True:
|