Downloads · 30 days
14
3% of all-time downloads
aolei/llm-chatglm2-ft
llm-chatglm2-ft is a feature extraction model from aolei. Use it when you need embeddings to search or compare text. It is set up for transformers.
from transformers import AutoTokenizer, AutoModel
Downloads · 30 days
14
3% of all-time downloads
All-time downloads
492
Public
Repo size
27.9 GB
Likes
0
Public
Click a slice to open those files.
.bin15.4 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("aolei/llm-chatglm2-ft", trust_remote_code=True)
tokenizer.padding_side='left'
model = AutoModel.from_pretrained("LLaMA-Efficient-Tuning/t1_export", trust_remote_code=True).half().cuda()
model = model.eval()
response, history = model.chat(tokenizer, "给我一个折线图", history=[])
print(response, history)