Skip to content

v0.2.0-alpha.13

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 12:50
· 85 commits to main since this release

Router by_session multi-turn split preservation, qwen/qwen3-4b & qwen/qwen3-8b router support, TLS-aware trainer endpoints with unpinned next_seq resync, and Python/TypeScript SDK ergonomics polish. Zero new database migrations.

  • Router Recipe & Policy Fixes (server/api, server/trainer, Python SDK):
    • Enabled qwen/qwen3-4b (lr=4e-4) and qwen/qwen3-8b (lr=3e-4) for RouterRecipe in the model catalog.
    • Preserved shared multi-turn session_id across RouterRecipe by_session splits in both the API planner and trainer (falling back to group_id only when session_id is absent or inconsistent within a prompt group), preventing cross-split session leakage.
    • Hardened RouterPolicy.route() / evaluate() to reject NaN/Inf/bool candidate probabilities and distinguish explicit lambda_=None/threshold=None from omitted defaults via a sentinel.
    • Added typed EvalReport & RouterParetoSummary router fields, improved run_byo_eval (session_id, score_name, pricing, error_samples), and surfaced clearer router skip reasons when records lack numeric scores.
  • Trainer Endpoints, Losses & Billing (server/api, server/trainer, Python SDK):
    • Fixed POST /v1/trainers/:id/endpoint-tokens to honor validated x-forwarded-proto / x-forwarded-host headers behind TLS-terminating ingress (with HTTPS preservation in the Python SDK), preventing ConnectTimeout on Cloud trainer endpoints.
    • Automatically resynced next_seq in Python Trainer after unpinned trainer.endpoint() traffic to prevent 409 seq_conflict on subsequent ops.
    • Fixed GRPOKL.stats / SFTKL.stats entropy kwarg handling in grad_trainer/losses.py, exposed Trainer.cost_usd & Trainer.tokens_processed, and added backward-compatible datasets.push() fallback + /v1/whoami bare-404 handling.
  • SDK Ergonomics & Breaking DX Cleanups (Python & TypeScript SDKs):
    • Breaking: Changed Dataset.records() / Datasets.records() so limit caps the total yielded records (adding page_size for server pagination control) and yields AttrDict records supporting both r["messages"] and r.messages.
    • Breaking: Changed Trainer.log_metrics(metrics, *, step=None, timestamp=None) (Python) and Trainer.logMetrics(metrics, { step?, timestamp? }) (TypeScript) to metrics-first with step defaulting to the trainer's current step.
    • Added SaveStateResult.id / .checkpoint_id / .step, SampleResult.text / .texts, AttrDict conversion for Sample.message, thinking= forwarding on sample() and sample_stream(), and disabled APIObject sequence fallback (__iter__ = None) so accidental iteration raises TypeError instead of KeyError: 0.