951 points · by rreyes1979 · 4d ago · 475 comments
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?
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.
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?
For some variant value of 'work', of course, but current mesa does ship a nvidia userspace that does some things all the way from maxwell to blackwell.
One user with the email AHuang234@protonmail.com leaked the internal docs
(why would someone use proton mail, then proceed to use such an identifiable handle?)
One day there will be fines for unpublished/incomplete datasheets?
A document being leaked (widely) by a third party renders all of its trade secrets contents no longer trade secrets, by definition (yes, even if the doc was obtained through espionage).
The only person nvidia could go after for this is the person who leaked the doc, not anyone who uses the doc. This is why protecting trade secrets is so important: the only remedy is suing the discloser if they had no authorization to disclose. This is specifically the reason ndas exist: to provide for recourse if trade secrets are disclosed publicly. At no point do you obtain the right to sue someone who wasn't bound by trade secrets law.
So this is still a clean room implementation.
Traditionally before the GSP, a lot of tweaks and game bug fixes were packed into the driver itself. Those have now been moved into the GSP.
Although LLMs complicate that: if leaked trade secrets make it into the training data of frontier models, then the code generators "know" the secrets. But that's already a huge issue: LLMs are a great way to launder away copyright protection.
As far as copyright goes, it shouldn't really matter if a leak was involved.
The potential problem is trade secrets. A trade secret doesn't lose its trade secret status just because it got leaked. It can eventually lose it if is spreads too widely. If you do the clean room stuff before that you could be liable under trade secret law.
LLMs are probably going to make it much harder for companies to take down leaks before they spread too far. As a major LLM told me, "LLMs act as a massive information-laundering and acceleration engine that shrinks a company's containment window from weeks to hours".
In the specific case of trade secrets involving how to operate hardware the trade secret claims start out kind of weak because under US trade secret law something that can be readily figured out by legal means is not a trade secret. If people could figure it out by buying your product on the open market and then using bus sniffing and decompiling to figure out how to operate the hardware then you probably do not have a trade secret.
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?
looking at my nvidia experience and all of those release notes I often wonder how much is it devs writing for gpu and how much of it is "gpu" writing for devs.
every week there's a new driver advertising better performance in a specific game - seems like majority of the driver are custom branches tailored for specific use cases.
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.
The reputation is a decade out of date
On my nvidia machine I have some quirks as well. Which are extra annoying because they wouldn't need to be there if nvidia was as open source friendly as amd.. but mostly it just works.
For the open sourced radeon drivers? Yeah lots of things work great now.
For their own in house proprietary drivers? Lol, Lmao.
Ok, what are 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
LLMs today probably greatly accelerate the tedious parts of "reverse-engineering"
And makes me wonder what the author thinks "clean room" means.
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.
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.
That's the opposite of what clean room means, not just a "different view".
It's interesting because it's the largest relevant effort that I'm aware of.
https://reactos.org/intellectual-property-guideline/
https://reactos.org/project-news/reactos-and-tinykrnl-projec...
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'
"My parents refused to buy me any more Clod tokens unless I cleaned my room."
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...
I am now thinking of telling my LLM to decompile all the blobs in RaspberryPi just because why not.
That and the existing kernel driver is already open source.
Same docs they use internally. I remember.
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.
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.
I'm a proponent for abolishing intellectual property altogether.
https://cdn.mises.org/Against%20Intellectual%20Property_2.pd...
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.
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.
You’re commingling IP and Trademark when these are distinct things.
Your other two examples are fine, carry on :)
Right now, if you purchase something and own it, like say you purchase a notebook, it's common sense that you can use it how you want (tear out pages, make paper airplanes out of them, etc).
However, for software, you really generally can't. We could enforce in law that source code has to be made available to consumers for all consumer devices so they can modify and use the product they purchased. My fridge should have to give me the source code for its modified linux distro, apple should have to give me the source code for iOS, all their apps, etc, my car should have to provide me with its source code, etc etc.
The only reason abolishing copyright is assumed to result in less freedom than the GPL is because you assume the government will not then go on to protect our rights even more.
We should not be fighting for a jail (copyright) because the GPL has managed to use the jail to make a tiny bastion where our rights are protected, rather we should be fighting for the government to get rid of the jail and protect all of our rights
MIT licensed software has had such an unfathomably larger impact on software development and real problems than GNU.
GCC alone makes that a difficult argument, let alone the rest of the Gnu userspace.
(And I mean “number of people more than the number of people who will die if we don’t.”)
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.
Physical property laws prevent someone from changing your state from having-property to not-having-property. In other words, they stop someone from DEPRIVING you of the property.
If you have an apple tree, they don't stop anyone else from growing a tree, nor from realizing apples grow well in a certain region and opening a farm near yours.
Intellectual property laws prevent others from having what you had even where they leave your copy alone.
Said simply, copyright infringement is clearly not theft because the victim's copy of the work is not transferred or destroyed. Hurting someone's future earnings potential by competing with them with a new similar work is not illegal in physical property law.
Notice how I didn't mention things that you are personally using. A farmer won't eat tons of apples by himself, the owner of a hotel doesn't need these rooms for himself, a woodworker doesn't need hundreds of tables. Stealing an apple from a farmer's orchard is not like stealing the apple he is about to eat, what you are stealing is the right for the farmer to get paid for his work. Copyright is also about protecting the right for intellectual workers to get paid for their work.
Maybe there is a way to do it without creating artificial scarcity, but how? Who is going to determine how much the one making the work should be paid? And how? Who is going to collect the funds?
And by the way, someone is stopping you from growing a tree where you want to, and that is the land owner. There are some country where you are free to roam (Finland is notorious for that), but you can't use that right to grow apples and expect others not to pick them, that's why in Finland, you still have farms, with owners, and you are not supposed to steal their crops.
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.
Small things like the first Christmas during WWI when some soldiers played soccer are so extraordinary because they are, well, out of the ordinary! Whereas, comparatively, what percentage of WWI battles with >1000 fatalities could you name? Probably a tiny number.
It might be sad—and this is no reason not to try!—but the vast majority of outcomes will be negative or roughly neutral.
Are they benefits that outweigh the societal costs of IP protection for art and medicine? There are thousands of people suffering from conditions that are treatable via medication that is available now, but for the financial cost.
Drugs should be purchased by the government and sold at cost, for virtually any condition, I think.
And I'm also finding it hard to imagine cases where more art in the world is a bad thing. If people care they'll seek out authorized versions, surely, and if not a copy is fine. Note that I'm not saying we should abandon moral rights (your art shouldn't be used to support causes you don't like), just the commercial side.
It's how things work in a huge chunk of Europe and they have some of the best patient outcomes in the world.
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!
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.
building t3code into my app runtime, needed a rust backend.
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.
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.
https://www.mcmaster.com/products/cooling-systems/
https://www.titanrig.com/alphacool-eiswand-360-cpu-water-coo...
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?
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.
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?
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.
In that case, sure, I guess, but the question is what are we trying to do here. If the goal is just to evade a takedown notice because of IP infringement, this makes it harder to obtain evidence that there was IP infringement.
If the goal is to actually not engage in any IP infringement, then you have to not decompile.
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.
Who were in the two different teams? How did you ensure separation?
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.
[disclaimer: I'm one of the co-founders]
amazing work, thank you for sharing!
Whats the difference? I thought the remaining proprietary bits were the userland part, not the kernel driver?
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.
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
Secondly, with reverse engineering being trivially accessible the, genie is out of the bottle and no amount of court order or DMCA takedown will bring it back it.
until then, though, most software will already have been reversed and rewritten. ordinary joe and jane's don't mind that much, trust me on this.
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.
Legally, many jurisdictions have already rejected this premise.
Which seems correct to me. An LLM has no agency, it cannot be an author.
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".
Nvidia's own proprietary driver links to the GPL 2.0 kernel. So Jensen's team buried the first murder in a binary blob.
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)
Or at least let you run your own driver against it.
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
This is why, while the two sides of this debate seem evenly matched, it's clear if we do a little historical research that one side is much much more likely to win.
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.
But if I say ask an LLM to produce an application that mimics that of another app, only by observing its behavior from the outside as a black box, then I'd argue it's very much clean room. Even if I have no idea of what the LLM itself was trained on (It could have been trained on the source of the proprietary app, through a leak!).
It's ambiguous though! "Clean room" doesn't tell you enough since "clean room engineering" is a whole other thing than "clean room design". You could do the former with LLMs, but seems unlikely to me you could claim "clean room design" when you don't know the training data of the LLM.
It’s the dream of 90s hacker culture, realized in a strange way in the end.
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.
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.
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.
Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...
Any time you touch hardware, all guarantees Rust makes disappear. And anything you place in mapped io can change when you don't expect it.
I mean, if you control the training data, you can create a model that has never seen anything it is not allowed to see. However, in practice, that is a different question.
I have the feeling it's not simply something you can install and test for fun.
Should I try running it and throwing some inference task on it?
The reason is that Volta cards from 2018 are still very capable, reasonably priced and have lots of HBM memory, which people want to run local inference, but the proprietary drivers are abandoned and shitty right now
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 :\
It's more complicated than that of course but much more limited than, say AMD's open kernel driver.
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...
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.
It's something we all want. But it sounds too good to be true doesn't it?
Already happened for Intel.
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?
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...
When the LLM has been likely trained on NVIDIA manuals ?
"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?
Because it isn't people that make it, and very probably it indeed is slop.
Regarding the banner: Either omit it, or use a model to create a tasteful one.
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