use this :
from transformers import pipeline,GPT2Tokenizer
test_input = "Øەزم"
tokenizer = GPT2Tokenizer.from_pretrained("bayandorian/gpt2-kurdish")
generator = pipeline('text-generation', model='bayandorian/gpt2-kurdish',device="cuda")
sample = generator(test_input, temperature=1.2, top_k=50, top_p=0.9, repetition_penalty=1.2, pad_token_id = tokenizer.eos_token_id)
print(sample)
- Downloads last month
- 341
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.
Model tree for bayandorian/gpt2-kurdish
Base model
openai-community/gpt2