Downloads · 30 days
0
lucid-dl/roformer-chinese-base-mlm
roformer-chinese-base-mlm is a fill-mask model from lucid-dl. Use it when you need the model to fill a missing word. It is set up for lucid. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated May 29, 2026
Repo size
652 MB
Likes
0
Public
Click a slice to open those files.
.safetensors652 MB · 100%
From the Hugging Face model README
Lucid port of transformers/junnyu/roformer_chinese_base,
converted to Lucid-native safetensors.
| Tag | Params | GFLOPs | Size | Source |
|---|---|---|---|---|
CLUECORPUSSMALL (default) | 124.2M | — | 622.16 MB | transformers |
import lucid
import lucid.models as models
from lucid.models.weights import RoFormerMLMWeights
# default tag
model = models.roformer_mlm(pretrained=True)
# explicit tag (enum or string)
model = models.roformer_mlm(weights=RoFormerMLMWeights.CLUECORPUSSMALL)
model = models.roformer_mlm(pretrained="CLUECORPUSSMALL")
# feed token ids (tokenize with the matching lucid.utils.tokenizer)
input_ids = lucid.tensor([[101, 7592, 2088, 102]], dtype=lucid.int64)
out = model(input_ids)
logits = out.logits # (B, T, vocab_size)
Converted from transformers/junnyu/roformer_chinese_base via
python -m tools.convert_weights roformer_mlm --tag CLUECORPUSSMALL.
Key mapping + numerical parity verified against the source.
apache-2.0 — inherited from the original weights.
Su et al., "RoFormer: Enhanced Transformer with Rotary Position Embedding", 2021.