update chatglm_llm.py
This commit is contained in:
parent
befcdf6e32
commit
dfe966ed41
|
|
@ -15,9 +15,6 @@ model = (
|
||||||
.cuda()
|
.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):
|
class ChatGLM(LLM):
|
||||||
max_token: int = 10000
|
max_token: int = 10000
|
||||||
temperature: float = 0.1
|
temperature: float = 0.1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue