Downloads · 30 days
20
2% of all-time downloads
kyryl0s/gpt2-uk-xxs
gpt2-uk-xxs is a text generation model from kyryl0s. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as afl-3.0.
The model is not ready yet but I'm working on it. It also has a relatively small context window, which makes it quite uninteresting.
Downloads · 30 days
20
2% of all-time downloads
All-time downloads
922
Public
Repo size
11.2 MB
Likes
0
Public
Click a slice to open those files.
.bin3.8 MB · 99%
From the Hugging Face model README
The model is not ready yet but I'm working on it. It also has a relatively small context window, which makes it quite uninteresting.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("kyryl0s/gpt2-uk-xxs")
model = AutoModelForCausalLM.from_pretrained("kyryl0s/gpt2-uk-xxs")
input_ids = tokenizer.encode("Путін — ", add_special_tokens=False, return_tensors='pt')
outputs = model.generate(
input_ids,
do_sample=True,
num_return_sequences=3,
max_length=50
)
for i, out in enumerate(outputs):
print("{}: {}".format(i, tokenizer.decode(out)))