mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-19 21:37:20 +08:00
update chatglm_llm.py
This commit is contained in:
parent
befcdf6e32
commit
dfe966ed41
@ -15,9 +15,6 @@ model = (
|
||||
.cuda()
|
||||
)
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True)
|
||||
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).half().cuda()
|
||||
|
||||
class ChatGLM(LLM):
|
||||
max_token: int = 10000
|
||||
temperature: float = 0.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user