Run this model with HF Jobs

Run HardikJha/extractor-aea 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 to fine-tune https://huggingface.co/HardikJha/extractor-aea. 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/HardikJha/extractor-aea 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/HardikJha/extractor-aea. 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/HardikJha/extractor-aea. 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/HardikJha/extractor-aea
Quick Links

Extractor (SFT warmup) β€” Adversarial Structured-Extraction Arena

This model repo hosts the SFT warmup LoRA adapter trained for the OpenEnv project Adversarial Structured-Extraction Arena: an adversary perturbs messy documents/schemas (under a budget) and the extractor must output valid JSON matching a target schema.

Links (submission)

Evidence (plots + logs)

What this checkpoint is

  • Base model: unsloth/Qwen2.5-1.5B-Instruct (4-bit Unsloth bundle: unsloth/qwen2.5-1.5b-instruct-unsloth-bnb-4bit)
  • Adapter: LoRA (peft), saved from training/sft_warmup.py

Quick start (load base + adapter)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model_id = "unsloth/Qwen2.5-1.5B-Instruct"
adapter_id = "HardikJha/extractor-aea"

tokenizer = AutoTokenizer.from_pretrained(adapter_id, trust_remote_code=True)

base = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    torch_dtype=torch.float16,
    device_map="auto",
    trust_remote_code=True,
)
model = PeftModel.from_pretrained(base, adapter_id)

Training procedure

  • Objective: supervised JSON extraction formatting aligned to the repo’s extractor prompt (training/prompts.py)
  • Framework: TRL SFTTrainer + Unsloth FastLanguageModel (see training/sft_warmup.py)

This model was trained with SFT.

Framework versions

  • PEFT 0.18.1
  • TRL: 0.23.0
  • Transformers: 4.57.2
  • Pytorch: 2.10.0+cu128
  • Datasets: 4.3.0
  • Tokenizers: 0.22.2

Citations

Cite TRL as:

@misc{vonwerra2022trl,
    title        = {{TRL: Transformer Reinforcement Learning}},
    author       = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
    year         = 2020,
    journal      = {GitHub repository},
    publisher    = {GitHub},
    howpublished = {\url{https://github.com/huggingface/trl}}
}
Downloads last month
15
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using HardikJha/extractor-aea 1