Repository navigation
Fix server cleanup leaks and Metal build warnings - #513
Merged
Merged
Conversation
6 of 8 tasks
Owner
|
Thank you @CerebralCoding. Merged into main (490a9c6): the key store and the metrics counters free what they hold at shutdown, the allocation-failure tests walk every path, and the unused |
jschmied
pushed a commit
to jschmied/TensorFold
that referenced
this pull request
Oct 10, 2026
Closed
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
…clarations go Thanks @CerebralCoding. # Conflicts: # zig/src/server/metrics.zig
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Release authentication keys, key-file storage, and metrics request counters when their owners shut down, and clean up partial authentication initialization on errors. Fix the remaining golden-harness allocations and remove nine unused declarations from the Nemotron split-K Metal kernels.
Receipt
f8fe17d, candidate71aec49; Zig 0.17.0, macOS 27.0.1, Apple M5 Max with 128 GiB unified memory, targetapple_m1.hf download:TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit@d9d758fb83953437f7263256b0d96157e2a348b8, includingmtp-4bit.safetensors.--parallel 4 --context 32768 --keep-warm 0. A readable response was checked, and runtime counters confirmed MTP drafts were accepted.tools/zig/reuse_served.py replayclient retained the token hashes and counts for 58 completed replies. All replies had valid token hashes and exactly 256 generated tokens. Fourteen drafted/serial pairs matched, including greedy and seeded sampling, prose/code prompts, and prompts of 2,130 and 8,370 tokens crossing the 8,192-token prefill boundary. All 28 concurrent replies at 1/2/4 streams matched their solo and serial references.client-left. Both subsequent replies matched their original reference hashes. The test server then shut down with exit 0.zig build install native tf-row-check tf-tp2-bench test test-native test-golden -Dcpu=apple_m1 --summary allsucceeded: 179/179 steps and 207/207 executed tests passed; remaining test steps were cached.zig fmt --checkon changed Zig files andgit diff --checkpass.