feat: pin (or publish) the OpenRouter provider per run; enable prompt caching on the invariant prompt part

Aperta
#86 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Traccia dove vengono costruite le richieste del benchmark, dove i dati del provider provenienti da responses.jsonl entrano nei metadati di run o leaderboard e dove viene assemblato il prompt in tre parti. Inizia individuando questi punti di ingresso, quindi verifica la visibilità del provider, il comportamento della cache e la riproducibilità degli seeded run rispetto agli output e alle misurazioni dei costi esistenti del benchmark.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

1. Provider variance is folded into model variance

The response logs in the CC0 dataset show extra_body with
provider: {sort: "throughput"}, which scattered generations across upstreams —
we saw Amazon Bedrock, Google, SiliconFlow, AtlasCloud, and DeepInfra serving
runs of the same model. Upstreams differ in quantization and sampling defaults,
so part of the leaderboard's run-to-run variance is provider variance, not
model variance.

Suggestions, in increasing order of effort:

  • Surface the served provider (already present in responses.jsonl) in the
    leaderboard/run metadata.
  • Pin provider.order / provider.only per model for benchmark runs.

2. Prompt caching is off — roughly a 3× cost saving available

The ~42k-char invariant part 0 (game manual + strategy) is re-sent on every one
of ~200 calls per game (cache_control is unset on all three content parts) —
about 10.5k tokens of identical input per call, which matches the measured 14k
input tokens/call. The three-part message split is already exactly the right
shape for caching: adding cache_control to part 0 (Anthropic-style caching,
which OpenRouter passes through) cuts per-game cost roughly 3× for
caching-capable models (
$5.60/game → under $2 at Sonnet-class pricing), with
no behavioral change.

3. Minor: seeded runs are not perfectly reproducible across game launches

Some SMODS-rebuilt pools are iterated in per-launch order before being fed to
the seeded RNG — we confirmed this for To Do List's target hand and Orbital
Tag's hand choice (same seed + identical action trace → different outcome after
a game relaunch, stable within one launch). Worth a caveat wherever the
benchmark claims seed-level determinism.

Lingua principale
Python
Stelle
114
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/balatrollm

Tutte le issue di coder/balatrollm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.