Downloads · 30 days
5
10% of all-time downloads
samz/minimind-pretrain
minimind-pretrain is a machine learning model from samz. 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 mit.
Chinese language model trained on pretrain dataset.
Downloads · 30 days
5
10% of all-time downloads
All-time downloads
50
Public
Repo size
215 MB
Likes
0
Public
Click a slice to open those files.
.pth108 MB · 50%
From the Hugging Face model README
Chinese language model trained on pretrain dataset.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("samz/minimind-pretrain")
tokenizer = AutoTokenizer.from_pretrained("samz/minimind-pretrain")
text = "今天天气真不错"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=50)
result = tokenizer.decode(outputs[0])
print(result)