gpt2-base-fa / README.md
arxyzan's picture
Create README.md
92f4aec
|
raw
history blame
412 Bytes
---
language:
- fa
library_name: hezar
pipeline_tag: text-generation
---
The original [ParsGPT2](https://huggingface.co/HooshvareLab/gpt2-fa) model ported to Hezar for compatibility.
## Usage
```
pip install hezar
```
```python
from hezar import Model
model = Model.load("gpt2-base-fa")
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
outputs = model.predict(text)
print(outputs)
```