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

Đang mở
#129 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
huggingface, python
Lĩnh vực
ai, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
120
Fork
21
Merge trung bình
17 giờ 13 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ThinkFlowLab/system1-agents

Tất cả issue của ThinkFlowLab/system1-agents

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.