update trained model with ppl ~15 5be99fc
lilei commited on
How to use tobiaslee/bert-yfcc15m with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="tobiaslee/bert-yfcc15m") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("tobiaslee/bert-yfcc15m")
model = AutoModelForMaskedLM.from_pretrained("tobiaslee/bert-yfcc15m", device_map="auto")