gpt2-base-fa / README.md
arxyzan's picture
Update README.md
73aebe4
|
raw
history blame
459 Bytes
metadata
language:
  - fa
library_name: hezar
tags:
  - text-generation
  - hezar
pipeline_tag: text-generation

The original ParsGPT2 model ported to Hezar for compatibility.

Usage

pip install hezar
from hezar.models import Model


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