Run this model with HF Jobs

Run RJaat/qwen3-4b-web-extract-lora 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/RJaat/qwen3-4b-web-extract-lora. 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/RJaat/qwen3-4b-web-extract-lora 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.

qwen3-4b-web-extract-lora

LoRA adapter for Qwen/Qwen3-4B-Instruct-2507, post-trained with Halo 1.3.0 (competition branch) for the White Circle Halo Competition, ft-hf track.

Task: turn messy real-world web page text into schema-valid JSON for three families: product, job, recipe — locally, with no per-call API.

Results (held-out real pages, 3 seeds)

Eval set Base F1 This adapter
real v1 (26 pages) 0.639 0.838
real v2 hard (75 pages, unseen domains) 0.625 0.778
synthetic generator (120 items) 0.911 0.991
fresh items, new seed 4242 (120 items) 0.910 0.991
general ability (40-item check) 0.925 0.925

Schema-valid rate: 1.000 on all extraction sets. Fabrication rate ≤ 1%.

Method

  • Iterative offline GRPO, LoRA r=64 / alpha=128 on all projection modules.
  • Reward (stdlib, verifiable): 0.4·schema_valid + 0.5·field_F1 − 0.1·fabrication.
  • 374 prompts × 8 sampled completions, 3 epochs, lr 2e-6, constant schedule.
  • Data: 115 real pages (Firecrawl; 7 sites) + 350 synthetic; gold labels from gpt-oss-20b/120b via OpenRouter, schema-validated and value-verified.
  • White Circle honesty policies scored 4,488 completions (173 flagged).

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
model = PeftModel.from_pretrained(model, "RJaat/qwen3-4b-web-extract-lora")

Prompt format: system = "You are a precise data-extraction engine…"; user = Schema:\n<json-schema>\n\nPage text:\n<page>\n\nJSON:.

Full code, data and reproduction: see the competition repo (extraction/). Writeup: .

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

Model tree for RJaat/qwen3-4b-web-extract-lora

Adapter
(5,891)
this model

Dataset used to train RJaat/qwen3-4b-web-extract-lora

Space using RJaat/qwen3-4b-web-extract-lora 1