How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="flax-community/gpt2-persian-question-answering")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM

tokenizer = AutoTokenizer.from_pretrained("flax-community/gpt2-persian-question-answering")
model = AutoModelForMultimodalLM.from_pretrained("flax-community/gpt2-persian-question-answering")
Quick Links

Question-Answering Using GPT2 - Persian

This is a side project of this thread Flax/Jax Community Week - GPT2 4 Persian, organized by HuggingFace and TPU usage sponsored by Google.

Team Members

Dataset

We used PersianQA dataset which is a reading comprehension dataset on Persian Wikipedia.

How To Use TODO: Update

Demo TODO: Update

Evaluation TODO: Update

Downloads last month
10
Safetensors
Model size
0.4B params
Tensor type
F32
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using flax-community/gpt2-persian-question-answering 1