Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs (github.com)
806 points by rreyes1979 14 hours ago
diydsp 13 hours ago
Having worked briefly on GPU drivers (amd ex-ati) I'm curious how this can be done. There were myriad details inside that code that related directly to particular controls deep in the basics (micro cache enables, chicken bits, N-1 toggles, memory access radices, etc). Many of them were set once, not dynamically. And clearly not documented anywhere outside HQ. And almost none had a visible effect...until a long chain of operations caused a fantastic crash, or trivial one. Experienced people spent months with the manual, fancy tooling, and the hdl and the designers downstairs to get it shippable and then time was spent after shipping.
I would say you can scan 100s of games to see how they operate the hw...but many games have individual engs assigned to work w game devs to hash out configs down long trees of operations... this feels like learning Chinese with almost no feedback. There are so many parts/corners of the internals that get manipulated.
I could see moving from "one clone of every apps' code" to "common parts distilled," but what are the chances it could be reliable with code it hasn't been trained on that uses a novel feature?
tsukikage 12 hours ago
> scan 100s of games
I see zero indication in the docs that the authors care about games, or indeed video output at all. The target use cases are headless: LLM inference and crypto mining.
harikb 8 hours ago
One of the two authors work for OpenRouter. So you are probably right
mycall an hour ago
I wonder if anything uses LLM inference as PoW for crypto mining.
ChuckMcM 7 hours ago
This, they don't care at all about games, they want to run AI models on them. What I'm curious about is if that is possible not knowing what the parts of the driver that enable video processing "do". Lots of questions about that.
Not to mentioned if you have a vibe coded engine for your running your LLM is that uncertainty on top of uncertainty in terms of the work product? Anyone have a good paper on the transitive properties of vibe coded AI's accuracy vs "less" vibe coded AI?
Gh0stRAT 7 hours ago
vetrom 2 hours ago
Betelbuddy 12 hours ago
>> And clearly not documented anywhere outside HQ.
One user with the email AHuang234@protonmail.com leaked the internal docs
RebeccaTheDev 8 hours ago
This reminds me of the hilarious comments you used to see on Slashdot back in the day. Bravo! :D
ndesaulniers 8 hours ago
lol, this made me spit out my coffee!
(why would someone use proton mail, then proceed to use such an identifiable handle?)
danlitt 8 hours ago
abirch 8 hours ago
waynecochran 7 hours ago
MASNeo 8 hours ago
zoobab 12 hours ago
">> And clearly not documented anywhere outside HQ. One user with the email AHuang234@protonmail.com leaked the internal docs"
One day there will be fines for unpublished/incomplete datasheets?
stronglikedan 11 hours ago
badgersnake 11 hours ago
So not clean room at all then
circuit10 10 hours ago
lp92 9 hours ago
KPGv2 11 hours ago
cogman10 13 hours ago
For modern drivers, I believe all those fiddly bits have essentially been moved into the firmware. Nvidia is packing them all into the GSP. That remains an impenetrable binary blob.
cillian64 13 hours ago
But at least in theory this claims to support pre-GSP cards (maxwell, pascal)
cogman10 13 hours ago
happyPersonR 7 hours ago
yeah that needs to get penetrated too lol
zaptheimpaler 12 hours ago
There was already a big leak of proprietary NVIDIA driver source a few years ago. Overall there’s probably lots of information out there.
RussianBot9580 2 hours ago
There is almost no delta between the proprietary and open kernel driver. All the interesting bits are in the GSP firmware blob.
mrtesthah 12 hours ago
Leaks would preclude a “clean room” implementation — perhaps the authors are hoping that no one calls their bluff?
not2b 7 hours ago
zug_zug 12 hours ago
tzs 8 hours ago
ndriscoll 11 hours ago
dagmx 12 hours ago
throawayonthe 11 hours ago
worthless-trash 12 hours ago
derefr 7 hours ago
> There were myriad details inside that code that related directly to particular controls deep in the basics (micro cache enables, chicken bits, N-1 toggles, memory access radices, etc). Many of them were set once, not dynamically.
A bit of a tangent, but: do you have any idea why these things get handled in the GPU driver in the first place, rather than the GPU having firmware that does its own bring-up into a useful state before it ever starts letting the CPU talk to it?
opello 3 hours ago
Not the above author, but I think the trade-offs are managing the tension between what can be tested during the hardware development part of the project and what ends up being the reality of operating in varied hardware and software environments. Add on to that any friction or risk of a secondary update failing (the driver updating the card firmware, for example) when the activity is "setup" that isn't part of the system after start up or driver or hardware initialization, it's a tantalizing prospect to remove a whole class of failures and gain more rapid deployment of fixes, and only paying in driver update/on disk size, for all intents and purposes.
formerly_proven 7 hours ago
Isn't that what nvidia is using the GSP for and why (or perhaps rather: how) nvidia has moved to an open source kernel driver?
maybewhenthesun 11 hours ago
Maybe nvidia's cards are slightly more logically setup? The nouveau driver works reasonably well for a lot of older cards as well so it's not like it is completely unknown.
And let's be honest. AMD has a reputation for their driver being quite bad/incomplete . Your description sounds like even AMD themselves did not really have a good overview of what the engineering department had cooked up either, which kinda matches that reputation.
pmontra 9 hours ago
I've got an old laptop with K1100M. This is too old for this nvdriver. Nouveau works well for 2D and probably basic 3D. Anything that requires true 3D fails, eg every HN link to WebGPU games and sites. That's annoying but I can do without it as of course my job is not about 3D graphics. The only major thing that Nouveau cannot do is brightness control. I simulate it with gamma correction, but that works only on X11, not in Wayland.
dralley 8 hours ago
> AMD has a reputation for their driver being quite bad/incomplete
The reputation is a decade out of date
officeplant 4 hours ago
latentsea 10 hours ago
> chicken bits
Ok, what are chicken bits?
alain94040 9 hours ago
When you design new silicon, you add features to the old generation, but just in case you messed up a weird corner case, you add a config bit that disables the new hardware optimization. In other words, if you chicken-out and get scared of the new feature, your firmware/code can just set one bit in an obscure register then the new feature is disabled, and you are guaranteed the same behavior as the old chip.
papercrane 9 hours ago
They're bits you set to disable a feature, usually because it's faulty or buggy. Literally 'chickening out'.
torginus 11 hours ago
this is kinda ancient history, but I remember old GeForce cards used to implement the OpenGL state machine, with every command submitted to the GPU matching an OpenGL call, parameters and all.
fooblaster 11 hours ago
a lot, but not all of the docs are public: https://nvidia.github.io/open-gpu-doc/
That and the existing kernel driver is already open source.
Same docs they use internally. I remember.
kimixa 13 hours ago
Considering https://github.com/QuixiAI/nvdriver/blob/master/AGENTS.md specifically mentions decompiling the proprietary driver I assume that was used as a reference for stuff like that.
And makes me wonder what the author thinks "clean room" means.
jeroenhd 13 hours ago
The original story behind the "clean room" decompilation that made affordable PCs possible involved having one person decompile/decode instructions, describe what it does, and having another re-implement the code.
An AI clean room decompilation could be one AI agent decompiling the code, turning methods into specifications, and feeding that to another agent to write the "clean" code.
This isn't that, though. This is straight "turn disassembly into Rust". That might be a copyright violation? Though, AI generated content is in a weird legal state at the moment; I don't think you can copyright a single line of code in this repository, but I'm also not sure if this is even illegal anymore. After all, AI companies got away with stealing billions of lines of GPL code, it'd be weird for licenses to matter now.
orthoxerox 12 hours ago
willis936 12 hours ago
breakwaterlabs 12 hours ago
strobe 13 hours ago
probably 'clean room agents laundering': one agent reverse engineered and wrote a spec then other agent worked on implementation based on spec. Which is how it may work in theory but unlikely anyone really can believe that is no leak of original in that spec.
faldore 12 hours ago
Sure, I think it's clean room since I don't have the source code, I am decompiling the source and analyzing and reimplementing it.
If you have a different view of clean room that's cool, you can make your own clean room reimplementation, and rightfully claim it's better than mine.
6581 12 hours ago
disperso 12 hours ago
elehack 12 hours ago
load-bearing 12 hours ago
cogman10 13 hours ago
They vacuumed before firing up claude code.
functionmouse 12 hours ago
supjeff 13 hours ago
im here to register my dismay at the use of "clean room" too. vague nonsense
torginus 11 hours ago
Nobody actually knows. Clean room is a bit of a BS term. You can take a piece of hardware/software, poke, prod and disassemble it, and write a detailed spec.
You are 'dirty' at this point, but then somebody else can come along and produce a 'clean' implementation of the spec.
This sounds like an LLM skill at this point tbh, so you just copy the .md file into the repo, and then 'do the thing, make no mistakes'
RunSet 9 hours ago
> makes me wonder what the author thinks "clean room" means.
"My parents refused to buy me any more Clod tokens unless I cleaned my room."
leobuskin 12 hours ago
I see "REA" - I know that the person doing RE is not a professional, I'm sorry, REA - is a bundle of semi-random tools glued with slop'd guidelines. This reconstruction needed to be gated with byte-identical verification done with the original toolchain (it's easy to fingerprint it and its flags). And only when you have it verified in the original language (C/C++? whatever nvidia used), did multi-pass review with names reconstruction, covered with tests and so on -> you could port it to Rust. Right now is a ticking bomb (just bc it speaks with hw low-level), let's be honest.
dizhn 6 hours ago
I call this development model "clean room theater". No judgement on my part but LLMs make decompiling so easy.
rickdeckard 13 hours ago
> "And makes me wonder what the author thinks "clean room" means."
Either the whole definition of clean-room changed or he just cleaned his room before release... /s
This Markdown is quite a gem. It describes "We are building a clean-room Rust driver" in the title, with Step #1 asking to decompile the driver and "Understand the subsystem's full call graph, object ownership, state machines, and lock hierarchy before writing any code."...
It literally asks to reverse-engineer the original implementation and then rewrite it with "new code".
I doubt this can be used to circumvent any IP-claim...
cozzyd 12 hours ago
chasd00 9 hours ago
barrkel 5 hours ago
If they followed the usual open source conventions, what would happen is they'd write the driver the way they think the hardware ought to work, and if it fails, they'd blame Nvidia and tell the user to complain to the people who made broken hardware.
cowlevel 8 hours ago
Most likely they just prompted an LLM "port Nvidia driver to rust. make it clean-room"
fl0id 10 hours ago
I assume it is like those other projects that told the llm to do "clean room".
bri3d 6 hours ago
Perform static analysis and then dynamic analysis; in many ways it's a lot easier than forward engineering drivers since the weird sequencing issues and errata that always come up are already fixed. Stuff like "which chicken bits to set" and "what clock/power domain blows the other one up if you get the ordering wrong" doesn't cause issues, since the instrumented traces and analyzed code already do everything in the right order.
Usually the way this is done by hand (and reading the source for this driver, it looks like Claude did things about the same way) is:
* Statically analyze enough of the system to understand how commands (mapped registers, mailboxes, buffers) are sent and structured at the highest level.
* Write a dynamic analysis tool which can trace the state changes sent to the hardware (ie - dump every register poke, every mailbox, every buffer)
* Dump enough of the bring-up to be able to do it yourself, even if you don't understand it (ie - these 500 registers need to be set to these values for "normal operation," we have no idea what they are, but we know how to poke them and in what sequence).
* Use static analysis to try to back out the meaning of each register/buffer and to define structures (ie - "this register has bit x set to y in a function called EnableFooClockDomain, it must be the FOO_CLK_EN bit" or "this structure is allocated in AllocateBigTransferBufferA, the type of this structure is clearly a big_transfer_buffer_a"). If you don't know what the functions are called, name them using context clues (observed logging, where in time said function is called, known values in the inputs, etc.)
Then you basically rinse and repeat this process using techniques like fuzzing observed inputs->outputs, tracing known constants, and finding context clues from documentation and parallel architectures.
The Asahi Linux RE process is a good way to understand how this kind of hardware RE worked pre-LLMs (and how LLMs learned to do it); they first constructed a hypervisor (m1n1) for the OS, then instrumented how the OS manipulated the hardware, then fuzzed the inputs to the OS to understand the resultant hardware-state-communication outputs.
I also doubt this driver will get too far down the game specialization rabbit hole, so they don't need to know quite as much; they seem to be targeting mostly basic display acceleration and GPGPU, so the stack of hacks isn't quite as tall.
nathas 10 hours ago
> learning Chinese with almost no feedback
Perhaps you should take a read of https://en.wikipedia.org/wiki/Chinese_room which is the thought experiment about AI and true understanding vs regurgitation.
You can understand the symbols even if you don't understand the meaning.
"Clean room" is doing a lot of lifting here without any evidence.
teaearlgraycold 10 hours ago
This is kind of wishy-washy, but I feel like we can say large language models have reverse engineered systems described by natural language, simply by being trained on natural language. To me, I think this can be reasonably declared to be a type of understanding. When I originally heard about the Chinese room thought experiment I felt like it was being presented as though it’s not possible to understand something through symbolic representation. I think this is mistaken and assumes everything has to think the way that a human does. Sure, humans can’t learn Chinese in that fashion. But we only have a handful of slots in our working memory. Not millions or billions like a computer.
choppaface 8 hours ago
Not a clean answer but: back in the day Naveen Rao and Nervana Systems beat nVidia at BLAS https://news.ycombinator.com/item?id=20490050
LLMs today probably greatly accelerate the tedious parts of "reverse-engineering"
raverbashing 9 hours ago
> chicken bits
Oh TIL
> A bit on a chip that can be used to disable one of the features of the chip if it proves faulty or negatively impacts performance
0c3ca83 11 hours ago
That's all in the firmware. This is a copy paste from the open source Nvidia driver.
varispeed 7 hours ago
Binary files are no different than sourcecode for LLMs. I had jaw drop moment when I thought I'll attach firmware and ask LLM why it shows certain message on LCD. I told it what CPU was used and got an answer promptly. It even listed some bugs which I then tried on the device and they were indeed happening.
I am now thinking of telling my LLM to decompile all the blobs in RaspberryPi just because why not.
coldblues 12 hours ago
Lots of peeps in this thread talking about the legality of clean-room.
I'm a proponent for abolishing intellectual property altogether.
https://cdn.mises.org/Against%20Intellectual%20Property_2.pd...
larodi 9 hours ago
makes the two of us, given it IS already abolished,... WAS really several years ago when large scale training started and it was proved to have been done on licensed material. you see - everyone not understanding IP was slashed, diced and effectively killed, is living in some weird dissonance compared to what world we live in 2026. IP and copyright are super transient and very often complete loss of effort.
it is effectively impossible to bar anyone to cook your soup if they can guess how its done. is some early 20 century wet dream which makes super little sense in information society where there is no viable way to sign authorship, at least not yet. and particularly in the light of impeding doom of classic crypto.
sneedMcFeed 18 minutes ago
Maybe do away with nonsense like patent trolling but there are legitimate benefits in protecting original artworks or truly novel medicines.
Andrew_nenakhov 5 hours ago
This will actually break all GNU-type open source licenses and they all will become like MIT license. Not always a welcome develop.
tyre 8 minutes ago
At some point we might need to acknowledge that GNU didn’t have the impact it wanted to. It was a fun experiment, but ultimately was better known within the engineering world than useful outside of it.
MIT licensed software has had such an unfathomably larger impact on software development and real problems than GNU.
wyager 6 hours ago
I often wonder if IP even has a point anymore. The marginal cost of producing what would formerly be high-value IP is close to zero.
sneak 4 hours ago
That’s not remotely true yet. I imagine it will be relatively soon, but as of today that’s simply not the case. You aren’t designing a modern SoC from scratch with publicly available AI.
AIShill101 11 hours ago
Same I don't gaf that nvidia the giant trillion dollars company had its "IP stolen".
jenniferhooley an hour ago
what about small developers, say right now some of us are incentivized to spend 5-10 years working on weird/creative/niche projects relying maybe on savings or even partners or friends, etc. to get it done. The reason is that there is a potential to make it worth it monetarily vs. just working a 9-5 for some mega-corp (with guaranteed income). If there are no IP rights to what we came up with, what protects us? With AI, cloning something that's already been made is far, far easier than the years of work it took the original creator to develop it. So there would no longer be this kind of interesting single/small team project to ever be made. And only the mega corps (due to pure manpower) would be making anything anymore right?
teaearlgraycold 5 hours ago
Well it’s only fair. Tit for tat.
GuB-42 2 hours ago
Why not abolish property altogether when you are at it.
Let's say you are a farmer, you grow apples. Should you let anyone just pick them up. After all, they just grow on trees. Or you may run a hotel, why can't I just walk into a room and sleep there, it is available, why should I pay. Or maybe you are a woodworker, I can just take that table you are making, you are not going to use it so I can just take it.
If you disagree, then why shouldn't intellectual professions get the same treatment? Is intellectual work worthless? Are woodworkers fundamentally superior to writers in that the former get the legal protection that let them be paid for their work but the latter don't?
Intellectual property laws are not perfect, but in modern society, if you recognize property, you should recognize intellectual property too. If you don't, that's communism, which may look like a good idea in theory, but in practice, it didn't do well.
ashkankiani an hour ago
I do actually want to abolish private property as a concept too. If we as a species ever mature enough to realize we are sharing the earth with each-other and other living beings too then we could maybe get to that point.
You could call it idealistic/unrealistic but I see people talking about AI super-intelligence based apocalypse scenarios now with regular frequency, so why can they not extend that same stretch of imagination towards more positive scenarios.
tyre 3 minutes ago
Jtari323232 4 hours ago
Abolish private property as well while you are at it.
tyre a minute ago
Tens of millions of people, at a minimum, would die.
(Tens of millions over the number of people who will die if we don’t.)
preisschild 8 hours ago
I'm not. I like free software and copyleft licenses. Not enforcing copyright makes all the requirements of GPL voluntary.
teaearlgraycold 5 hours ago
Seems like a net win though if all software you can get your hands on is legal to decompile (much more useful now with LLMs) and use for anything.
cowlevel 8 hours ago
No IP means no protection from decompiling and you can pirate all the movies you want and film in the cinema if they won't put it on streaming, FWIW.
Also means if you write a book you won't see a single cent.
Also means every burger restaurant will call itself McDonald's with the golden arches.
LaffertyDev 22 minutes ago
mootothemax 13 hours ago
All of my Christmases have come at once!
A while back I built up a 4u supermicro system with 8x GV100 32GB cards in it, plus a bunch of power, RAM and disk.
It is the single noisiest server I've ever encountered. Even by server standards, it sounds monsterous, and I feel sorry for my neighbours sitting inside other buildings when it's first starting up.
Noise aside, it's been an absolute blast to test and experiment with, but the GV100 limitations have been extremely painful to live with, and it _sounds_ like this project makes all of that disappear. I will report back... eventually.
tinco 13 hours ago
Air cooling modern hardware is crazy. For a photogrammetry startup I built a half rack of quad-GPU + AMD ThreadRippers. I bought a bunch of 15k RPM 80mm fans on mouser that didn't even come with connectors, at 100% blast they were basically air cannons. The servers had to be on-premise because of data privacy reasons so I built a mini-datacenter in the garage under the office that had double doors. Obviously you weren't allowed to close them when someone was inside because of fire safety reasons, but the noise difference of adding the second door was surprising. It went from too loud for the people in the garage to work on their drone maintenance comfortably to not much louder than a noisy machine sitting in the corner.
InsidiousWombat 13 hours ago
high frequency noise is far easier to dampen
plasticchris 7 hours ago
Air cooling is great, unless you have high density. I can run a bunch of gpus flat out with almost no noise since they are spread around on the floor and a very large very slow fan is blowing on them.
Onavo 7 hours ago
Why didn't you go with liquid cooling and heat pump the energy out to a proper condenser/cooling tower setup? You can jury rig one pretty easily they are all fairly simple to build with parts of McMaster-Carr (the cooling tower, not the condenser, that one is best to get off the shelf).
https://www.mcmaster.com/products/cooling-systems/
https://www.titanrig.com/alphacool-eiswand-360-cpu-water-coo...
sandworm101 12 hours ago
Noise and cooling are still arts more than science. I recently built a home AI server in a rack. I did the normal cooling stuff (insane fans) and it was loud. I just accepted that. Then I wanted to add some GPUs but didn't have space. So as an experiment while waiting for a bigger rack enclosure I tried one of those open "mining" frames for 50$. Surrounded by open air, the GPUs were happy enough without any extra fans. And it was quiet, more quiet than my desktop gaming rig. Counterintuitively, the ramshackle frame was quieter and cooler than a "professional" rack mount. It is silently sitting in the corner of my apartment right now. Only when I ask Qwen-27b to do something substantial do the fans even twitch!
harikb 8 hours ago
embedding-shape 13 hours ago
> but the GV100 limitations have been extremely painful to live with, and it _sounds_ like this project makes all of that disappear
All the issues/limitations you've encountered with the GV100 been software/firmware limits placed there by NVIDIA? Could you give some examples what you hope would be solved by this alternative firmware?
mootothemax 13 hours ago
>> Could you give some examples what you hope would be solved by this alternative firmware?
Sure! The big ones are covered by this:
> nvdriver also unlocks HBM2 memory clocks to 1107 MHz (V100S factory spec, +26.2% memory bandwidth, 1,041.7 GB/s per card / 8.33 TB/s across 8× V100) alongside dynamic P0 boost (1290 MHz all-bin stable default / 1425 MHz golden-bin OC, 1380 MHz XBAR, and a 1 Hz on-die thermal guard)
All of which I've noticed and been expressly annoyed by, but didn't know enough of anything to really sit down and attack.
The HBM2 memory is speed makes a surprisingly big difference if - and it's a big if - this makes them align with the two regular V100 16GBs that I tested against, cos those two cards are stupid fast in comparison, especially for anything cross-PCI.
I also have a few nvlink bridges between the GV100s that have been sorely underutilised, and without knowing anything, I'd be interested to see whether that's part of this driver set, or whether it's now much easier to take advantage of.
ttul 13 hours ago
Frontier LLMs are extremely good at hill-climbing tasks like this, where the outcome is fully measurable (e.g. full parity with an existing kernel module’s behavior and interface).
For the last week, I’ve had a swarm of agents working on a new Rust back-end for T3 Code. It reached full parity quite rapidly and the last ten days have been spent finishing off the edge cases that are encountered rarely in real use. The Rust version loads 22x faster, uses 11x less RAM, and blows away the Typescript original (already no slouch) on nearly every metric.
But, toppling Nvidia’s ivory tower? That’s impressive AND useful!
einsteinx2 an hour ago
Yep the last couple weeks I had a couple of Claude Opus sessions hammering on the performance of the Android projectM visualizer app on an underpowered Xiaomi L1 projector. When I ran the original app I was getting like 20fps at low resolutions. After 2 weeks I was pretty much staying at 60fps at HD resolutions.
Since the Claude sessions could test on the real device using WiFi ADB (sharing the one test device using a lock system and via communicating directly between sessions) they would run performance tests, take screenshots for comparisons, etc as well as run tests on the host machine including creating videos for me.
As you said, having a measurable outcome makes all the difference. They just kept chipping away at various performance areas, taking measurements to see what to work on next, and repeating that. It was directed by me including giving them ideas on what areas to check or ideas for optimizations, and confirming the output myself for things where I allowed them to degrade the quality for performance, but for the most part it was Claude and I probably could have just set it and forgot about it and still gotten decent improvements.
It was also helpful that I only needed it to run well on that one device and it’s a private personal fork, so I didn’t have to worry about compatibility or general code quality, just that it works.
notenchange 12 hours ago
That’s interesting. Can you link to the project?
ttul 10 hours ago
P.S. the performance gains are pretty extraordinary. From performance.md just 22 minutes ago:
From the latest CI run, on a GitHub-hosted runner. A ratio above 1× favors Ferrum.
- Installed size: 2.7× in Ferrum's favor (75.4 MiB against 203 MiB). - Start to first RPC: 33.8× in Ferrum's favor (59.8 ms (57.9–66.2) against 2019 ms (1967–2030)). - Memory at idle (RSS): 12.2× in Ferrum's favor (41.8 MiB (41.1–42.1) against 512 MiB (511–513)). - CPU while idle (per 10 s): 2.0× in Ferrum's favor (10.0 ms (10.0–20.0) against 20.0 ms (20.0–30.0)). - CPU while idle, large database with clients (per 10 s): 1.0× in the reference's favor (20.0 ms (20.0–20.0) against 20.0 ms (20.0–20.0)). - Memory at idle, large database: 3.5× in Ferrum's favor (151 MiB (142–159) against 520 MiB (517–522)). - Peak memory, 3 clients opening long threads: 3.2× in Ferrum's favor (386 MiB against 1233 MiB). - GET / p99 while 3 clients open long threads: 55.9× in Ferrum's favor (1.50 ms against 83.7 ms). - Peak memory, Codex turns: 11.0× in Ferrum's favor (59.3 MiB (58.7–59.6) against 650 MiB (645–661)). - Peak memory, Claude turns: 11.3× in Ferrum's favor (57.9 MiB (57.5–58.4) against 656 MiB (648–675)). - Codex turns per second: 1.3× in the reference's favor (5.57 /s (5.43–5.70) against 7.27 /s (7.18–7.40)). - Claude turns per second: 1.3× in the reference's favor (4.62 /s (4.59–4.72) against 5.92 /s (5.89–5.93)). - CPU per Codex turn: 1.0× in Ferrum's favor (216 ms (211–225) against 221 ms (218–228)). - CPU per Claude turn: 1.0× in Ferrum's favor (289 ms (285–293) against 290 ms (290–291)). - RPC latency (p50 and p95 of 6 RPCs): from 1.3× to 13.9× (above 1× favors Ferrum).
https://github.com/ttulttul/Ferrum/blob/main/docs/performanc...
But perhaps the coolest thing is the WAY that agents built this thing. I basically just kept using T3 Code on my Mac while agents periodically swapped out the T3 Code server back-end for Ferrum. At first, it would do a 30-second swap test because they mostly failed. But over time, the swap-out duration lengthened and lengthened. Now, it's possible to just run it all the time.
And, I bolted Ferrum onto Cloudflare Workers for an internal software factory project, allowing you to run T3 Code sessions inside of the same sandbox environment that our software factory agents live inside. And it's all super performant. A very cool and satisfying project.
zokier 12 hours ago
We already had one 1st party nvidia kernel driver here: https://github.com/NVIDIA/open-gpu-kernel-modules
Whats the difference? I thought the remaining proprietary bits were the userland part, not the kernel driver?
Aissen 9 hours ago
This does not work with V100 (Volta family), because they don't have a (full?) GSP. This family is specifically the target of the driver, as you can see in the README.
lern_too_spel 6 hours ago
Pascal and Maxwell support for one.
torginus 11 hours ago
Good question.
abbbi 11 hours ago
rust instead of C?
faldore 13 hours ago
Eric Hartford (QuixiAI) here, author of nvdriver. Happy to answer any questions.
andrewla 12 hours ago
How do you define "clean-room"? It appears that you started by decompiling the existing driver, which is almost the exact opposite of clean-room. The exact opposite would be having access to the original source code, but this is pretty close.
I would describe this approach as reverse engineered rather than clean room. Maybe just semantics here, but why add the clean room labelling if not to imply that it uses no NVidia IP?
bhhaskin 9 hours ago
Would be fairly trivial with LLMs no?
Hey Claude, decompile this driver and write a detailed spec of how it works. Don't include any code.
Hey codex, write a driver based off this spec.
csnover 8 hours ago
andrewla 9 hours ago
SillyUsername 13 hours ago
Do you intend to add the hardware hacks for others in the series like Pascal (e.g. the HBM2 one)?
Also thanks, you're doing God's work making sure there's a future for old data centre GPUs in a world where modern GPUs are artificially constrained by price, availability and abandoned support.
faldore 13 hours ago
I've added all the hacks I'm aware of - If I've missed any, give me links, happy to add it!
SillyUsername 13 hours ago
lesspassiveobse 12 hours ago
Does the P2PDMA mean I can pull weights off of an nvme array straight into VRAM without crossing RAM/CPU? Does this unlock SR-IOV/vGPU on cards that don't expose it normally or just remove licence checks?
tudorizer 9 hours ago
I don't see any mention of GB10, so will trial it out on the Sparks we run at https://enverge.ai. Unsure what kind of improvements to expect though.
[disclaimer: I'm one of the co-founders]
jrmeyer2 12 hours ago
How do real time graphic api support factor into this 'driver', like DX and Vulkan?
ksimukka 12 hours ago
tough crowd?
amazing work, thank you for sharing!
embedding-shape 10 hours ago
If you're used to Twitter/reddit where 90% of the "feedback" someone receives is "Wow, cool work, thank you author!" and similar empty platitudes, I know I much more prefer HNs way of providing actual feedback instead of just "happy vibes", since I want to actually improve.
embedding-shape 13 hours ago
This submission is an hour old, there are tons of questions around in the thread already, why not answer the existing questions instead of creating a new sub-thread?
I see this in lots of posts. The submission is N hours old, then someone related to the company pops up, ignores all existing posts but creates their own comment asking for feedback, more people ask the same questions, some gets answered, more gets ignored. Why not just answer existing questions instead?
I'm more confused about this than anything else, doesn't really hurt anyone, but gets worse when questions gets asked multiple times in different places because of this.
myrmidon 13 hours ago
It's much more practical to monitor one thread for new questions than to monitor all of them.
sph 11 hours ago
antihero 9 hours ago
How did you do this?
lern_too_spel 6 hours ago
Are there any technical limitations that limit the reverse engineering to Maxwell and later, or could it also support Kepler in the future?
g-b-r 13 hours ago
As several others already said, how can you call it clean-room when it was made by reverse-engineering Nvidia drivers?
g-b-r 5 hours ago
By the way, the Nvidia terms that you accepted if you downloaded the driver forbid reverse engineering; and in any case, the drivers are likely to be employing some patent, for which even a true, legal, clean room process would require a grant.
faldore 12 hours ago
Reverse engineering and clean-room development aren't mutually exclusive. Reverse engineering, including decompilation, can be part of a clean-room process. The relevant question is whether there's sufficient separation between the analysis of the original implementation and the development of the replacement, not whether reverse engineering occurred at all.
ValueTheory 11 hours ago
david-gpu 13 hours ago
From a former GPU wrangler: Congrats on your first release!
faldore 13 hours ago
thank you Mr. David!
pak9rabid 10 hours ago
Ah man, I would absolutely love something like this that could power older nvidia GPUs as well (say the Curie architecture found in older models like the 7700 Go) so that I could have a driver available that could compile against modern Linux kernels. I know there's Nouveau, but that won't run the GPU at it's full potential unfortunately.
As it is now I'm stuck running an ancient version of Kubuntu because I need the older kernel ABI that can interface with the legacy nvidia driver.
raybb 8 hours ago
Speaking of older tech, I wonder if something like this could be done for the T2 Mac's wifi/Bluetooth chipset? I understand it's just one blob for a chip no other computers use but that it's quite complicated go reverse engineer because it's like a full os in that little thing.
mattr03 13 hours ago
Genuine question: how can you claim your code is a clean-room re-implementation when you're using LLMs?
papua_is_being_ 13 hours ago
I'm assuming the authors never ever saw the source. Are you suggesting the LLM model was trained on leaked nvdriver code, proprietary snippets? Maybe it is not strictly 'clean-room' since who knows what the LLM may have seen but in a court of law, how would Nvidia prove conclusive unambigious copyright infringement?
DannyBee 13 hours ago
Lawyer here - they don't have to prove conclusive unambiguous anything. The standard is access and substantial similarity.
Most time would be spent arguing about access and whether the LLM effectively had access.
Civil law standard in general is preponderance of the evidence - Ie evidence tips slightly in your favor. Unambiguous proof type standards are very rare
ttul 13 hours ago
LastTrain 12 hours ago
jpambrun 13 hours ago
zaptheimpaler 12 hours ago
Yoric 13 hours ago
I feel that it's very likely that the LLM model was trained at least on existing open-source drivers, no? If so, wouldn't this already mean that it's not 'clean-room' (although not in the sense you're using)?
piker 13 hours ago
Subpoena the model providers in discovery to see if the Nvidia source was in the lake.
teekert 13 hours ago
LinXitoW 9 hours ago
Nvidia would be insane to create a precedent that any proprietary code in the training data would mean ALL code created from it violates licenses. That would single handedly destroy the main driver of (reasonable) AI adoption, coding.
hugmynutus 7 hours ago
larodi 12 hours ago
all of this is clean room for as long as nobody proves LLMs were not trained on everything they could reverse-engineer in advance. because it actually seems a very good idea, and particularly if we are taking measures to first shuffle it a little, and clean the traces of it in post-training.
until then, though, most software will already have been reversed and rewritten. ordinary joe and jane's wouldn't mind that much, trust me on this, if they even understand what all the hassle is about.
zelphirkalt 13 hours ago
If an LLM wrote code, it is also one of the authors. Did it see parts of Nvidia's driver code? Does the statement that authors didn't see the source still hold then?
It is pretty much is guaranteed to be the case, that one of the authors is an LLM, when the repo presents itself as a working driver for Nvidia graphics cards, yet has laughable 40 commits. Any hobby static blog implementation will have more commits than that, and we are talking about one of the, if not the most complex driver out there. This smells severely vibe-coded from the get go. Which in turn means the LLM is basically the main author/contributor.
onionisafruit 13 hours ago
singpolyma3 13 hours ago
kikoreis 13 hours ago
simianparrot 13 hours ago
gspr 13 hours ago
> Maybe it is not strictly 'clean-room' since who knows what the LLM may have seen
So it's a "room" implementation, then. The adjective clean is meant to convey something, not "oh well, who knows anyway". So it's an implementation in a room that may or may not be clean.
> but in a court of law, how would Nvidia prove conclusive unambigious copyright infringement?
"Well, it's maybe murder, but they'll never find the body".
papua_is_being_ 13 hours ago
spystath 13 hours ago
If an LLM touches your code is impossible to know if it's cleanroom or not, so better default to "no". In practice I don't think it matters.
JacobAsmuth 8 hours ago
What is the credence you'd put on Anthropic having had access to Nvidia's driver source code, and that if they did, they used it for pre-training?
For me personally it's about 0.0000001% (the approximate density of the hypothetical dataset in the pre-training, assuming a 100T token pretrain with 2M LoC driver)
embedding-shape 13 hours ago
First, I think they meant "Clean-room design", not "Clean-room engineering", the latter I don't see why you couldn't do with LLMs, while obviously the first is really hard (impossible?). The repository itself just says "clean-room ... Rust Linux kernel driver for NVIDIA GPUs" and doesn't actually clarify which one of those it's referring to, I'm guessing the first? But yeah, as you say, wouldn't make sense given the tooling involved.
imtringued 13 hours ago
Presumably because the LLM didn't have access to the binaries in the development process but if that was the case, it would be more interesting if they published their CUDA driver conformance suite.
Or at least let you run your own driver against it.
Pannoniae 13 hours ago
IMO a better question is, "does it need to be clean-room?" (I think the answer is no)
So you're right, it's probably not clean-room. I think the author (or his LLM) just added those words to sound fancy.
EDIT: I was dead wrong and I will take the L.
Check this. https://github.com/QuixiAI/nvdriver/blob/master/AGENTS.md Yes it mentions REA, it's just decompiling the drivers, this is 0% clean-room
hackernudes 10 hours ago
If you use the agents to decompile the driver, then document it, then have another agent (session?) implement it based on the documentation, does that count as clean room?
szmarczak 8 hours ago
phendrenad2 8 hours ago
mungoman2 13 hours ago
This is technically grey but politically it is very clear that washing via LLM is acceptable.
gspr 13 hours ago
> This is technically grey but politically it is very clear that washing via LLM is acceptable.
This isn't about the technical, legal, ethical or political aspects of LLM-washing. It's about f'ing words! Clean room means something! OP chose to add those two words even though they don't fit at all.
alkonaut 11 hours ago
Joker_vD 13 hours ago
embedding-shape 13 hours ago
geraldwhen 13 hours ago
cfiggers 12 hours ago
egeozcan 13 hours ago
I claimed clean-room for a red alert 2 YR engine project I have:
https://github.com/egeozcan/glasnost#how-glasnost-is-made-cl...
I don't call it licensed clean-room because you need lawyers as scrubbers to be able to claim no implementation details were actually shared to the clean room. My scrubber was a claude instance, soo...
If this is about training data, I think that wouldn't hold up in court against a project, but I'm no lawyer.
Rapzid 8 hours ago
Add "Make it look legal." to your prompt.
InsidiousWombat 13 hours ago
well the LLM industry and govt that supported it decided that not only stealing content to train your LLM is "fair use" but that the code output can't be really called copying (or even copyrighted in the first place) so that's just a fallout of that
phendrenad2 8 hours ago
Because "clean room unless the courts decide that all code written since 2024 is now potentially infringing on someone's code that was in the training data, single-handedly crashing the world economy" doesn't have quite the same ring to it, you know?
gspr 13 hours ago
Words don't have meaning anymore.
Prediction: People are gonna flock to your comment saying "this is a good thing!", "why are you defending nvidia?", and so on, completely missing the point.
preisschild 8 hours ago
Yep. This isnt even restricted to nvidia/proprietary software. Its also applicable to copyleft licensed software
MitPitt 13 hours ago
Proprietary drivers were a problem for running consumer-tier Nvidia GPUs (like RTX series) in datacenters. Open-source drivers will make renting compute cheaper, hopefully.
the8472 13 hours ago
Our head of IT told me that insurance also is a problem because the consumer GPUs aren't rated for DC use the DC's own insurance wouldn't cover fire risks. And getting custom insurance was way out of their wheelhouse.
oarsinsync 13 hours ago
Or will result in consumer-tier GPUs becoming even more expensive.
quikoa 13 hours ago
Nvidia is already cutting consumer GPUs and makes them more expensive as a result.
kvemkon 13 hours ago
SillyUsername 13 hours ago
It will probably lower the price of newer GPUs while increasing the worth of the old ones. That's a good thing imho.
preisschild 8 hours ago
You can also just support vendors who provide & maintain free software drivers (like amd)
markhermeling 11 hours ago
Neat. Lots of 'unsafe' hardware access in this. Always makes me wonder if Rust should look into something like Representation Clauses like in Ada.
https://learn.adacore.com/courses/advanced-ada/parts/data_ty...
It would allow for compiler level protection from writing wrong data into a register.
Anybody know if that is planned for Rust.
viraptor 8 hours ago
Any hardware access is always going to be unsafe, because the compiler cannot know what the hardware does. For all it knows, it could change the memory of the running app. There's no implementation that cares about ownership where that goes away.
markhermeling 7 hours ago
I was specifically thinking about register access. That you can make safe if you provide a way to describe what the hardware needs.
Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...
viraptor 6 hours ago
Melatonic 36 minutes ago
Anybody tested this on Maxwell gen? Like a Titan XP
LastTrain 12 hours ago
Can an AI driven, or even AI assisted project be considered clean really room?
xpct 11 hours ago
I don't know if it can, but everyone seems to pretend it is so.
preisschild 8 hours ago
With big tech companies bribing governments it seems the world has decided that copyright doesn't matter anymore
SupLockDef 9 hours ago
Honest question here - could it be possible to damage your irreplaceable video card with a buggy driver?
I have the feeling it's not simply something you can install and test for fun.
yonatan8070 8 hours ago
I had the exact same thought, I have a Tesla P40, which is listed as untested on real hardware.
Should I try running it and throwing some inference task on it?
doublerabbit 8 hours ago
What else are you going to do with it if you don't?
yonatan8070 8 hours ago
utopiah 9 hours ago
If it can control fans then I wouldn't trust it.
samiv 13 hours ago
Why not put your effort into noveau?
cowlevel 7 hours ago
nouveau is strictly clean-room, not "we told an LLM to make it clean-room then gave it a full copy of the proprietary drivers". You aren't allowed to contribute to nouveau if you've seen the proprietary driver.
utopiah 13 hours ago
https://nouveau.freedesktop.org and my bet is that because if LLM is invoved it's precisely to avoid the overhead of collaborating on existing projects and instead get light shed on someone or a group to promote themselves or part of the tooling they produce that leverages LLMs.
tuananh 13 hours ago
anyone tries it yet? is the number claimed in the readme correct?
yread 8 hours ago
Can it do MIG or fractional GPUs?
kravmaga999 8 hours ago
Hello, that's insane, I just scratched the surface, but looks great, thanks!
nonestdeus 13 hours ago
Looks cool, but I'll wait for some tech youtubers to test it first.
measurablefunc 9 hours ago
Very impressive.
m00dy 13 hours ago
.
rb666 13 hours ago
The first release was today, how can it already be underrated?
hurricanepootis 8 hours ago
What's the point of this project besides to show off their AI tooling?
An open source Rust Nvidia driver already exists https://rust-for-linux.com/nova-gpu-driver. Not only that, there is also a newer open source userland Mesa implementation for it https://docs.mesa3d.org/drivers/nvk.html
Seems like a really great use of their time :\
dralley 8 hours ago
TBF the Rust Nvidia driver mostly just serves as a loader for Nvidia's actual driver, a binary blob that acts more like extended firmware.
It's more complicated than that of course but much more limited than, say AMD's open kernel driver.
rickdeckard 12 hours ago
"clean-room" usually defines two distinct isolated teams, one to document the implementation of a product, and another one to implement it based on that documentation.
A very odd idea if both roles are taken by an AI agent:
1. Decompile driver, translate machine code into human language.
2. Translate human language back into code.
3. Test against original driver, restart at #1 if error
It's more like a sport.
Like asking Agent #1 to only use animal sounds to instruct Agent #2 and then compare how well the result matches the source...
abijahkaj 2 hours ago
Mind blown! I guess NVIDIA will only keep losing its software moat till everybody gets their chip printers at home and then game over
xorcist 13 hours ago
An extremely verbose project description yet no mention of other nVidia drivers such as Nova. How are the goals and/or implemention different?
silentkat 13 hours ago
Ah, "clean room". The new "No copyright infringement intended".
dantillberg 10 hours ago
This has me wondering: how thin is nvidia's moat?
Regardless of "clean room" claim, not everyone in the world respects US courts, and even fewer respect nvidia itself now. Nvidia doesn't fab their own chips -- they're basically a software shop that licenses production of their chip designs and controls them post-production via complicated black box drivers.
How easy or hard would it be for folks less inhibited by IP laws to chip a few trillion from nvidia's market cap?
utopiah 9 hours ago
I don't think a rando, even with a billion in cash, can call TSMC, block few of its production lines, and get few million cards built just like that, even if they get CUDA compatible drivers.
So... moat is that they've been doing it for decades now?
EmmEff 13 hours ago
Port to macOS and get native NVIDIA support (for select cards...) back? ;)
faldore 13 hours ago
nvidia driver for macos?
viraptor 8 hours ago
https://github.com/nullmoth/nvidia-macos-driver
Already happened for Intel.
sligor 6 hours ago
Why do LLM still have no idea in 2027 (nearly) on how to write a proper human readable README ?
bwfan123 11 hours ago
I see a modern movement in software akin to reading chicken entrails. First, folks are attempting to set weights on neural nets using LLMs, and then you have this reverse-engineering and translation. Whereas setting weights on neural nets is somewhat justified as no one knows how LLMs work, decoding and translation is a fools errand since there is a theory of how the chip works and what you end up with is something brittle. Instead, I would build sw using AI but with a theory which has the potential to be longer lasting.
fennecfoxy 11 hours ago
Huh. Well with people decomping games and loads of other things using AI...just kinda realised...what stops people from decompiling official GPU drivers and porting them to wherever they need to go? I bet Linus would giggle at the irony.
petterroea 11 hours ago
I have heard friends in the industry people doubt it is really a clean-room RE effort based on code comments and contents.
I suspect when people say "clean-room", they often mean they told the LLM to perform clean-room RE and often don't have any clue what it means, have not verified that it actually happened (did you read the transcripts?), and have not set up their harness in such a way that diverting from clean-room RE was not possible.
I have had some RE projects in order to test the waters and would regularly see frontier models perform actions that are incompatible with clean room RE while writing code. See the Wine Clean Room Guidelines [1]. I don't believe most projects that claim to be clean-room implementations are such, and I believe even less projects can prove it.
I am not saying this is the case for every LLM RE project, but there sure are many LLM RE projects out there from people who have no idea what they are doing but are now able to carry out RE efforts. To many, "clean-room" is just a buzzword that they have heard around reverse engineering. This uncomfortable truth may get some projects in legal trouble.
[1]: https://gitlab.winehq.org/wine/wine/-/wikis/Clean-Room-Guide...
mmaunder 9 hours ago
We’re going to have to work very hard to counter AI incumbents who want to prevent you from using the very technology they enable to compete with them.
Thaxll 11 hours ago
Maintaining a driver for GPUs is a full-time job for a full size team, is it going to be a dead project in the next couple of months? What's the goal of that project?
mozarella 8 hours ago
lol @ the people debating the copyright implications of this, when the would-be-plaintiff is among the parties chiefly responsible for the gang-scraping of the collective cultural output of humanity. Its yolo-times, folks. Intellectual Property is dead.
Starlevel004 13 hours ago
Obvious vibeslop but I don't even care. If it lets me use my old-ass Pascal card at proper speeds without all the buginess of the 580 driver I'll take it.
jeroenhd 13 hours ago
That's my thought exactly, though this project being based around a bit-for-bit recompilation, my guess is that the new driver will be equally buggy as the old one.
Plus, the blob that runs on the card itself cannot be reimplemented like this. Any issues stemming from deviations/unexpected results on the card itself will remain buggy.
cillian64 13 hours ago
That’s my reaction. I’m going to wait for someone else to test Pascal first, but it doesn’t have to be amazing to be better than the current drivers for those cards.
faldore 13 hours ago
srsly its open source - I dont have all the GPUs, help me. test it on your GPUs and if there are issues at least submit a github issue if not a pr. help me make it great for everyone
tenox7 5 hours ago
It's "memory safe". grep -r 'unsafe' | wc -l 532452345234
forgotpwd16 13 hours ago
Great if actually works. (Because tbh I don't trust much AI-written READMEs.)
thatsabadlook 13 hours ago
This is going to be one of those projects where the downsides become immediately obvious to anyone who tries to actually depend on this isn't it? Solo author LLM repo, scant details on support, etc
It's something we all want. But it sounds too good to be true doesn't it?
timschmidt 13 hours ago
Throw any bugs you run into at your own LLM? Having the source, an agent, and hardware to test on makes for an effective loop.
faldore 13 hours ago
its open source! please send me issues I am happy to fix them.
verti 13 hours ago
blows my mind how people can make a README.md that looks like absolute slop (with generated banner as well) made of huge walls of almost incomprehensible walls of text and make it public.
"read me" suggests it's all important information i should know, but how is: >zero GOT relocations, zero SIMD/x87, zero memcpy/memset/memmove, zero unwind sections, every stack frame <= 1,024 bytes important to me that i HAVE to read this?
forgotpwd16 13 hours ago
>how people can make a README.md that looks like absolute slop
Because it isn't people that make it, and very probably it indeed is slop.
faldore 13 hours ago
what do you want? me to hire a graphic artist? for an open source project nobody is paying me anything for?
the__alchemist 12 hours ago
An acceptable option is write a brief description of the project that's intended to be read by a person, and not present LLM-written descriptors and prose to users, forcing them to determine if it's genuine and/or worth their time. As a human, LLM-generated readmes like this are insulting.
Regarding the banner: Either omit it, or use a model to create a tasteful one.
worble 11 hours ago
You could just have no image? Back in my day README's were text only, and if you were really motivated you added some ascii art, regardless it's orthogonal to the thing people are actually there for: the text.
brettermeier 6 hours ago
verti 12 hours ago
the banner is the smallest "issue", it brings no value other than showing you've spent 5min generating an image which falls apart when you zoom. the project description being unreadable is my main point.
paaloeye 13 hours ago
I'm so tired of those so-called clean room Rust projects on the front page. Can't even be bothered to open it tbh.
donutdonot 12 hours ago
Why? The Artcraft stuff is heaven sent and even much faster than opening original Word etc. I love it!
paaloeye 12 hours ago
Why is it heaven sent? Have you tried working in like for a week? Cleanroomness of it is up for debate.
alex1138 8 hours ago
I'm just going to say it, the fact Jensen was caught in a cheating scandal is not surprising given the lack of care towards non-Windows people with Nvidia cards
I do see people posting the angle occasionally that early on AMD was garbage and Nvidia was the only one with a good Linux card. That's possible. But Nvidia has been a pain on Linux for years and no surprise the quality isn't there given the CEO
throw1234567891 13 hours ago
MIG? No. Still needs a license.
brettermeier 6 hours ago
Licenses? Whats that, stuff from the past.