Skip to content

v0.2.0-alpha.12

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Dec 20:33
· 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 grpo recipe across API, planner, trainer (GRPOKL with single-GPU initial-weight KL regularization and built-in deterministic validators math, exact_match, contains, final_number, choice, json, non_empty, regex), OpenAPI, all four SDKs (GRPORecipe), and CLI (grad train --recipe grpo --validator ..., supporting group_std, dr_grpo, rloo, and Clip-Higher clip_low/clip_high).
    • Promoted additional server losses (CISPO, DRO, StableReinforce with bounded k3 KL guard) and added Trainer.train_step / trainStep, true token-level Shannon entropy in RL forward_backward, Trainer.wait_ready(), and accurate recipe_kind stamping on trainer exports.
  • 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 thin endpoint() / trajectories() helpers across Python, TypeScript, Go, and Rust SDKs (removing the local Python proxy.py HTTP server while keeping grad proxy in Rust untouched for local BYO rollouts).
    • Fixed server SSE done stream-drain races, immediate template_revision population on POST /v1/trainers, Go SampleStream.Deltas SSE error propagation, and Qwen3 multi-turn continue prefix reuse (reset=False).
  • Router Cost-Aware Calibration & Planning Diagnostics:
    • Upgraded RouterRecipe to cost-aware utility routing (argmax_m (p_m - λ c_m) with per-candidate temperatures and threshold fallback), rich eval_report diagnostics (selection_eval_loss vs heldout_eval_loss, candidate_breakdown, baselines, pareto_curve, truncation_stats), zero-dependency RouterPolicy in Python & TypeScript, and runs.plan router_summary.
  • 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.json writes.
    • Fixed Rust S3 presigned PUT 403 SignatureDoesNotMatch (stopped injecting unsigned content-type) and separated storage upload errors from Grad API scope hints.
    • Added atomic multi-chunk datasets.push() via upload_id, DELETE /v1/datasets/{name} (grad datasets delete) with empty v0 cleanup on failed initial imports, expanded HF column mapping, shared conversation prefix stripping for DPO/reward pairs with explicit prompt, preserved per-message train and name in import_file, cleaned up expected_output semantics (never overwriting existing assistant CoT turns or hijacking DPO/reward), upfront DecisionModelRecipe schema validation, and six MathEquivalence / IFEval validator fixes.
  • Unified CLI, Portal UI, Evals & SDK Polish:
    • Unified grad runs list/get/watch/cancel across managed runs and interactive trainers (trn_* auto-dispatch), unified grad usage list --run trn_*, updated Paused ($0/hr) copy, workflow-ordered server/ui nav + Settings page, and added GET /v1/whoami + grad whoami + Cloud-safe 501 inference_unavailable errors.
    • 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" eval by_scorer/mean_turns, TypeScript SampledAssistantMessage → ChatMessage assignability + reasoningContent codec, Go UsageTrainer, and grad render multi-line TRAIN │ gutters + --preserve-thinking.