Run this model with HF Jobs

Run akhooli/gpt2-small-arabic-poetry 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/akhooli/gpt2-small-arabic-poetry. 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/akhooli/gpt2-small-arabic-poetry 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/akhooli/gpt2-small-arabic-poetry. 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/akhooli/gpt2-small-arabic-poetry. 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.
How to use from
Docker Model Runner
docker model run hf.co/akhooli/gpt2-small-arabic-poetry
Quick Links

YAML Metadata Error:"datasets[0]" with value "Arabic poetry from several eras" is not valid. If possible, use a dataset id from https://hf.co/datasets.

GPT2-Small-Arabic-Poetry

Model description

Fine-tuned model of Arabic poetry dataset based on gpt2-small-arabic.

Intended uses & limitations

How to use

An example is provided in this colab notebook.

Limitations and bias

Both the GPT2-small-arabic (trained on Arabic Wikipedia) and this model have several limitations in terms of coverage and training performance. Use them as demonstrations or proof of concepts but not as production code.

Training data

This pretrained model used the Arabic Poetry dataset from 9 different eras with a total of around 40k poems. The dataset was trained (fine-tuned) based on the gpt2-small-arabic transformer model.

Training procedure

Training was done using Simple Transformers library on Kaggle, using free GPU.

Eval results

Final perplexity reached ws 76.3, loss: 4.33

BibTeX entry and citation info

@inproceedings{Abed Khooli,
  year={2020}
}
Downloads last month
694
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
U8
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using akhooli/gpt2-small-arabic-poetry 2