stateset-agents on PyPI. Multi-turn generation exists in
several trainer libraries now; what this keeps coherent is the whole loop —
traces, rewards, training, and a deployed model with lineage back to the
conversations that produced it.
Earlier revisions of these docs called this framework
grpo-agent-framework,
which is not a published package. The install is pip install stateset-agents.The loop
The whole loop, end to end:
next_steps.md is worth reading rather than skipping: the improve step prints
the exact training command for what it just curated, so step 3 is a copy rather
than a decision.
Rewards
Grading is rule-based and offline. Four rewards ship:There are deliberately no LLM-judge rewards in this list. A judge needs an API
key and a network call per turn, which makes grading non-reproducible and
turns a local loop into a billed one. Judge-based evaluation exists in the
framework for benchmarking; it is not part of the offline improve loop.
Algorithms
GRPO is the default and the one the quickstart uses. Six other objectives ship as trainers instateset_agents.training, each with its own config and the same
reward and environment interfaces, so switching is a one-line change:
All seven run under one measured protocol: the 0.42.5 release reports a 15-run matrix across
five of them on matched hardware, and 0.42.4 adds framework-neutral comparison gates against TRL
and measured 1/2/4/8-GPU weak and strong scaling. The benchmark harness that produced those numbers
ships in the repository, so a claim about one algorithm beating another is reproducible rather
than quoted.
Training backends
The framework does not implement its own trainer. It drives version-pinned backends behind a fail-closed adapter — PPO, GRPO and GSPO through OpenRLHF, PPO/GRPO through verl, and distributed maths GRPO through NeMo RL.Next steps
Quickstart
Logs to a retrained model, with no GPU of your own.
CLI reference
Every command, and which ones cost money.
Agents API
The REST gateway: agents, conversations, training jobs, and Anthropic/OpenAI-compatible inference.
MCP server
Drive the improve loop from Claude Code or your own agent.
Agent objectives
Choosing what to reward before you train on it.