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

オープン
#86 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

ベンチマークのリクエストがどこで構築され、responses.jsonl の provider データがどこで run または leaderboard のメタデータに入るのか、そして 3 部構成の prompt がどこで組み立てられるのかを追跡します。まずそれらのエントリポイントを特定し、次に、ベンチマークに既存の outputs とコスト測定結果を基準として、provider の可視性、キャッシュの動作、seeded run の再現性を検証します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
114
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/balatrollm のほかの issue

coder/balatrollm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。