What problem does it solve?
Training a model to reliably produce structured outputs (like JSON matching a schema) normally requires deep RL infrastructure expertise. This Skill turns a plain-English task description plus a JSONL dataset into a complete GRPO fine-tuning run on Fireworks-managed GPUs, ending with a deployed, evaluated model.
Core Features & Use Cases
- Reward Function Validation: Generates and validates a schema-based reward.py (score contract: 1.0 valid schema, 0.5 valid JSON wrong shape, 0.0 not JSON) before any GPU spend, using self-tests that must print PASS.
- End-to-End GRPO Pipeline: Uploads the dataset, runs GRPO training on Qwen3-8B via Fireworks training shapes, deploys the resulting model, and evaluates accuracy on an eval set.
- Live Agent Demo: Runs the fine-tuned model on sample invoices with a terminal UI showing per-field extraction results and schema-match percentage.
- Use Case: You have 200 invoice prompts in JSONL and want a model that always returns {vendor, date, amount, currency} as valid JSON. The Skill writes the reward, trains, deploys, and reports final accuracy.
Quick Start
Fine-tune a model on my train.jsonl and eval.jsonl to extract vendor, date, amount, and currency from invoices using GRPO.