Run this model with HF Jobs

Run p208p2002/gpt2-babi 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/p208p2002/gpt2-babi. 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/p208p2002/gpt2-babi 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/p208p2002/gpt2-babi. 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/p208p2002/gpt2-babi. 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.

Fine tune and evaluate transformer model on facebook's bAbi tasks.

Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks

Training Code: p208p2002/bAbi-tasks-with-transformer-model

task_no task_name score
qa1 single-supporting-fact 100
qa2 two-supporting-facts 99.4
qa3 three-supporting-facts 62.0
qa4 two-arg-relations 100
qa5 three-arg-relations 96.0
qa6 yes-no-questions 100
qa7 counting 100
qa8 lists-sets 95.6
qa9 simple-negation 100
qa10 indefinite-knowledge 100
qa11 basic-coreference 100
qa12 conjunction 100
qa13 compound-coreference 100
qa14 time-reasoning 100
qa15 basic-deduction 100
qa16 basic-induction 100
qa17 positional-reasoning 100
qa18 size-reasoning 100
qa19 path-finding 100
qa20 agents-motivations 100
# Please use with the follow template

INPUT_TEMPLATE = """
Context:
{context}

Question:
{question}

Answer:
{answer}
"""

input_text = INPUT_TEMPLATE.format_map({
    "context":context,
    "question":question,
    "answer":answer
}).strip()
Downloads last month
22
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train p208p2002/gpt2-babi

Collection including p208p2002/gpt2-babi

Paper for p208p2002/gpt2-babi