YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
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)
- Downloads last month
- 3
Inference API (serverless) does not yet support model repos that contain custom code.