globis-university/aozorabunko-clean
Viewer • Updated • 17k • 1.91k • 43
How to use bluolightning/bert-tiny-japanese-char with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="bluolightning/bert-tiny-japanese-char") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("bluolightning/bert-tiny-japanese-char")
model = AutoModelForCausalLM.from_pretrained("bluolightning/bert-tiny-japanese-char")This model is a tiny Japanese BERT model with 4 layers, optimized for speed.
tohoku-nlp/bert-base-japanese-char-v2.