initial commit 7b1f6ab
Xiangyang Liu commited on
How to use OpenMOSS-Team/elasticbert-chinese-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="OpenMOSS-Team/elasticbert-chinese-base") # Load model directly
from transformers import AutoModelForMaskedLM
model = AutoModelForMaskedLM.from_pretrained("OpenMOSS-Team/elasticbert-chinese-base", dtype="auto")