Downloads · 30 days
138
0% of all-time downloads
flax-community/gpt2-medium-persian
gpt2-medium-persian is a text generation model from flax-community. Use it when you need the model to write or continue text. It is set up for transformers.
This is part of the Flax/Jax Community Week, organized by HuggingFace and TPU usage sponsored by Google.
Downloads · 30 days
138
0% of all-time downloads
All-time downloads
170K
Public
Repo size
223 GB
Likes
10
Public
Click a slice to open those files.
.bin1.4 GB · 33%
From the Hugging Face model README
This is part of the Flax/Jax Community Week, organized by HuggingFace and TPU usage sponsored by Google.
We used Oscar dataset, which is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus.
You can use this model directly with a pipeline for text generation.
from transformers import pipeline, AutoTokenizer, GPT2LMHeadModel
tokenizer = AutoTokenizer.from_pretrained('flax-community/gpt2-medium-persian')
model = GPT2LMHeadModel.from_pretrained('flax-community/gpt2-medium-persian')
generator = pipeline('text-generation', model, tokenizer=tokenizer, config={'max_length':100})
generated_text = generator('در یک اتفاق شگفت انگیز، پژوهشگران')
For using Tensorflow import TFGPT2LMHeadModel instead of GPT2LMHeadModel.
... SOON
... SOON