Skip to content

feat(vela): serve native Vela 2.0 0.8B typed responses over HTTP - #217

Draft
psv666 wants to merge 2 commits into
codex/vela152-coexist-20261120from
codex/vela177-http-20261123
Draft

psv666 wants to merge 2 commits into
codex/vela152-coexist-20261120from
codex/vela177-http-20261123

Conversation

@psv666

@psv666 psv666 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Required human contributor answers

  1. Deliver reproducible native decision support on L20 for the assigned Vela work. This increment covers the 0.8B text worker and typed responses.
  2. The highest-leverage variable is credible model coverage with reference parity.
  3. Reuse the existing model carrier and verify one complete execution chain, including the decisions users see and how the worker handles invalid requests.
  4. Model and application developers need a reliable decision API and a reproducible deployment for their hardware.

The contributor approved a draft PR for the necessary implementation and validation. This scope follows the contributor brief for the assigned Vela work and the native library in #177. The incremental draft targets the delivered #215 carrier at 6e1584a3928e58722bac61175114ae859f89b6b9.

Purpose

/v1/systemone
  validate and render all ordinary and window rows
  admit one request through the shared SerialScheduler
  run CUDA backbone readouts and FP32 candidate/router/broad heads
  aggregate windows, calibrate and finish the typed response

The worker binds after manifest verification and real warmup. It uses one CUDA model and preserves the approved 16,384-token limit per rendered row. Usage sums the ordinary and window rows. The shared frontend forwards the model response.

Evidence

  • On the carrier, a mixed request incorrectly inserted the candidate question in each span window, rendering 3,796 and 1,654 tokens. The fixed processor matches the paired reference's span-only windows of 3,683 and 1,541 tokens, including exact token plans and offsets. The focused CPU reproduction failed before the change and passed afterward.
  • The initial GPU example exposed a part-origin span field-order mismatch. The final finisher passed the Rust regression and one same-request L20 replay. The token plans and raw logits were identical to the first capture.
  • Seven paired cases returned 200 through the direct Rust worker. Six returned 200 through the Rust frontend with byte-identical bodies, including the positive mixed-window case and the exact 16,384-token row. The original long window returned 200 directly and 504 at the frontend's existing 60-second deadline.
  • Malformed JSON, invalid questions, other member, media, cross-part spans and a 16,385-token row produced identical worker/frontend refusal bodies. Recovery after 400/422/413, two concurrent requests and recovery after disconnect all matched their controls. The shared scheduler barrier tests separately passed before- and after-dispatch cancellation checks.

Test result

L20 SM89, driver 580.178.04, CUDA 12.8.61, Rust 1.100.0, Vela 0.8B revision 326b01d81f61fff7fd4ae570e54b87a49119e490. Pinned CPU FP32 oracle, uniform-BF16 CUDA backbone and model-owned FP32 heads. Initial GPU capture 6decce7fbab00eb26caf6b3c8c0fb51954541586. Worker and field-order replay 15e6f47214929eeb3bffd45cee0f5972945d41af.

Check Result
Final Rust fmt, workspace Clippy, release build, strict MkDocs Passed
Final locked serial workspace tests 552 passed, 127 ignored
Existing CPU render, frozen head and frozen-hidden response checks Passed. Maximum CPU response drift 1.490e-6 under 2e-6
Existing four-case GPU logit gate 4/4 passed. Maximum drift 0.3297 under 0.35
Complete GPU typed comparison Six cases matched exact reference structure after the field-order fix. The CJK case changed the label of a span at the same Unicode offsets from PHONE_NUMBER to STREET_ADDRESS. Both labels remained above threshold and their ordering changed at the FP32 router-logit boundary.
Contributor-approved Q10 full-path gate Failed overall (6/7). All seven cases met the measured numerical limits, including the 0.02 absolute error bound for calibrated probabilities and valid span word probabilities. The CJK label flip violates exact structure.
Scope Fixed stacked carrier. Current main integration and other model sizes were unrun.

Q10 adopts the original fixed CPU FP32 oracle and requires exact labels, selection, Unicode spans, head, thresholds and usage. Choice and Score confidence use a 0.04 absolute bound. Score expectation uses 0.02 times the legend index range, with exact singleton values. Approval followed the captures. The capture-time status and the wider proposal remain in the evidence as historical diagnostics.

The native recipe includes build, launch and capture commands. The local acceptance archive retains raw paired tensors, plans, responses, failures and executable hashes. No performance claim.

Merge risk

The change is scoped to the explicit Vela 0.8B native entry point and model-owned processing and finishing. The root lock change only registers its existing workspace dependencies. Keep this draft while exact CJK reference parity and long-window forwarding remain open.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant