AI agents rebuild Nvidia's Linux driver in Rust, and it beats the original on the V100

The nvdriver project used AI agents to take apart Nvidia's Linux kernel driver and rebuild it in Rust. In the project's own tests on aging Tesla V100 compute cards, it's sometimes much faster than Nvidia's driver. Most of that lead comes from a higher memory clock, though, not from better code.

Tools Dec 1, 2026 7 min read Source: Google News (DE)
Illustrative image, AI-generated

What's going on

An open-source project called nvdriver is making waves in the Linux world. Phoronix was first to report that developer Eric Hartford released version 0.1.0 on November 29, 2026, under his GitHub account QuixiAI. It's a Linux kernel driver for Nvidia GPUs, written in Rust. AI agents did most of the work. These are AI programs that use tools on their own and work through tasks step by step. They studied Nvidia's closed-source driver and reimplemented what it does. The project is released under the permissive MIT license.

The headline claim: in the project's own tests on Nvidia's Tesla V100 compute card, the AI-built driver is faster than Nvidia's original. As usual, the details matter.

How the AI rebuilt the driver

The starting point is version 580.178.04 of Nvidia's proprietary driver. Proprietary means the source code isn't public. According to the project description and a report from the French site Frandroid, the AI agents analyzed the driver's functions: which calls they make, which data structures they use and how they talk to the hardware. This is called reverse engineering: you take a finished program apart to figure out how it works. The main tool is Ghidra, a freely available analysis tool that turns machine code back into something more readable. Other tools are hooked up via MCP. The Model Context Protocol works like a universal power socket that lets AI agents operate external programs.

The result is the kernel module nvidia_rs.ko. A kernel module is a component that runs inside the operating system's core and controls the hardware from there. The heart of the driver is written in Rust in no_std mode, meaning without the language's standard library, which is the norm for kernel code. A thinner C layer connects it to the Linux kernel. Rust is considered safer than C because the compiler catches many common memory bugs before the program ever runs. As KarloBag points out, that doesn't remove every risk, especially at the boundaries between Rust and C code and in complex hardware logic.

One important point: nvdriver only replaces the kernel part. According to the developers, everything that sits on top, like CUDA (Nvidia's platform for running compute work on the GPU), PyTorch or the nvidia-smi diagnostic tool, should keep working unchanged. The repository doesn't include Nvidia's closed RM object, the libcuda library or the firmware. So you still depend on Nvidia's closed-source components. Newer cards also add the GSP, a separate processor on the GPU that runs Nvidia's firmware.

The benchmarks, and where the lead comes from

The test system had eight Tesla V100 SXM2 32GB cards. The project reports these numbers (self-reported by the project, not independently verified):

Benchmark Nvidia 580.178.04 nvdriver Difference
PyTorch STREAM Triad (768 MiB) 821.85 GB/s 1,041.72 GB/s +26.8%
On-card HBM2 copy (512 MiB) 819.01 GB/s 1,013.65 GB/s +23.8%
FP16 Tensor Core GEMM 97.69 TFLOPS 107.17 TFLOPS +9.7%
FP32 GEMM 14.18 TFLOPS 14.37 TFLOPS +1.3%
LayerNorm + GELU (memory-bound) 2.612 ms 2.126 ms 1.23× faster
llama.cpp prompt processing (pp512) 31,067 tok/s 34,884 tok/s +12.3%
Transformer layer forward + backward 13.245 ms 12.885 ms +2.7%
CUDA Graph, 50 operations 76.17 µs 80.20 µs 95% (slightly slower)
PCIe transfer to/from device 12.39 / 13.16 GB/s 12.40 / 13.16 GB/s identical
NVLink 2.0 with 2 GPUs (bidirectional) 94.0 GB/s 96.98 GB/s +3.2%

The big catch is in the project's own documentation: nvdriver automatically raises the HBM2 memory clock from 877.5 MHz to 1,107 MHz. HBM2 is the very fast stacked memory on these cards. The project says 1,107 MHz matches the factory spec of the faster sibling card, the V100S. So memory throughput above 1 TB/s is mostly just an overclock.

KarloBag dug up the fair comparison: at the same memory clock, nvdriver hits 831.78 GB/s versus 821.85 GB/s for the original. That's a gain of about 1.2 percent, not 26.8 percent. Howl.Link also warns against mistaking an aggressive clock setting for better code. So the Rust implementation is roughly as fast as Nvidia's driver. For an AI-generated project, that's impressive, but it's not a revolution. With all eight cards, the system reaches more than 8.3 TB/s combined in the STREAM Triad test. The project has also published multi-GPU tests with PyTorch and NCCL (Nvidia's library for GPU-to-GPU communication), plus results from llama.cpp.

Why the V100?

There's a reason behind the choice of card. The Tesla V100 is based on the Volta architecture and launched for data centers in 2017. Nvidia has announced in its developer forum that the 580 driver series is the last to support Maxwell, Pascal and Volta. Nvidia's own open kernel modules only start with the Turing generation, so the V100 is left out. For data centers and research labs that run these expensive cards for years, an open driver that keeps getting updates could be genuinely useful.

What doesn't work (yet)

nvdriver claims support for everything from Maxwell to Nvidia's newest generation, Rubin. According to the documentation, though, it has only been confirmed on real hardware for Volta. Maxwell and Pascal were tested in emulation, meaning software that mimics the hardware. Turing through Blackwell and Rubin have only been checked in simulation or offline tests. Most importantly, the driver has only run "headless" so far, on compute cards with no display attached. As XDA Developers points out, you can't use it on an RTX gaming card today.

There's also the risk factor. A kernel driver runs with the highest privileges on the system. A bug doesn't just crash one program, it can take down the whole operating system. That's why the project itself recommends testing nvdriver only inside a virtual machine with the GPU passed through directly. If it crashes, the damage stays inside that isolated environment. Howl.Link suggests running these tests in throwaway VMs with snapshots you can roll back at any time.

Legal questions

The project calls itself a "clean-room" reimplementation. In that approach, one team analyzes the original and only documents how it behaves. A second, separate team writes new code from that description without ever seeing the original. The goal is to avoid copying copyrighted code. KarloBag notes that, according to the repository's instructions, the same agents that analyze the original driver also help write the new code. On top of that, the NOTICE file lists information taken from Nvidia's 580.178.04 package. That's not a legal verdict, but it does raise the question of how clean the separation really is. Howl.Link also notes that it's unclear which AI model generated the code.

The bottom line

nvdriver is an exciting proof of concept. AI agents can apparently help decode a complex, closed-source hardware driver and rebuild it well enough to run real CUDA workloads at roughly the same speed as the original. If you run older V100 systems that Nvidia will soon stop supporting, this could become interesting down the road. If you're a Linux gamer with an Nvidia card who has been hoping for years for an open driver like AMD's, it's a glimmer of hope at best.

There are plenty of reasons for caution. All the numbers come from the project itself. The most impressive figures come from overclocking, not better code. Only one GPU generation has been tested on real hardware. And the legal situation is unresolved. XDA also raises the question of trust: do you really want an AI-generated driver in charge of your GPU? Before nvdriver can be more than an experiment, it has to prove it's stable on lots of different systems, with a display attached.

Related videos

Modders Used AI to Reverse-Engineer NVIDIA's Secret GPU Driver DieLevel · YouTube

Sources

#nvidia#linux#rust#ai agents#drivers#open source
Read the original source

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.