← Back to articles
News· 10 min read· David Carrero Fernández-Baillo

NVDRIVER 0.1: an NVIDIA driver in Rust rebuilt with AI from the closed binary, and what has actually been tested

Aisle of cabinets of the Summit supercomputer at Oak Ridge National Laboratory, built with NVIDIA Tesla V100 GPUs
Image: OLCF at ORNL / CC BY 2.0 · Wikimedia Commons

Anyone with an NVIDIA card on Linux currently has three options: NVIDIA’s own driver, with open kernel modules since Turing and everything else closed; Nouveau, free and in the kernel for years but limited in performance; and Nova, the Rust driver being written inside the kernel, which is not yet ready for everyday use. Since 29 November there is a fourth, much stranger option: NVDRIVER 0.1.

It is a Rust kernel module (nvidia_rs.ko) that wants to take the place of NVIDIA’s without touching anything above it: the same libcuda.so, the same nvidia-smi, PyTorch, cuDNN, NCCL or llama.cpp as they are. It promises support for everything from 2014’s Maxwell cards to Rubin, to sometimes run faster than the official driver, and to remove the software locks NVIDIA applies depending on a card’s product tier. It was released by Quixi AI, the organisation of Eric Hartford, known for the Dolphin language models, and it was built with AI agents working from NVIDIA’s closed binary. We read the code and the documentation, and we built it.

How it was built: AI agents versus NVIDIA’s binary

The method is written down in the repository itself. The rules file for the agents (AGENTS.md) mandates a seven-step loop: before writing a function, decompile its counterpart in NVIDIA’s 580.178.04 driver (nv-kernel.o_binary, nvidia-uvm.ko and libcuda.so) with a reverse-engineering toolset built on Ghidra, implement it in Rust, compare it bit for bit with the original running in the Unicorn emulator, and then record what NVIDIA’s driver does on a real card and replay it against the new one.

All of this happened on a machine with eight Tesla V100s in a data centre, each GPU isolated in a disposable VFIO virtual machine so that a driver hang costs a ten-second restart rather than a trip to the server room. The work log (HANDOFF.md) is written “for an agent taking over”, with entries dating back to 19 November, and it describes two incidents in which the machine had to be power-cycled by hand.

The result is large for so little time. We counted 364,538 lines of Rust in 728 files, plus 9,110 lines of C in the layer that talks to the kernel, and 1,269 occurrences of unsafe in the Rust code. The repository went public on 27 November, and the git history does not help follow the process: it has 40 commits, almost all signed by the generic user “nvdriver”, and the very first one already contains nearly the whole driver.

The numbers, with the small print

The announcement and the README say NVDRIVER can be up to 1.23x faster than NVIDIA’s driver. That is true, but it is worth looking at the full table in its own documentation, measured on the same Tesla V100 inside identical virtual machines. It has three columns: NVIDIA’s driver, NVDRIVER with the memory at its stock clock (877.5 MHz), and NVDRIVER with its default configuration, which raises the HBM2 to 1,107 MHz (the V100S factory speed) and the GPU up to 1,425 MHz.

Test NVIDIA 580.178.04 NVDRIVER, stock clock NVDRIVER default (overclock)
STREAM Triad bandwidth 821.85 GB/s 831.78 GB/s 1,040.75 GB/s
LayerNorm + GELU (memory-bound) 2.612 ms 2.636 ms 2.130 ms
FP16 GEMM on Tensor Cores 97.69 TFLOPS 103.39 TFLOPS 106.82 TFLOPS
llama.cpp, prompt processing (pp512) 31,067 tok/s 32,886 tok/s 35,162 tok/s
Transformer layer, forward + backward 13.245 ms 14.174 ms 12.789 ms
llama.cpp, text generation (tg128) 516.84 tok/s 461.38 tok/s 498.70 tok/s

With the memory at the same clock, NVDRIVER is roughly on par: slightly better at matrix multiplication, 7% slower on the Transformer layer and 11% slower generating text with llama.cpp. The 1.23x and the “over 1 TB/s” come from the memory overclock, which NVIDIA does not allow on the V100 and which NVDRIVER enables by default. The technique builds on research by other projects that the README credits: arikamidotnet and FBR-RAM-Downloader.

The same documentation has a few figures that do not add up. In the NVLink row it gives 40.05 GB/s in one direction against 47.80 for NVIDIA’s driver, and calls it “+10.5%”. The latest commit, from the night of 29 November, now says 48.49 GB/s.

And most importantly: it has only been tested on Volta. For Maxwell, Pascal, Turing, Ampere, Hopper, Ada, Blackwell and Rubin, the README says “verified offline”, meaning compared in the emulator against NVIDIA’s binary, “awaiting physical silicon test”. Nobody has yet loaded NVDRIVER on a desktop GeForce with a monitor attached.

What it ‘unlocks’

The other half of the project is political. Its author has published a long write-up of what he found when taking apart the 580 driver: tables that block direct GPU-to-GPU communication (PCIe P2P) on the RTX 3090, 4090 and 5090 even when they sit behind the same PCIe switch, hypervisor detection through CPUID, allowlists of approved cloud providers, and 20-minute and 24-hour timers that throttle virtual GPUs without a GRID licence.

NVDRIVER removes all of it. It enables P2P and Resizable BAR by default, allows unlimited NVENC sessions, lets non-root users access performance counters, unlocks full compute on CMP mining cards and offers vGPU and SR-IOV without licences. Some of these options are on by default; others have to be requested with a module parameter.

For anyone with a rack of second-hand V100s or a pair of RTX 4090s for training models, the pitch is very appealing. It is also what makes NVDRIVER a delicate matter.

