Downloads · 30 days
0
visual-openllm/visual-openllm-chatglm-6b-rola
visual-openllm-chatglm-6b-rola is a machine learning model from visual-openllm. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2023
Repo size
88.1 MB
Likes
9
Public
Click a slice to open those files.
.bin29.4 MB · 100%
From the Hugging Face model README
from modeling_chatglm import ChatGLMForConditionalGeneration
import torch
torch.set_default_tensor_type(torch.cuda.HalfTensor)
model = ChatGLMForConditionalGeneration.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True, device_map='auto')
from peft import PeftModel
model = PeftModel.from_pretrained(model, "visual-openllm/visual-openllm-chatglm-6b-rola")
torch.set_default_tensor_type(torch.cuda.FloatTensor)