japanese-gpt2-medium

rinna-icon

This repository provides a medium-sized Japanese GPT-2 model trained on Japanese CC-100. The model is provided by rinna.

Use the model

NOTE: Use T5Tokenizer to initiate the tokenizer.

from transformers import T5Tokenizer, AutoModelForCausalLM

tokenizer = T5Tokenizer.from_pretrained("rinna/japanese-gpt2-medium")

model = AutoModelForCausalLM.from_pretrained("rinna/japanese-gpt2-medium")
Downloads last month
3,745
Hosted inference API
Text Generation