Downloads · 30 days
10
17% of all-time downloads
chi-vi/chivi-modern-bert
chivi-modern-bert is a fill-mask model from chi-vi. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
A ModernBERT model pretrained from scratch in Chinese novels corpus with MLM task.
Downloads · 30 days
10
17% of all-time downloads
All-time downloads
60
Public
Parameters
137M
547 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors547 MB · 99%
From the Hugging Face model README
A ModernBERT model pretrained from scratch in Chinese novels corpus with MLM task.
this BPE tokenizer with a 25k tokens vocab was trained from scratch. Ensures that the tokenizer is well-suited to novel-style content, including names, informal phrases, and rare words.
Use the model with a pipeline for masked language modeling task:
from transformers import AutoTokenizer, AutoModelForMaskedLM, pipeline
tokenizer = AutoTokenizer.from_pretrained("chi-vi/chivi-modern-bert")
model = AutoModelForMaskedLM.from_pretrained("chi-vi/chivi-modern-bert")
pipe = pipeline("fill-mask", model=model, tokenizer=tokenizer)
print(pipe("9月14号周日晚间,美林公司同意以440亿美元出售[UNK]米国银行。"))