Repository navigation
Releases
0.1.5
- A kernel whose code is a trap and nothing else is refused at its launch instead of faulting the GPU. A kernel built for some architectures only is emitted for the others with a body that traps; launched, it ended the context and the GPU wrote an Xid 43 line. The layer still gives such a kernel at the lookup, as NVIDIA's driver does, but every launch function and a kernel node of a graph now return error 218 without calling the driver, a line names the kernel and its image (
kernel NAME has no code in its image (N bytes, XXH64 X): its body is a trap and nothing else; CALL with it is refused (error 218)), and the context goes on. This is what stopped Strata's CUDA 13 engine 0.1.66 on prompts of 4,096 tokens or more (issue #3, second report): when it detects the layer, that engine chooses int8 expert kernels for Volta that its CUDA 13 build carries only as such stubs. With 0.1.5 the engine still stops on those prompts, at that error (the server answers 503) and without a GPU fault: it needsSTRATA_I8_SM70=0, with which it read prompts of 4,021 to 35,124 tokens at about 92 % of the speed of the native CUDA 12 engine and generated at 85 to 92 % of it, with the native engine's text, on two V100s (Strata guide). - A refused kernel that a program holds without a lookup is refused at its use. cuFFT enumerates the functions of its modules through a private table of the driver, and so held, told 8.0, kernels that the layer refuses; launched, they trapped and ended the context. Such a handle is now refused with error 218 by every launch function, by a kernel node of a graph when it is made or changed, and by the questions and settings that take a function, without calling the driver, and a line names the kernel. While a module or library with a refused kernel is loaded, the first launch of each handle after a load or an unload asks the driver what it is, 1.4 to 2.0 microseconds more; on a serving engine the cost was not measurable.
- New:
VF_SAFE=1, one switch for the conservative paths. Inlibcuda.so.1, the nvJitLink adapter,vf ptxas,vf adapt, the launcher and the bf16 cuBLAS variants, it turns off what the layer does by choice and whose results are not bit-identical to the default's, whatever their own variables say:VF_BF16_TC_GROUPS=1,VF_BF16_TC_TILES=1,VF_BF16_COLUMN=tree,VF_BF16_ROW=tree,VF_TRANSLATE=firstandforce, the tensor-core path of the bf16 cuBLAS variants, and the pairs of fp16 tensor-core products in translated sm_75 machine code, which are on by default and whose last bits depend on a kernel's registers. A line says what it turned off, andvf doctorsays it too. It does not change the capability that a program is told. Measured on one V100: Triton's fp16 GEMMs told 8.0 and cuBLAS's ran at the same speed with it as without, while PyTorch's fp16 attention (scaled_dot_product_attention, sm_75 machine code whose products pair) took 5.24 ms a call instead of 2.80. Only the exact value1turns it on. - bf16 cuBLAS variants (still opt-in): a gate on k, and safe mode. With
VF_CUBLAS_BF16_TC=1, the tensor-core path now takes only products with k from 1024 to 16384; a product with a smaller k goes to the skinny path when its rule takes it, else to cuBLAS 12.9 as it is.VF_SAFE=1turns the path off, and every result is then cuBLAS 12.9's bits. An acceptance test,bf16-acceptintests/gpu/forward-bf16.sh, checks the calls that the path serves against the exact product and that nothing under the gate is served. The inference gains measured for 0.1.4 (1.3 to 1.7 times as fast in eager PyTorch, up to 1.9 times undertorch.compile) were measured on models whose layers are 768 or 896 wide: with the gate, all their products but the second of each MLP go to the skinny path or to cuBLAS 12.9, so those gains no longer apply. They were not measured again (measurements). The path still makes bf16 training slower. - Logs.
VF_SUMMARY=FILEalso writes the report at exit (the kernels with emulated instructions, the second translations, the counts ofVF_STATS) toFILE.PID, and rewrites it every 30 s while it changes (VF_SUMMARY_INTERVAL), so that a process killed with SIGKILL leaves it. AtVF_LOG_LEVEL=2, the lines about an image name it (its file, or its size and XXH64 digest for a load from memory), and each image adapted says how many of its kernels have a body that is a trap and nothing else and how many an empty body, with the first three names;vf adaptlists both.emulated in NAMEand the refusal of a kernel are said once for each kernel and code, and a second kernel of the same name with other code is now said too.VF_PROFILEsays the first synchronisation that fails at once, with the kernel it followed. - Building on newer systems. On Ubuntu 26.04 (glibc 2.43, GCC 15), the scripts and tests that compile CUDA sources with CUDA 12.9.2 failed: nvcc refuses GCC 15, and glibc 2.41 and later declare
sinpi,cospiandrsqrtotherwise than CUDA 12's headers (issue #3). They now go throughscripts/nvcc-host.sh, which adds ag++-Nthat the toolkit accepts and a header of the project only when a probe does not compile as it is; no hand edit of the toolkit is needed. Built so with GCC 14, the bf16 kernels and the translator's test kernels are the same bytes as on Ubuntu 24.04. A program's own nvcc of CUDA 12.9, 13.0 or 13.1 still fails there, with the layer or without. - For contributors.
tests/release-check.shruns the host checks of a release in order, with a table, and prints the GPU part. The GPU suites unset the layer's settings that they do not take from the caller (VF_CAPABILITY=8.0 VF_CAPABILITY_ALL=1left in the shell made two cases ofrun.shfail), andtests/gpu/run.shhas 200 cases (165 in 0.1.4).CONTRIBUTING.mdis rewritten for contributors from outside the project, anddocs/reports/lists the test reports from other machines. The workspace declares the oldest Rust that builds it, 1.88 (1.95 is the oldest that was run).
Known limits. Told 7.5 (the default), Triton 3.8 still uses no tensor cores for tl.dot, whose float16 and bf16 products run 3 to 150 times slower than told 8.0; in a program with PyTorch, only VF_CAPABILITY=8.0 VF_CAPABILITY_ALL=1 changes that, and PyTorch's own attention is then refused. A kernel whose code is a trap is not recognised in an input of the driver's linker (cuLinkAddData) or of nvJitLink: launched from the linked image, it traps as without the layer. A kernel with an empty body is not refused: launched, it does nothing and returns no error, as without the layer (Strata 0.1.66's CUDA 13 build has such kernels; the engine did not ask for them in the runs measured). A refused kernel still traps when another kernel launches it, or when it is reached by an indirect call or through a call into another linker input. Under eager loading, PyTorch takes very long to start through the layer. Triton's machine code is validated on a corpus, not kernel by kernel, and the translation of sm_80 machine code is not independently validated. A lookup table asked for by name can be refused (error 801) once a kernel that the layer compiled alone holds a copy of it. See the limits and the full changelog.
Upgrading. The layer's cache (~/.cache/volta-forever/proxy, or VF_PROXY_CACHE) has a new format again, and a new build does not use the entries of the one before: the first start of each program after the upgrade adapts and translates its code again, as a first run does. For Strata split over several GPUs, give that first start STRATA_WATCHDOG_S=900 (Strata guide). The entries of 0.1.4 are removed as the cache reaches its size limit (2 GB by default), or remove the directory. With VF_CUBLAS_BF16_TC=1, products with k under 1024 now go to the skinny path or to cuBLAS 12.9 (above).
0.1.4
- Strata on two GPUs no longer stops on its first request (issue #3). A kernel of a library that the layer compiles lazily, and that only reads lookup tables of its module, is now compiled alone with a copy of the tables instead of with the whole module. Strata's CUDA 13 engine split over two V100s captured its first window in 33 s and 43 s with empty caches (two runs); with 0.1.3 it took 212 s and the engine's 60 s watchdog stopped it. While a kernel holds such a copy, the program is not given that table by name (error 801, and a line says why).
- Eager loading works for NVIDIA's libraries. Under
CUDA_MODULE_LOADING=EAGER, cuBLAS 12.9, cuBLASLt, cuSPARSE, cuSOLVER and cuDNN 9.10 could not start through the layer; they now start as they do on NVIDIA's driver. It is slow: everything is adapted and compiled at the start. - Triton kernels that require their block size run. A kernel whose translation took more registers than its required block allows (SGLang's MoE router for 128 experts among them) was stopped by Triton before its launch (
OutOfResources: threads, Required: 512, Hardware limit: 384). It is now translated within that block's registers, or run from the PTX that its cubin keeps. - Two wrong refusals fixed:
redux.syncwhose member mask comes from a register written again later (Triton's code for sm_80), andldmatrixat a shared-memory variable (some of Triton's reductions and grouped GEMMs), which now runs from its PTX. - Faster fp16 tensor-core products through PTX. Two fp16 products with f32 accumulators on the same A are computed together on Volta's tensor cores, and an asynchronous copy whose amount is chosen between nothing and all is one predicated load. The results are the same bits as before. Most of the Triton fp16 GEMMs measured at capability 8.0 ran 1.3 to 1.6 times faster on a V100, and up to 10 times where the old code spilled.
VF_PAIRS=0turns the pairs off. - Capability 8.0.
VF_CAPABILITY_ALL=1now tells the value asked for only to a CUDA runtime and to the code that uses it, such as PyTorch's library. cuDNN, cuFFT and cuSOLVER ask for themselves and are told what their own code allows; told 8.0, as 0.1.3 told them with it, they returned zeros, stopped the GPU or failed. WithVF_CAPABILITY_ALL=1, a kernel that PyTorch chooses for 8.0 and whose sm_75 code is only a stub is refused: PyTorch's own attention now fails there instead of computing wrong results with no error. The SGLang guide sets it as before. - New, opt-in: bf16 cuBLAS variants.
VF_CUBLAS_BF16_SKINNY=1computes bf16 products of 2 to 16 columns with cuBLAS 12.9's bits where 12.9 runs its sequential kernel, 1.16 to 20 times as fast on the configurations measured.VF_CUBLAS_BF16_TC=1runs larger bf16 products on Volta's fp16 tensor cores; their results differ from 12.9's in the last bits. Eager PyTorch inference programs (prompts, generation at batch 8 and 32, an embedding encoder) ran 1.3 to 1.7 times as fast with it, and up to 1.9 times undertorch.compile, but it makes bf16 training slower: the products of the backward pass fall into its fallback, and a LoRA training step ran at 0.56 to 0.81 times its speed, full training at 0.37 to 0.66 times (measurements). Use it for inference. There is no safe mode and no gate on k yet. Both switches are off by default, and the default forwarding libraries are unchanged. tests/gpu/triton.sh, a differential test of Triton's kernels, with the corpus behind it: 3,516 generated configurations and 241 cases of vLLM's and SGLang's kernels. With the independent validator's extended rules: 0 problems in PyTorch's 475 cubins, in 3,105 of the held-out corpus's 3,108 (the other three are read by neither translator) and in Triton's 4,308 and 334.
Known limits. Told 7.5 (the default), Triton 3.8 uses no tensor cores for tl.dot, whose float16 and bf16 products run 3 to 150 times slower than told 8.0. In a program with PyTorch, only VF_CAPABILITY=8.0 VF_CAPABILITY_ALL=1 changes that, and PyTorch's own attention is then refused. A refused kernel that a program obtains without a lookup can still be launched and trap: there is no guard at the launch in this release. Under eager loading, PyTorch takes very long to start through the layer. Triton's machine code is validated on a corpus, not kernel by kernel, and the translation of sm_80 machine code is not independently validated. See the limits and the full changelog.
Upgrading. The layer's cache (~/.cache/volta-forever/proxy, or VF_PROXY_CACHE) has a new format, and a new build does not use the entries of the one before: the first start of each program after the upgrade adapts and translates its code again, as a first run does. For Strata split over several GPUs, give that first start STRATA_WATCHDOG_S=900 (Strata guide). The entries of 0.1.3 are removed as the cache reaches its size limit (2 GB by default), or remove the directory.
v0.1.3
- Fixed a wrong-result defect in translated machine code. Code translated from
sm_75could store wrong values when a store of a register came just before anldmatrixinto it. Triton's fp32tl.dotkernels gave wrong, changing results at the default settings. The defect was in 0.1.2 and earlier; the independent validator now checks for it. VF_CAPABILITY=8.0no longer makes PyTorch compute wrong results. A caller is told no later generation than the code it is given: PyTorch, cuDNN, cuFFT and cuSOLVER are still told 7.5, and VF says so.VF_CAPABILITY_ALL=1restores the old answer for the engines that need it (the SGLang guide sets it).- A refused kernel is refused on every path: a failed lookup leaves NULL in the handle, refusals follow kernels through the driver's linker and through nvJitLink, and survive a failed unload.
- Retained PTX is recovered for cubins that call driver functions, and is compiled again with the contractions its machine code made.
VF_JIT_LINEINFO=1makes run-timenvccand CuTe DSL builds keep their PTX. - New lowerings: scalar bf16 and half-precision
min/max. - Fixed lifetime and concurrency defects in the proxy (context destruction, deferred libraries, the second translation at launch,
fork()thenexit()), size checks in the fat-binary and cache readers, and several launcher, installer and downloader defects. - The test programs and the validator's controls are stricter; the README and a new
AGENTS.mdsay how to get a program running and how to contribute fixes.
Known limits. Machine code generated by Triton is less widely validated than PyTorch's own kernels: compare results with a reference and report differences. The translation of sm_80 machine code is not independently validated. See the limits and the full changelog.
v0.1.2
- VF can fetch the CUDA 12 build of NCCL and select it for both SGLang and PyTorch. SGLang generated with the 35B model on two V100s over NVLink. A separate NCCL all-reduce passed on four V100s. The four-GPU SGLang server stopped during startup.
- Add an opt-in register allocation policy (
VF_BORROW=9) for CUDA Graph kernels whose register use would otherwise prevent a legal block size on Volta. - Extend BF16 and machine-code translation, preserve compatible indirect calls in standalone PTX, and adapt PTX passed to external assemblers through
vf ptxas. - Install releases atomically and share fetched CUDA libraries across installed versions.
- Add guides and measured prefill and decode rates for eight inference engines on V100 with quantized Qwen3.5-35B-A3B weights. See the inference engine table for each quantization and native comparison.
v0.1.1
Volta-Forever 0.1.1 improves compatibility with CUDA 13 applications on Tesla V100 GPUs using the R580 driver.
- CUDA driver and NVML queries now agree on the default compatibility capability of 7.5, including the query used by vLLM to select AWQ.
VF_CAPABILITYalso applies to these NVML queries. - CUDA libraries built with separate device compilation can load their relocatable PTX. VF compiles independent kernels on demand and preserves cross-object calls and conflicting shared-memory declarations for the device linker.
- The translators now handle additional BF16 and FP8 conversions and two sm_75 instruction forms emitted by Triton.
Validation included 302 Rust tests and 102 GPU checks on V100. The upstream NInfer CLI also completed a 24-token prompt and a two-token decode with the full 35B model shape and zero-filled weights. Testing with real 35B quantized weights continues.
Install or update on Linux x86_64
curl -fsSL https://raw.githubusercontent.com/nbald/volta-forever/v0.1.1/install.sh | bash
vf versionv0.1.0
Full Changelog: https://github.com/nbald/volta-forever/commits/v0.1.0