Skip to content

docs: the native /health fields, and its CUDA counters marked as the 0.6.6 server's (#753) - #866

Merged
ashhart merged 1 commit into
ashhart:mainfrom
jishnuvenugopal:docs/health-schema
Oct 16, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
jishnuvenugopal:docs/health-schema

Conversation

@jishnuvenugopal

Copy link
Copy Markdown
Contributor

What this changes

A /health table in docs/api.md for the native server, as discussed in #753. The counters paragraph that named
"CUDA" is the Python 0.6.6 CUDA server's, so it now says so and points to the new section. /memory joins the route
table. Documentation only.

The native body comes from one handler on Metal and CUDA (zig/src/server/status_routes.zig:13), so the table has
one row per field, with Metal and CUDA differences noted inline (memory is {} on Metal; warming is always
false; policy only appears when an engine reports one). Rates and reset_peak follow core/lane_host_status.zig
and cuda/memory.zig. If #854 lands first, I'll add its version, backend and device rows.

Receipt

  • Environment: main at c7137bb, built with zig build native -Dcpu=apple_m1 -Dversion=1.0.0 (Zig 0.17.0,
    Xcode 27.0), Apple M4 32 GB, macOS 27.0.1. Checkpoint TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit
    @ d9d758f. Served with --name local-model --alias nemotron --parallel 2 --context 8192.

  • Exactness, decode and prompt speed: n/a, documentation only.

  • Tests run: zig build test test-golden -Dcpu=apple_m1 at c7137bb, 1981 pass, 0 fail, 8 skip. Lean check
    unchanged at 527 problems across 1375 files (it does not read docs/).

  • Live bodies the table was checked against (source build above):

    no keys   GET /health  -> {"status": "ok", "model": "local-model", "model_ids": ["local-model", "nemotron"],
                              "max_batch_size": 2, "warming": false, "memory": {}, "live": {"connections": 0,
                              "waiting": 0, "decode_tokens_per_second": 0.0, "prefill_tokens_per_second": 0.0}}
    no keys   GET /        -> same body
    keys on   GET /health  -> {"status": "ok"}           keys on  GET /memory -> 401 invalid_api_key
    
  • Not run, and why: CUDA. No NVIDIA machine here; the CUDA memory row is from native/cuda.zig:123 and
    cuda/memory.zig:24, not a live body.

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off. (docs only)
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (docs only)
  • No precision traded for speed. (docs only)
  • Prompt processing is no slower than the last release. (docs only)
  • The description says which platforms I ran, Metal M1 to M5 and CUDA, and which I could not.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (no new tests)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

…0.6.6 server's (ashhart#753)

The native server answers /health from one handler on Metal and CUDA. The new Health section lists its fields
with keys on and off, the live rates' 2 s window, reset_peak and the empty Metal memory object. The counters
paragraph named CUDA without naming the server: they are the Python 0.6.6 CUDA server's. /memory joins the route table.
@ashhart

ashhart commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Thanks, @jishnuvenugopal. Ready at cad74ff. The Health section in docs/api.md matches the handler's open and keyed bodies, explains the two-second live-rate window, and separates native memory fields from the old Python CUDA counters. This is documentation only; no new runtime issue found.

@ashhart
ashhart merged commit 1959ade into ashhart:main Oct 16, 2026
ashhart added a commit that referenced this pull request Oct 16, 2026
…alth table (#866)

#866 documented the open /health fields as public main had them; #854, landed first, appends version, backend and device after live. The merge kept #866's shorter route row, so the three fields are listed in its table instead.
ashhart added a commit that referenced this pull request Oct 16, 2026
ashhart added a commit that referenced this pull request Oct 16, 2026
@ashhart

ashhart commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Thank you, @jishnuvenugopal. A field by field account of /health, with the CUDA memory counters and the reset, is what the route needed.

Your commit ships in TensorFold 1.0.12 as it is, merged in 1959ade7c, so this pull request shows as merged. It met a new section on saved conversations in docs/api.md, and both are kept. #854 landed just before it and adds three fields to the open /health (version, backend and device), so our 626cbda2b lists them in your table.

Posted by Ash's AI Assistant Synthena

@jishnuvenugopal
jishnuvenugopal deleted the docs/health-schema branch October 17, 2026 03:06
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…emory counters

The route table takes the head's /health and /memory rows; its Health section follows the candidate's section on
conversations on disk.
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
… the Health table (ashhart#866)

ashhart#866 documented the open /health fields as public main had them; ashhart#854, landed first, appends version, backend and device after live. The merge kept ashhart#866's shorter route row, so the three fields are listed in its table instead.
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
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.

2 participants