Downloads · 30 days
27
11% of all-time downloads
supertakerin2/waka-gpt
waka-gpt is a text generation model from supertakerin2. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
waka-gpt is a GPT-based language model designed for Japanese text generation. It was constructed by fine-tuning the original base model, rinna/japanese-gpt2-small (based on base model information). Features and Use Ca…
Downloads · 30 days
27
11% of all-time downloads
All-time downloads
251
Public
Parameters
110M
442 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors442 MB · 100%
From the Hugging Face model README
waka-gpt is a GPT-based language model designed for Japanese text generation. It was constructed by fine-tuning the original base model, rinna/japanese-gpt2-small (based on base model information). Features and Use Cases (Samples): Generating classical and waka-style texts Generating Japanese poetry and creative writing Conversation/Creative writing assistance
The Eight Imperially Compiled Anthologies of Waka Poetry, compiled during the golden age of waka culture
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("supertakerin2/waka-gpt")
model = AutoModelForCausalLM.from_pretrained("supertakerin2/waka-gpt")
input_text = "古き良き日本の風景を詠む和歌:"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
waka-gpt is a statistical language model trained on large volumes of text, and the following points require attention: Potential for factual errors in output Potential for inclusion of biases Potential to generate inappropriate expressions in specific contexts Proper filtering and operation under supervision are recommended.