The original ParsGPT2 model ported to Hezar for compatibility.

Usage

pip install hezar
from hezar import Model


model = Model.load("gpt2-base-fa")
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
outputs = model.predict(text)
print(outputs)