Frosty40's picture
Initial staged release: Inkling-2-Mini Turbo (SM120/SM121 lossless recipe + Helios V3 TMLv0 patch)
590b382 verified
|
Raw History Blame Contribute Delete
3.07 kB

Setup-only ENOSYS on Linux batch hosts

These are two separate dependency patches, not changes to hyperflare-recipes:

Patch Source / base Used by
flashinfer-enosys.patch local-inference-lab/flashinfer@0d48af5394eca497d5a712e18ac1cd47deb33836 b12x checkpoint loader (_storage.c includes _batch.c, which includes _bounce.c).
heliopause-enosys.patch NVIDIA/hyperflare-inference@84ac035cf381c831fa5a4c93e8b34010845c551e Native core construction in heliopause/src/export/io.rs.

../build_hyperflare_runtime.sh checks the pinned source bytes before patching the installed flashinfer-python package and the native engine checkout. It does so before building either Rust artifact. b12x hashes its C/H sources into its JIT cache key. The Modal build receipt records the two patch digests and the script digest; a stale image is not admitted. Stock and Candidate use the same image, without changing kernel, recipe, signing, or flare run serving code.

A usable ring still uses the original async path. Only an ENOSYS at ring initialization selects positional I/O. The loader uses pread on the original O_DIRECT fd and aligned, CUDA-pinned slots. The existing copy worker releases the slot after stream synchronization. On fallback the submit count is zero, not a fabricated ring submission; at most one disk read is in flight. The exporter uses pread / pwrite with the same O_DIRECT fd, bounds and aligned buffer. Both retry EINTR and distinguish an acceptable padded EOF from missing logical bytes. A permission, registration, submission, completion or disk error is not permission to switch transports. This is host compatibility, not a decode-speed optimization.

Local native regression check (no GPU)

In a checkout of the engine revision above, apply the Heliopause patch. With that revision's build dependencies, a linkable Python and libseccomp development headers, run:

cc /path/to/rtx-pro-inkling/tests/setup_errno.c -lseccomp -o /tmp/setup_errno
cd /path/to/hyperflare-inference/heliopause
cargo test --locked --lib --no-run export::io::tests
# TEST_BIN is the unittests executable printed by Cargo. If needed set
# LD_LIBRARY_PATH to the LIBDIR of PYO3_PYTHON before running it directly.
/tmp/setup_errno ENOSYS "$TEST_BIN" export::io::tests:: --test-threads=1
/tmp/setup_errno EPERM "$TEST_BIN" --exact export::io::tests::unaligned_bulk_uses_reserved_direct_scratch_with_one_output_slot

The second run must fail with Operation not permitted, not pass. The filter is confined to the test subprocess and descendants. No seccomp helper, error injection or privileged launch is used in the Modal runtime. See pre-patch failure and post-patch results. The GPU smoke independently compares a slice of a real staged weight, spanning multiple slots, with the same bytes from a buffered checkpoint read. It records the tensor, offset, byte count, SHA-256 and native counters. Neither test is a serving benchmark.