Downloads · 30 days
1.1K
24% of all-time downloads
hezarai/gpt2-base-fa
gpt2-base-fa is a text generation model from hezarai. Use it when you need the model to write or continue text. It is set up for hezar.
The original ParsGPT2 model ported to Hezar for compatibility.
Downloads · 30 days
1.1K
24% of all-time downloads
All-time downloads
4.5K
Public
Repo size
472 MB
Likes
2
Public
Click a slice to open those files.
.pt472 MB · 99%
From the Hugging Face model README
The original ParsGPT2 model ported to Hezar for compatibility.
pip install hezar
from hezar.models import Model
model = Model.load("hezarai/gpt2-base-fa")
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
outputs = model.predict(text)
print(outputs)