Repository navigation
v0.2.0-alpha.12
Pre-release
Pre-release
·
91 commits
to main
since this release
Server-managed GRPO recipe, server-side OpenAI/Anthropic trainer & snapshot endpoints, Qwen3 multi-turn prefix reuse, cross-process OAuth refresh locking, cost-aware router utility calibration, unified grad runs CLI & portal UI, and dataset/RL correctness fixes. Zero new database migrations.
- Server-Managed GRPO Recipe & Promoted RL Losses:
- Added first-class server-managed
grporecipe across API, planner, trainer (GRPOKLwith single-GPU initial-weight KL regularization and built-in deterministic validatorsmath,exact_match,contains,final_number,choice,json,non_empty,regex), OpenAPI, all four SDKs (GRPORecipe), and CLI (grad train --recipe grpo --validator ..., supportinggroup_std,dr_grpo,rloo, and Clip-Higherclip_low/clip_high). - Promoted additional server losses (
CISPO,DRO,StableReinforcewith bounded k3 KL guard) and addedTrainer.train_step/trainStep, true token-level Shannon entropy in RLforward_backward,Trainer.wait_ready(), and accuraterecipe_kindstamping on trainer exports.
- Added first-class server-managed
- Server-Side OpenAI & Anthropic Trainer/Snapshot Endpoints, SSE Drain & Multi-Turn Prefix Reuse:
- Added OpenAI (
/v1/trainers/{id}[/snapshots/{seq}]/openai/v1/chat/completions) and Anthropic (/v1/trainers/{id}[/snapshots/{seq}]/anthropic/v1/messages) trainer endpoints with short-lived trainer-scoped sample-only tokens (POST /v1/trainers/{id}/endpoint-tokens), server-side per-session token-aligned trajectory capture (GET/DELETE /v1/trainers/{id}/sessions), and thinendpoint()/trajectories()helpers across Python, TypeScript, Go, and Rust SDKs (removing the local Pythonproxy.pyHTTP server while keepinggrad proxyin Rust untouched for local BYO rollouts). - Fixed server SSE
donestream-drain races, immediatetemplate_revisionpopulation onPOST /v1/trainers, GoSampleStream.DeltasSSE error propagation, and Qwen3 multi-turncontinueprefix reuse (reset=False).
- Added OpenAI (
- Router Cost-Aware Calibration & Planning Diagnostics:
- Upgraded
RouterRecipeto cost-aware utility routing (argmax_m (p_m - λ c_m)with per-candidate temperatures and threshold fallback), richeval_reportdiagnostics (selection_eval_lossvsheldout_eval_loss,candidate_breakdown,baselines,pareto_curve,truncation_stats), zero-dependencyRouterPolicyin Python & TypeScript, andruns.planrouter_summary.
- Upgraded
- Auth, Uploads, Datasets & Validators:
- Fixed cross-process OAuth 2.1 refresh-token races across Python, TypeScript, Go, and Rust CLI via sibling OS file locking, reload-before-refresh, and atomic
config.jsonwrites. - Fixed Rust S3 presigned PUT
403 SignatureDoesNotMatch(stopped injecting unsignedcontent-type) and separated storage upload errors from Grad API scope hints. - Added atomic multi-chunk
datasets.push()viaupload_id,DELETE /v1/datasets/{name}(grad datasets delete) with emptyv0cleanup on failed initial imports, expanded HF column mapping, shared conversation prefix stripping for DPO/reward pairs with explicitprompt, preserved per-messagetrainandnameinimport_file, cleaned upexpected_outputsemantics (never overwriting existing assistant CoT turns or hijacking DPO/reward), upfrontDecisionModelRecipeschema validation, and sixMathEquivalence/IFEvalvalidator fixes.
- Fixed cross-process OAuth 2.1 refresh-token races across Python, TypeScript, Go, and Rust CLI via sibling OS file locking, reload-before-refresh, and atomic
- Unified CLI, Portal UI, Evals & SDK Polish:
- Unified
grad runs list/get/watch/cancelacross managed runs and interactive trainers (trn_*auto-dispatch), unifiedgrad usage list --run trn_*, updatedPaused ($0/hr)copy, workflow-orderedserver/uinav + Settings page, and addedGET /v1/whoami+grad whoami+ Cloud-safe501 inference_unavailableerrors. - Fixed
save_state(name, ttl_s)persistence and"trainer_state"checkpoint format reporting,sampler.policy("base")label /"artifact:"prefix,Gate(rule="delta")small-sample support,mode="env"evalby_scorer/mean_turns, TypeScriptSampledAssistantMessage→ChatMessageassignability +reasoningContentcodec, GoUsageTrainer, andgrad rendermulti-lineTRAIN │gutters +--preserve-thinking.
- Unified