Skip to content

Agent Forge & Deploy Autopilot (v0.46.0)

soup agent — OpenAPI / MCP / GraphQL → SFT

Parse a tool spec, synthesize tool-calling SFT data, and print the training recipe for it.

bash
soup agent synth --spec ./openapi.yaml --output ./tools.jsonl
soup agent train --spec ./openapi.yaml --base meta-llama/Llama-3.1-8B-Instruct
soup agent eval --spec ./openapi.yaml --predictions ./preds.jsonl

soup agent train does not train. It writes the synthesized dataset (--dataset-out, default agent_dataset.jsonl), then prints a planned recipe and the soup train --config agent_train.yaml --yes command. It does not create agent_train.yaml: you save the recipe yourself and run that command. The printed recipe pins epochs: 3 and lr: 2.0e-5. soup agent train writes 4 examples per endpoint by default (-n, 1 to 32).

--examples-per-endpoint (-n) sets how many rows each endpoint gets: 1 by default for soup agent synth, 4 for soup agent train, 1 to 32 for both. The rows are templated, not model-written: each pairs one of three fixed user phrasings (built from the endpoint's description or name) with a tool call whose arguments are the literal placeholder <value> for every parameter, so beyond 3 per endpoint the user messages repeat.

What soup agent eval scores. --predictions is a JSONL file under the working directory (a symlink is refused), one object per line with at least tool and arguments, for example {"tool": "get_user", "arguments": {"user_id": "7"}}. Each row gets two checks: tool has to be a tool in the spec's catalog, and every key of arguments has to be a parameter that tool declares. The panel prints Predictions, Tool match and Args valid as counts and percentages of all lines (a line that is not a JSON object counts as a prediction that matches nothing, and Args valid only counts rows whose tool matched). Nothing is executed, and the exit code does not depend on the score: a spec or predictions file that cannot be read, or an empty file (No predictions to score.), exits 1. Up to 1,000,000 lines are read.

--sandbox runs the rows that pass. A row that passes both checks is also executed against a generated mock of its endpoint in the RLVR code sandbox (5 second limit, output capped) and counted as ok (the mock returned parseable JSON), tool_error (it failed, for example because a path parameter such as {user_id} in /users/{user_id} was not given), timeout, or arg_error. Under --sandbox every row that fails the two checks, including a line that is not valid JSON, is arg_error and never runs. Strong isolation (resource limits, namespaces, sandbox-exec) exists on POSIX only; on Windows the timeout, output cap and network guard still apply, the isolation is reduced, and the command prints a note saying so.

soup agent synth detects the spec kind (OpenAPI, MCP manifest or GraphQL introspection) by itself; --kind openapi|mcp|graphql (-k) overrides the guess. soup agent train also takes --output-dir (default ./agent_train_output), the directory the printed soup train run will use for checkpoints.

Supports OpenAPI 3.x, MCP manifests, and GraphQL introspection.

The rows load as format: tool-calling. Since v0.76.0 (#1217), each row soup agent synth writes carries a top-level tools list with the OpenAI-style schema of the tool it calls (the parameter names, each typed as "any": the spec's parameter schemas are not copied), beside the messages with the call inside the assistant turn. format: auto detects that row as tool-calling, and soup data validate on the output prints Auto-detected format: tool-calling. Through v0.75.2 every row soup agent synth wrote was dropped by the tool-calling converter, and soup train --dry-run still printed "Ready to train!" on zero rows, so a run trained on that output saw none of it: re-run it. See Tool-calling fine-tuning.

soup deploy autopilot

Pick PEFT + quant + spec-decoding combo for a hardware target.

bash
soup deploy autopilot --base ./output --target runpod-a100
soup deploy autopilot --base ./output --target mac-m4-pro

--list prints the catalog. The ten target ids are mac-m3, mac-m4-pro, rtx-3060-12gb, rtx-4090-24gb, iphone-16, pixel-9, ollama-local, lm-studio, runpod-a100 and hf-jobs-h100. A run writes two files, deploy_autopilot.yaml and deploy_autopilot.sh.

rtx-4090-24gb plans 4-bit QLoRA with vLLM since v0.77.0 (#1951). It used to write quantization: awq, which loads a base that is already AWQ-quantized, for an ordinary base, and Soup no longer produces AWQ (the AWQ export and the [awq] extra are gone). To serve a pre-quantized AWQ checkpoint, point vLLM at it directly, as the profile's own note says.

--measure --tasks <jsonl> also runs the Quant-Lobotomy measurement over the quants named in --measure-candidates (by default the profile's primary quant), for example --measure-candidates 4bit,8bit,fp8. gptq and awq are still accepted there, because they load a checkpoint that is already quantized that way; a candidate whose model fails to load ends the run with exit 1 (Live measure failed: ... for a load error such as a missing quant kernel).

Soup is free and Apache-2.0. If it saved you a training run, starring the repo costs nothing and helps most. You can also fund the GPU time behind the work a 4 GB laptop cannot reach.