first commit for the pre-trained pai-bert-tiny-zh model b1eda60
dongjunwei.djw commited on
How to use alibaba-pai/pai-bert-tiny-zh with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="alibaba-pai/pai-bert-tiny-zh") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("alibaba-pai/pai-bert-tiny-zh", device_map="auto")