Repository navigation
Conversation
Use request-local sealed buffers and a libc fallback when Python omits memfd_create. Preserve the bytes path and close mappings before sandbox cleanup.
Send large results over the worker socket as sealed buffers. Validate size and seals before copying, and retain the HTTP response-size error.
Keep a bounded descriptor set with cache entries and duplicate handles for each send. Close cached descriptors on eviction and shutdown.
Pipeline large blob hashes across uploads and resolve them before exposing instructions or transmitting blobs. Hash only owned snapshots.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This branch has not been deployed
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.
Large tensors cross the server/worker boundary by pickling through the worker's control socket, including on cache hits. This passes blobs of at least 1 MiB, both inputs and results, as sealed memfds over the same socket instead. The receiver checks the seals and exact size and maps them read-only. Small blobs, non-Linux hosts and Python builds without
memfd_create(a libc fallback covers standalone builds) keep the current path. Two follow-ups reuse sealed buffers from the input cache and hash immutable upload snapshots in parallel.Vector add, 64 MiB tensors, median of 30 trials in balanced order, sandbox off (RTX 5090 / RTX 2070):
4 MiB reused drops 28% / 17%. 4 KiB requests do not use the new path and are unchanged. Measured with the overhead harness from #127 on bare metal.
Testing: