Skip to content

0.1.4

Choose a tag to compare

@nbald nbald released this 23 Nov 22:51
  • 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.sync whose member mask comes from a register written again later (Triton's code for sm_80), and ldmatrix at 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=0 turns the pairs off.
  • Capability 8.0. VF_CAPABILITY_ALL=1 now 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. With VF_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=1 computes 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=1 runs 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 under torch.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.

Inference engine guides and benchmarks · Installation