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="m3hrdadfi/gpt2-QA")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("m3hrdadfi/gpt2-QA")
model = AutoModelForCausalLM.from_pretrained("m3hrdadfi/gpt2-QA")
Quick Links

GPT2 QA

Using GPT2 in other downstream NLP tasks like QA. The model was trained and evaluated on squad.

Dataset

Evaluation

The following table summarizes the scores obtained by the model.

Demo

Streamlit GPT2 QA

How to use

TODO (will be filled shortly)...

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train m3hrdadfi/gpt2-QA

Space using m3hrdadfi/gpt2-QA 1