Eclair is a CUDA compatibility library for running inference and software
rendering on GPUs such as the NVIDIA Tesla V100 (Volta, sm_70). It adds
selected FP8, BF16 and quantized inference operations in user space through
the standard NVIDIA driver and CUDA runtime.
Build the CPU reference and run the capability CLI. This needs a C++20 compiler, CMake 3.24 or newer, and Python 3 for the test suite.
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel
ctest --test-dir build --output-on-failure
build/eclair-smi --detailsFor a V100, install a compatible NVIDIA driver and CUDA 12.x toolkit, then select architecture 70. See the Debian V100 guide for the tested toolchain.
cmake -S . -B build-v100 -DCMAKE_BUILD_TYPE=Release \
-DECLAIR_ENABLE_CUDA=ON -DECLAIR_CUDA_ARCHITECTURES=70
cmake --build build-v100 --parallel
ctest --test-dir build-v100 --output-on-failure
build-v100/eclair-smi --jsoneclair-smi reports what the build and device support. See CLI options and
report fields.
- FP8 and BF16 conversion, FP8-weight linear and BF16 linear. The FP8 linear kernel decodes E4M3FN or E5M2 weights for FP16 operands and FP32 accumulation on Volta.
- Packed int4 linear, paged int8 attention and Gated DeltaNet, with CUDA kernels and a C interface.
- PyTorch supports a checked subset of
torch._scaled_mmwith PyTorch 2.7.1+cu126 and also exposes explicit Eclair operators. The scaled-matmul example multiplies two FP8 tensors and checks the result. - The vLLM plugin targets a specific build of vLLM 0.32.0 for Volta. It selects kernels by operation, shape and layout.
- The software ray-tracing demo can run headless or display an interactive preview with SDL2.
Fused FP8-weight linear keeps weights in one byte per element and decodes them inside the kernel. A 4096 x 4096 matrix uses 16 MiB for FP8 weights or 32 MiB for FP16, plus scale storage when applicable. The CUDA benchmark on a Tesla V100 measured 32.77 µs at one input row with fused FP8 and 48.13 µs with resident FP16 cuBLAS. At 16 rows it measured 137.25 µs and 63.49 µs, respectively. Workload and reproduction command
The PyTorch adapter may expand weights to a temporary FP16 matrix for more than four rows when the matrix fits the configured workspace budget. With a 1024 x 1024 weight matrix and 16 rows, the fused path took 271.36 µs and added 98,816 bytes at the PyTorch allocated-tensor peak. The budgeted path took 34.82 µs and added 2,195,456 bytes. These deltas measure one operator call, excluding the resident inputs, allocator reserves and cuBLAS workspace. PyTorch benchmark and memory policy
The vLLM attention kernel reads the per-token-head int8 KV cache directly. At head size 256, K, V and their two FP32 scales occupy 520 bytes per token per KV head, compared with 1,024 bytes for FP16 K and V. This is cache payload size. End-to-end VRAM also includes weights, activations, scratch buffers and framework allocations. Cache layout and supported shapes
Benchmark methodology lists the measurement commands and baselines. See the architecture and contributor guide for library boundaries and tests, and the roadmap and open research questions for planned work.
In French, éclair means “lightning.” It is also the name of a pastry with a shell, filling, and glaze. Those layers fit a compatibility library. The lightning nods to speed and to Nikola Tesla, the namesake of Eclair's first GPU target, the NVIDIA Tesla V100.
Eclair is licensed under the GNU Affero General Public License v3.0 or later.