add fast tokenizer config 0a136cc
hfl-rc commited on
How to use hfl/rbtl3 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="hfl/rbtl3") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("hfl/rbtl3")
model = AutoModelForMaskedLM.from_pretrained("hfl/rbtl3", device_map="auto")