The doubts: clean room, licence and warranty

The project describes itself as a clean-room reconstruction. In classic reverse engineering, that means one team studies the original and writes a specification, and a second team, which has never seen the original, writes code from it. What AGENTS.md describes is something else: the same agent decompiles each NVIDIA function and rewrites it in Rust, and it is required to match instruction for instruction. Its own NOTICE.txt acknowledges that the code includes “data derived” from NVIDIA’s package.

The licence for NVIDIA’s Linux driver is clear in section 2.2: you may not reverse engineer, decompile or disassemble the software distributed in binary form. In the European Union, Directive 2009/24/EC allows a program to be decompiled in order to make an independently created program work with it, under strict conditions, and a contract cannot override that right. Whether NVDRIVER fits that exception is for a court to decide, not us. So far NVIDIA has said nothing.

There are two more loose ends. The repository has no licence file: only the C layer declares GPL to the kernel, and without an explicit licence the Rust code cannot legally be reused. And the Makefile still says that make modules builds “a diagnostic module with no GPU or CUDA support”, and the compiled module describes itself the same way in modinfo. It looks left over from an earlier stage, but it contradicts the README.

Then there is the warranty. A driver that pushes memory clocks beyond what NVIDIA allows and changes the configuration of the GSP firmware is not something to put on the machine you work on. The project itself tests it in disposable virtual machines for a reason, and the 1,290 MHz cap it applies by default while it does not control voltage is its own precaution, not a guarantee.

How we tested this

Terminal with four NVDRIVER tests in Docker: cargo test with 885 passing tests on Debian 13, the ARM64 build failing on detect_current_x86, Debian 13 with kernel 6.12 failing on no_llseek, Ubuntu 24.04 with kernel 6.8 failing on vm_flags, and Ubuntu 22.04 with kernel 5.15 producing a 15 MB nvidia_rs.ko whose modinfo says version 0.2.0 and no GPU/CUDA support
NVDRIVER in Docker: the tests pass, but the module only builds against kernel 5.15 · Own screenshot

We cloned the repository at commit ca94124, the last one from 29 November, and built it in Docker containers with the Rust version the project pins (1.100.0). We don’t have a Tesla V100, so we did not load the module on a GPU: we checked what anyone can check without the hardware.

  • The tests pass. On Debian 13, cargo test --workspace builds in 31 seconds and reports 885 tests passed and none failed, more than the 869 quoted in the release notes.
  • ARM64 does not build. The README boasts about support for ARM64 boards such as the RK3588, but make modules ARCH=arm64 fails because the code calls, unguarded, a function that only exists on x86 (detect_current_x86). That support landed in the second-to-last commit, hours earlier.
  • It only builds on old kernels. On x86_64 the Rust part compiles fine, but the C layer fails against Debian 13’s 6.12 kernel, because it uses no_llseek, which Linux removed in that release, and also against Ubuntu 24.04’s 6.8, because it writes directly to vm_flags, which has been read-only since Linux 6.3. It only builds on Ubuntu 22.04 with the 5.15 kernel, which is what its authors use according to the repository’s logs. There it produces a 15 MB nvidia_rs.ko that passes the project’s own audit: no GOT relocations, no SIMD registers and no Rust unwind tables.
  • The module doesn’t say what the announcement says. modinfo reports version 0.2.0, not the published 0.1.0, and the description “Isolated Rust control protocol; no GPU/CUDA support”.

To repeat it (you need Docker; on an Apple Silicon Mac the amd64 platform is emulated and takes a little longer):

git clone --depth 1 https://github.com/QuixiAI/nvdriver.git
docker run --rm -it --platform linux/amd64 -v "$PWD/nvdriver:/src:ro" ubuntu:22.04 bash -c '
  apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq curl build-essential python3 linux-headers-generic kmod
  curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
  . "$HOME/.cargo/env" && cp -a /src /w && cd /w
  cargo test --workspace 2>&1 | grep "test result" | awk "{p+=\$4; f+=\$6} END {print p, f}"
  KU=$(basename /usr/src/linux-headers-*-generic | sed s/linux-headers-//)
  make modules KERNEL_UNAME=$KU && modinfo kernel-open/nvidia_rs.ko | head -5'

Our take

NVDRIVER is not an isolated case: other drivers built with reverse engineering and AI help have appeared in the same weeks, such as one for reading Windows ReFS disks from Linux. In all of them, coding agents have done in weeks a reverse-engineering job that used to take years. Here, on top of that, the target is the most closed piece of the Linux desktop.

The timing is good. NVIDIA has already announced that the 580 branch is the last to support Maxwell, Pascal and Volta, and those cards will be left without new drivers as the kernel moves on. A free driver that keeps them alive would make sense even if it never beats the original. Nouveau has been trying for years with far more modest resources, and Nova does not even consider them, because it only works with GPUs that use the GSP firmware.

But a 0.1 release tested on a single card model, that only builds against a 2021 kernel, with numbers inflated by an overclock enabled by default, without a licence, and built by decompiling a binary whose licence forbids it, is an experiment, not a driver to install. What we find valuable in the short term is the report on the 580 driver’s locks, which anyone can read and check. The rest will depend on someone testing it on real hardware other than a V100, and on what NVIDIA does.

Sources: the QuixiAI/nvdriver repository, with the 0.1.0 release notes, the parity and unlocks table, the write-up on the 580 driver’s restrictions and the agent rules; NVIDIA Linux driver licence; Directive 2009/24/EC on the legal protection of computer programs; NVIDIA’s UNIX graphics deprecation schedule. Our own line and commit counts, on commit ca94124 of 29 November 2026.