[Feat] Add Fastino GLiDE as a served System One decision backend

未關閉
#129 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
30/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
huggingface, python
領域
ai, backend

研究方向

Start in s1a/decision_models/factory.py to see how the served backends (clm, onejev, laya-served) are registered and what the existing jev client sends, then read the shared decision-model contract tests that every registered model must pass. Build a stub server that mimics Fastino's 422 on extra fields and on a missing model, since the request shape and instructions handling must be confirmed before writing the adapter. Done means build_model("glide") passes the contract tests for choice and noul (plus images when present), a GLiDE row exists in docs/capabilities.md distinguishing wired from qualified, and the env vars are documented in docs/configuration.md.

由索引模型根據 Issue 內容生成。

描述

Why

Fastino released GLiDE, a family of decision models that score typed questions in one forward pass (no generated text). The paper was posted on 2026-11-19 (after our last research pass):

This repository still has no --model glide. s1a/decision_models/factory.py registers jev, jev-vl-served, clm, laya, laya-served, cua, omnijev, onejev, random, and rule only. GLiDE is not a substitute for the open issues that qualify or add other backends:

  • #126 adds Cloudflare Clef / Clef-flash (Workers AI or local SGLang)
  • #103 qualifies Open-Jev 9B/27B on the local System One text path
  • #108 qualifies Kev by pointing TYPESAFE_API_URL at kev.serve
  • #114 qualifies served OneJev 1.6

It cannot ride the existing jev client unchanged. Fastino's own migration notes say the request structure (state, named questions, matching answers) is the same, but the integration is not a drop-in replacement (https://docs.fastino.ai/inference/systemone):

  • Auth is X-API-Key: $FASTINO_API_KEY (Bearer is also accepted). Our TypeSafe transport always sends Authorization: Bearer.
  • The request model must be fastino/GLiDE (or a deployed GLiDE id). Omitting it is 422. On the direct TypeSafe path, TYPESAFE_MODEL values that contain / are already rejected as OpenRouter ids, so fastino/GLiDE cannot be stuffed into JevModel.from_env() as it stands.
  • Unsupported top-level fields return 422. Our Jev body is only model, state, and questions today; still confirm Fastino accepts the instructions object our jev_question sends (goal / operation / rules, or {question: ...} for noul). Fastino documents instructions as a non-empty string or JSON object.
  • Images are not TypeSafe image input, not Clef's images array, and not OneJev's media + <image:N> markers. Hosted GLiDE takes images as state parts ({"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}, up to 4, JPEG/PNG/GIF/WebP). The local server uses the same part shape and does not fetch remote URLs.
  • Hosted requests default to store: true. Our evals should send store: false.
  • Retries: Fastino uses 425 model_warming, 429, and 503 (plus X-Fastino-Wait-For-Model / Retry-After). Our Jev transport is written around TypeSafe's 429 / 529.
  • Our DecisionModel interface has only choice and noul today; GLiDE's score type is out of scope here.
  • Weights are under the Fastino Community License (stated on the GLiDE-27B card), not Apache-2.0. Do not vendor weights into this repo. The hosted API or a user-run local server is enough.

Published Decision Index / Artificial Analysis scores in the paper and on the model card are Fastino's or the leaderboard maintainers', not Agents results. Do not copy them into our docs.

Hosted pricing, from the official docs (re-check at implementation time): $0.04 per 1 million input tokens; output tokens are free.

Proposed work

  1. Add --model glide that talks to either https://api.fastino.ai/v1/systemone or a local glide.server, selected by env (GLIDE_URL / FASTINO_API_KEY, or a local URL). Follow the existing served-backend pattern (clm, onejev): one deadline per decision, record url, request id if present, the served model name (glide on the hosted API), and usage; fail closed on a missing URL/key or a bad body. Send store: false on the hosted path. Contract tests against a stub server; no live Fastino or GPU call in CI.
  2. Check the request shape first against the official docs (and a stub that rejects extra fields the way Fastino's 422 would). If our existing Jev question bodies are accepted, reuse that builder and only change endpoint, auth, model, retries, and store. If instructions must be a string, or a field is rejected, map it in this adapter and document which field changed; do not invent a second unused shaping layer.
  3. Text path first (choice + noul only): ticket-router or s1a probe, plus one browser suite already in-tree (Allrecipes task 0 or the deterministic local search path used for Laya). Count every attempt (success, failure, timeout, BLOCKED), decision p50/p95, and hardware / S1A_DECISION_TIMEOUT_S.
  4. Screenshot path: map Observation.images onto GLiDE's state image parts (inline data URLs). If the hosted API or the local server rejects or ignores a field of our body, document which field and stop rather than adding a second image layout in this PR. An observation without an image may still run as text.
  5. Add a GLiDE row to docs/capabilities.md that distinguishes "adapter wired" from "qualified on this checkpoint and path", link it from #54, and mention the env vars in docs/configuration.md. Note the Community License.

Acceptance criteria

  • build_model("glide") is registered and covered by the shared decision-model contract tests (choice + noul; images when present).
  • Every claimed run names Agents SHA, path (hosted Fastino vs local glide.server), model id or checkpoint, hardware, and timeout.
  • Results under docs/results/ include failures in the denominator. No Decision Index or Artificial Analysis figure is reported as an Agents result.
  • Docs state that score questions are unsupported on our interface, that hosted evals use store: false, and that the weights are not Apache-2.0.

Out of scope

  • Adding a ScoreQuestion type to s1a/decision_models.
  • Training, fine-tuning, or an in-process Glide.from_pretrained loader (HTTP only in this issue).
  • Vendoring GLiDE weights.
  • Replacing hosted Jev in the README headline table.
  • Qualifying Clef (#126), Open-Jev (#103), Kev (#108), or OneJev 1.6 (#114).

References

主要語言
Python
星號
120
分支
21
平均合併
17 小時 13 分鐘
30 天內合併 PR
7

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ThinkFlowLab/system1-agents 的其他 Issue

查看 ThinkFlowLab/system1-agents 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。