Downloads · 30 days
9
27% of all-time downloads
Antonioguerra/KING_RIZAW_V0.1
KING_RIZAW_V0.1 is a machine learning model from Antonioguerra. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A small language model trained on Shakespeare's works, generating text in a Shakespearean style with creative flair.
Downloads · 30 days
9
27% of all-time downloads
All-time downloads
33
Public
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.pt134 MB · 100%
From the Hugging Face model README
A small language model trained on Shakespeare's works, generating text in a Shakespearean style with creative flair.
# Example code to use the model
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "Antonioguerra/KING_RIZAW_V0.1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "To be or not to be,"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(inputs["input_ids"], max_length=50, temperature=0.8)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
This model was trained on a collection of Shakespeare's works using a transformer architecture with self-attention mechanisms. The training process utilized both standard training approaches and enhanced techniques to improve the quality of generated text.

This model is released under an open license for research and creative purposes.