cpm-ant-10b

作者 openbmb · 下载 12419 · 点赞 22 · 更新 2023-11-01

text-generation

Usage

pip install transformers
from transformers import CpmAntTokenizer, CpmAntForCausalLM

texts = "今天天气不错,"
model = CpmAntForCausalLM.from_pretrained("openbmb/cpm-ant-10b")
tokenizer = CpmAntTokenizer.from_pretrained("openbmb/cpm-ant-10b")
input_ids = tokenizer(texts, return_tensors="pt")
outputs = model.generate(**input_ids)
output_texts = tokenizer.batch_decode(outputs)

print(output_texts)

模型信息

该模型卡暂无预览图和文字说明。以下信息来自 Hugging Face。

作者 openbmb
类型—
基础模型—
标签text-generation
下载12419
点赞22
更新时间2023-11-01
Hugging Face https://huggingface.co/openbmb/cpm-ant-10b