Run this model with HF Jobs

Run m3hrdadfi/gpt2-persian-qa on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/m3hrdadfi/gpt2-persian-qa. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/m3hrdadfi/gpt2-persian-qa on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/m3hrdadfi/gpt2-persian-qa. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/m3hrdadfi/gpt2-persian-qa. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

GPT2 QA - Persian

It is a new approach to using GPT2 in other downstream NLP tasks like QA. The model was trained on PersianQA and evaluated on PersianQA and PersiNLU (Reading Comprehension).

Dataset

Evaluation

The following table summarizes the scores obtained by the model.

Dataset F1 Score (%) Exact Match (%) Total (#)
ParsNLU 46.95 20.39 564
PersianQA 45.93 23.19 651

Demo

Streamlit GPT2 QA - Persian

How to use

TODO (will be filled shortly)...

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

Dataset used to train m3hrdadfi/gpt2-persian-qa

Space using m3hrdadfi/gpt2-persian-qa 1