MHN
Add a comment on Hacker News →
203 of 213 comments
  1. 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.

  2. 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...

  3. 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?

  4. 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.

  5. 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?

    1. > 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.

    2. >> And clearly not documented anywhere outside HQ.

      One user with the email AHuang234@protonmail.com leaked the internal docs

      1. ">> 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?

        1. Jeez, I hope not. That sounds very authoritarian.

          1. And yet necessary to ensure adversarial interoperability

      2. So not clean room at all then

        1. Unless it uses nvidia code or trade secrets, it's still clean room

          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.

        2. I'm pretty sure this is a joke, not a serious comment: https://en.wikipedia.org/wiki/Alice_Huang_(executive)#Relati...

      3. [deleted]

      4. Lol

    3. > 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.

    4. 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.

      1. But at least in theory this claims to support pre-GSP cards (maxwell, pascal)

        1. I've not worked as a video card firmware writer so I can't be certain. Those pre GSP cards did still have firmware, it just did a lot less. It'd not surprise me to learn that it's still handling a lot of the fiddly bits OP mentioned.

          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.

          1. The GSP (or any card firmware in fact) does not have game-specific hacks. Those live in the UMD itself, the architecture depends on the graphics API but things like shader replacement based on app hash+shader hash, specific settings by default (on nvidia you can view some of the keys with that utility I forgot the name of) and so on

            1. > on nvidia you can view some of the keys with that utility I forgot the name of

              NVIDIA Profile Inspector: https://github.com/Orbmu2k/nvidiaProfileInspector

    5. 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.

    6. 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.

      1. 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.

        1. The original "clean room" didn't involve any decompiling, IIRC, only describing directly observable behavior in excruciating detail.

          1. My friendly AI fooled me if so, it told me that is 100% ok to observer and re-implement, its the decompile which is problematic.

            1. I think that just shows you should not rely on that "friendly AI" for legal questions :p

        2. And then this repo goes in a training set that another chatbot reproduces. Why is copyright only a concern for tech companies and not the literally everyone else on the planet that they’ve ripped off? I’d love for nvidia to litigate this and set a legal precedent that lights the entire AI theft business model on fire. How brave are the creators of the brave new world?

          1. I'd even see this as the point of this repo. If the owners go through with it.

        3. Even the first option is sus, since the recent navier-stokes-and-friends scenarios strongly suggest that the models directly learn from prompting in a way that breaks the clean-room premises.

          1. How does it strongly suggest that? Mathematicians were on the brink of solving NS, GRH, VP≠VNP, the complexity of matrix multiplication, showing factoring is subexponential, and myriad other problems all within a couple months of each other? And the AI companies took their work and scooped them all? People still believe this?

      2. 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.

      3. 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.

        1. > 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.

          That's the opposite of what clean room means, not just a "different view".

        2. I'm no expert, but I think most people would call that "reverse engineered", not "clean room". And BTW, I think no need to get defensive. Up this thread I have not seem criticisms of the code, just questioning if it's actually clean-room, because that matters for whether someone is gonna have a better chance of taking down the repository, how likely is gonna end up in distributions, and the like.

        3. That is definitionally not clean-room, by any historically-understood meaning of the term. There might be multiple definitions of the subtleties of "clean-room", but its stable core is "not one person decompiling + reimplementing".

        4. FWIW, reversing is considered acceptable by ReactOS contribution terms, so you're probably fine-ish.

          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...

          1. Can you point to the wording that accepts this?

            It surprised me, so I checked. I understood the opposite. From your first link:

            …contributors often need to conduct research to understand the internal architecture of the NT™ operating system. In such cases, the project follows the GNU guidelines for referencing non-free code. This applies both to usage of reverse engineering and exposure to proprietary code such as in the Windows Research Kernel.

            The GNU guidelines don’t seem to cover reverse engineering specifically, but they do say:

            Don’t in any circumstances refer to Unix source code for or during your work on GNU! (Or to any other proprietary programs.) If you have a vague recollection of the internals of a Unix program, this does not absolutely mean you can’t write an imitation of it, but do try to organize the imitation internally along different lines, because this is likely to make the details of the Unix version irrelevant and dissimilar to your results.

            And from your second link:

            …due to copyright laws and other law-related stuff, ReactOS (which aims at commercial usage too) can not directly utilize methods of development like dirty reverse engineering, and thus ReactOS can not share all code with the TinyKRNL project.

            1. You're probably right and I misunderstood it. Wikipedia has a decent explanation:

              https://en.wikipedia.org/wiki/Chinese_wall#Reverse_engineeri...

              https://en.wikipedia.org/wiki/ReactOS#:~:text=In%20a%20state...

              So it looks like you're fine as long as one person reverses and other writes code. No idea how it applies when one clanker reverses and other writes, with a person as a middle man.

          2. This is a bit of an aside, but have ReactOS devs ever tried to build an NT based OS without the Win32 compat layer?

      4. They vacuumed before firing up claude code.

        1. good one

      5. im here to register my dismay at the use of "clean room" too. vague nonsense

      6. 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'

      7. 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.

      8. > "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...

        1. Author forgot to get a billion dollar valuation before shrugging off IP law

    7. 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.

    8. There was already a big leak of proprietary NVIDIA driver source a few years ago. Overall there’s probably lots of information out there.

      1. Leaks would preclude a “clean room” implementation — perhaps the authors are hoping that no one calls their bluff?

        1. real clean room RE can involve one team inspecting decompilations etc and writing independent documentation, which another team then uses to re-implement it having never seen the starting material. people try to replicate this with agents but like lol

        2. Does that mean every driver ever written with AI from now on is using proprietary material from 100s of companies?

          1. > Does that mean every driver ever written with AI from now on is using proprietary material from 100s of companies?

            Nvidia does not want that sort of precedence: then it means that every AI-produced software is "contaminated" with GPL, proprietary licenses, etc.

          2. Surely it's been that way since the beginning, proprietary stuff would have been vacuumed up in the training data.

        3. They don't as long as one person e.g. documents what various registers do from the leak and another writes the code.

        4. If AI can get away with training on differently licensed code, why is this any different ?

          1. I find the irony in this particular product absoutely hilarious.

        5. A lot of these “clones” use the word clean room incorrectly as a hopes of avoiding any takedowns or being locked out by the LlM providers

          1. Also LLM-generated READMEs will automatically insert the word "clean room" to a rewrite even if you explicitly tell it to rewrite based on the source. I tried to rewrite FFmpeg and literally included it as a Git submodule in the repo and Claude still insisted on it being "clean room".

            1. I mean, you did sweep the floor recently, right?

    9. 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.

    10. [deleted]

  6. Genuine question: how can you claim your code is a clean-room re-implementation when you're using LLMs?

    1. 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?

      1. 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

        1. There is also the legal reality that a multi-trillion-dollar corporation can sue you for longer than you can remain alive, never mind solvent.

          1. (bear in mind its stock market value is shakier than an earthquake just now, it tanked and recovered almost 50% recently and is on the hook for trillions in dodgy data-center build-outs just now)

            1. > bear in mind its stock market value is shakier than an earthquake just now

              It only costs a few million in legal fees to keep you in court till the bank repossesses your house. A rounding error, even to an embattled corporation of this size

        2. Maybe you should mention this is unsettled law and what that means with respect to whatever guidance you would give?

          1. The standard for infringement is not unsettled law. It's very well settled law. I was pretty clear most of the argument would be over access, and I believe that is correct.

        3. Peasant here - For one, your argument would make all code written in the last year infringe on something, which make this argument practically moot.

          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.

          1. You seem very confused. I didnt argue anything was or wasnt infringement. I argued nobody will have to prove conclusive unambiguous anything. This is not an argument. This is very well settled law that has so far been applied in the age of AI

            you seem to believe this would make everything infringe on something. I dont. As I said most of the argument would be around whether or not LLMs have access to protected works or not, just because they were nearby when they were trained or used as feedback or whatever. whether that argument succeeds remains to be seen. I do not believe it will change the standard for infringement overall.

            As for the second for what it’s worth, you’re talking to someone who uses thousands of dollars worth of tokens for coding per week, including reverse engineering. i’ve also run many high-level reverse engineering projects for companies.

            just because it’s easy to do something doesn’t mean we don’t make it illegal or expensive to do it. we do that all the time. probably the majority of civil laws fall into the case of making easy things illegal or expensive. it is wildly naive to believe that just because something became easy means that the law will do to do nothing about it.

            people porting video games to Windows using reverse engineering is very different than starting and running a viable business around it that won't cause you to be on the run legally forever

            while it’s accurate to say the law will roughly not achieve anything against the former, and doesn't really try for the most part (except to establish a basic social barrier to entry), it tends to be very good against the latter.

            1. I don't feel very confused.. I guess you limit LLM access to runtime while I am considering training time. It's very likely private IP were used to train models by accident. Accepting this argument is the risk I was mentioning.

              Obviously if antropic and openai are liable for end user actions, or unfortunate IP inclusion on training data, they won't be able to compete with Chinese and open weight models. I can't imagine the current administration letting this happen.

          2. You are missing the point of clean-room reimplementation.

            A clean-room reimplementation is never required. You can definitely get away with far less strict separation - but there is no strictly defined line line of what is okay and what isn't, which opens you up to billion-dollar lawsuits.

            A clean-room reimplementation is the nuclear approach. You are ruling out every possibility of a lawsuit because copyright violation is by definition impossible. It is a huge pain for everyone involved, but it is worth it when you can 100% rule out a decade-long lawsuit with a company like Oracle.

            In reality "your honor, the genie is out of the bottle" is not exactly a watertight legal argument, and until someone gets sued to oblivion we won't know for sure which side of the LLM argument will win. The fact that this doubt exists at all makes any "LLM-written cleanroom implementation" claim worse than useless.

          3. There are some projects that reject LLM-generated code because of the legal gray area surrounding it.

            1. All of the hyperscalers are rewriting their stacks with LLM-generated code. If there is a gray area they are all deep in it.

          4. > For one, your argument would make all code written in the last year infringe on something, which make this argument practically moot.

            Does it? None of this has really been tested in court yet. There's a distinctly nonzero chance that that all of last year's code _could_ be found to be infringing on copyright.

            Wishful thinking and scale does not guarantee the courts.

            1. My bet is on large companies treating it like mutually-assured destruction: when everyone is both doing the stealing and being stolen from, then nobody can call foul without also self-implicating. To have a real test in court we'd need a Microsoft v. Google, which is never going to happen.

              Of course, that's not going to stop Big Tech from using it to crush smaller parties...

              1. > Of course, that's not going to stop Big Tech from using it to crush smaller parties...

                They may not; it only takes a single loss to set precedence, which none of the big tech companies want right now.

                Not sure how they are going to handle this going forward; all their software is now effectively clonable for almost nothing. They are going to need to rely on network effects, if that, and that's fickle as hell.

                At this point there is no need for a Microsoft Windows license[1].

                -------------------------

                [1] Last night I wanted to play Project Diablo on Wine. It didn't start up (no crash, just a refusal to load a DLL). Claude helpfully investigated, resulting in it making a change to the Wine version I had installed (from Ubuntu), compiling an entire new system dll, and then copying it over the Ubuntu provided one. It did this because it found, just from the binary, a NULL-pointer exception in a DLL.

                All I did was prompt "Project Diablo is installed in $FOO; make it work".

        4. My dumb civilian logic is these companies stole the entire worlds knowledge including pirating huge datasets and taking copyrighted code and it somehow counts as “fair use”. So they don’t have any right to accuse anyone else of stealing, they are the ultimate thieves.

          1. Don't worry, they'll still keep suing individuals and startups.

      2. 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)?

      3. Subpoena the model providers in discovery to see if the Nvidia source was in the lake.

        1. Even if it was... Nvidia took Anna's Archive to train their models, so ethically they gave up their rights when taking this action? This knife cuts on both sides (not sure if this Dutch saying is also an English saying ;))

          1. It is an English saying! The English variation is “the knife cuts both ways”.

            I don’t know why but I’m always tickled when the same idiom exists in other languages.

            1. > It is an English saying! The English variation is “the knife cuts both ways”.

              That's funny; I remember it as "That sword cuts both ways".[1]

              ------------------------------

              [1] Many knives typically cut only one way - the blade has only one sharp edge.

            2. The Russian equivalent is "this is a two-ended stick", which I've always found a bit funny, because doesn't every stick have two ends?

              1. This becomes funnier and funnier; "every stick has two ends" is an English proverb :) Never heard that Russian variant though, maybe it's half loaned half translated?

                1. In German, there's a saying "Everything has an end but the sausage has two". (It just means "Everything will eventually come to an end".)

              2. > doesn't every stick have two ends?

                Yes but you don't want to get the wrong end of the stick.. the sponge end to be specific.

            3. In French, "it's a double-edged knife".

              1. [deleted]

          2. There's also "live by the sword, die by the sword" in english if you want it to be more biblical.

          3. Ethics notwithstanding, I think courts have called training on copyrighted works fair use.

            1. I think they found the opposite, didnt Anthropic just get handed a monstrous judgement for using copyrighted works?

              1. My understanding was: training on copyrighted material is fair use. Acquiring the copyrighted material via Anna's archive etc is still not allowed.

                (I think downloading was already infringement before, reading is allowed with all the usual consequences like possibly learning something new)

          4. Another English version of the same would be to say "It's a double-edged sword". Language is neat.

      4. 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.

      5. 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.

        1. I’m not saying it wasn’t vibe coded, but a low commit count for a newly published project can also be a sign of squashing all the ugly trial and error commits shortly before publication.

          1. Or not bothering committing until a full "first draft" is done

          2. Indeed. I often have quite complex projects pre-LLM with one commit I made after I got everything to work.

        2. > If an LLM wrote code, it is also one of the authors

          Legally, many jurisdictions have already rejected this premise.

          Which seems correct to me. An LLM has no agency, it cannot be an author.

          1. No author, no copyright.

            However, in this particular case of a "clean room" driver - the human controlling the LLM is then responsible for any potential and relevant copyright violations in the training data. Or perhaps language models are the perfect copyright-laundering process, it consumes any and all data and generates copyright-free public domain code, text, images, sounds.

        3. LLMs don't author code (in the same way compilers aren't copyright holders of the binaries they generate).

        4. LLM's have no agency without human input. It's an algorithm, not a legal entity. It would be like listing Word as co-author of your research paper, it helped you fix grammatical errors so why not, right?

      6. > 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".

        1. [dead]

        2. > "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.

    2. 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.

    3. 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.

    4. 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.

    5. 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.mdYes it mentions REA, it's just decompiling the drivers, this is 0% clean-room

    6. This is technically grey but politically it is very clear that washing via LLM is acceptable.

      1. > 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.

        1. If you knowingly point your LLM at material that would preclude clean room (e.g. ask it to disassemble proprietary code, or use "leaked" docs etc) then it's certainly not clean room.

          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!).

        2. Wait, do LLMs have the source code of NVIDIA drivers in their learning data set? If not, how is "clean room" inapplicable here?

          1. It's enough for them to have the NVIDIA binaries in the data set at this point

            1. I doubt that LLMs are trained on binary data.

              1. See https://news.ycombinator.com/item?id=50546587 and associated discussion

              2. doesn't matter. Reverse engineering a driver from binary isn't clean room implementation

        3. > It's about f'ing words! Clean room means something!

          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.

        4. Not any more. All software is produced via AI that roughly encodes the IP theft of everyone alive.

          It’s the dream of 90s hacker culture, realized in a strange way in the end.

          1. It's been interesting to me how many people who were pretty hackery before suddenly really believe in "IP theft" now

            1. Stealing IP to make something proprietary should be morally questionable actoss the hacker spectrum.

            2. As one of those anti-copyright (really: just way less powerful copyright) people, myself, I agree- if those people are not expanding with any context or nuance. For me, I'm pissed that these guys are getting away with the "IP theft" just because they're rich and powerful, while the rest of us plebes would still be punished today if we did any fraction of what Zuck had Meta employees doing with copyright materials.

              Given the choice between "everyone has to follow copyright law" and "most people have to follow copyright law; but connected, wealthy, people/companies don't", I much rather have the former than the latter. That's in spite of the fact that fewer people restricted by copyright is, in some way, technically closer to what I want (i.e., zero people restricted).

          2. If that was true, then we would have global announcements of IP and copyright no longer being applicable to software at all, and that whoever gets hold of any source code can do whatever they want with it, without legal repercussions.

            Instead it is rather a case of: "Upsides of copyright for me, but only the downsides for thee."

            1. It is my understanding that copyright applying to LLM generated code is currently a bit unclear and it is conceivable that all autonomously generated code is public domain

              1. This current situation is very convenient for some players, of course. As long as the copyright is in this Schroedinger state, the individual can get sued into oblivion and must still conform to copyright laws, or risk their freedom and existence, while big tech can delay as much as needed, or just write a cost-of-business check and not get into trouble.

          3. > It’s the dream of 90s hacker culture, realized in a strange way in the end.

            I couldn't think of anything further from the 90s hacker culture. To me, this all feels a lot closer to the "dream" of "oh hey, I found it for cheap on Aliexpress".

        5. The one and only unambiguous thing "clean room" means in this context is that the authors are trying to position themselves in line with the legal precedent that would protect them from being sued over this project. That's it.

    7. 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.

    8. 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

    9. 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.

  7. 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.

    1. 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.

      1. high frequency noise is far easier to dampen

      2. 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!

    2. > 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?

      1. >> 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.

  8. 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...

  9. 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!

    1. That’s interesting. Can you link to the project?

      1. 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.

  10. Eric Hartford (QuixiAI) here, author of nvdriver. Happy to answer any questions.

    1. 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?

    2. 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.

      1. I've added all the hacks I'm aware of - If I've missed any, give me links, happy to add it!

        1. I'd assumed the V100 HBM2 memory clock could be backported, that the earlier Tesla series would have the same capability.

    3. 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?

    4. How do real time graphic api support factor into this 'driver', like DX and Vulkan?

    5. tough crowd?

      amazing work, thank you for sharing!

    6. From a former GPU wrangler: Congrats on your first release!

      1. thank you Mr. David!

    7. 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.

      1. It's much more practical to monitor one thread for new questions than to monitor all of them.

        1. [delayed]

    8. As several others already said, how can you call it clean-room when it was made by reverse-engineering Nvidia drivers?

      1. 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.

        1. So did you have one team reverse engineer the drivers, write a specification and have a completely separate team build software based on that specification?

          Who were in the two different teams? How did you ensure separation?

          1. These are very valid questions.

            1. For Claude, I guess

  11. 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?

    1. rust instead of C?

    2. Good question.

  12. 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.

    1. Or will result in consumer-tier GPUs becoming even more expensive.

      1. Nvidia is already cutting consumer GPUs and makes them more expensive as a result.

          1. Well, isn't that an unconfirmed source?

      2. It will probably lower the price of newer GPUs while increasing the worth of the old ones.
        That's a good thing imho.

    2. 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.

    3. [deleted]

  13. Can an AI driven, or even AI assisted project be considered clean really room?

    1. I don't know if it can, but everyone seems to pretend it is so.

  14. Why not put your effort into noveau?

    1. 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.

  15. anyone tries it yet? is the number claimed in the readme correct?

  16. Looks cool, but I'll wait for some tech youtubers to test it first.

  17. [dead]

  18. [dead]

  19. 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.

  20. 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.

  21. An extremely verbose project description yet no mention of other nVidia drivers such as Nova. How are the goals and/or implemention different?

  22. Ah, "clean room". The new "No copyright infringement intended".

  23. "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...

  24. Port to macOS and get native NVIDIA support (for select cards...) back? ;)

    1. nvidia driver for macos?

  25. 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.

    1. 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.

    2. 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.

      1. 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

  26. Great if actually works. (Because tbh I don't trust much AI-written READMEs.)

  27. 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?

    1. 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.

    2. its open source! please send me issues I am happy to fix them.

  28. 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?

    1. what do you want? me to hire a graphic artist? for an open source project nobody is paying me anything for?

      1. 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.

      2. 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.

      3. 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.

    2. >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.

  29. MIG? No. Still needs a license.

  30. 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.

    1. Why? The Artcraft stuff is heaven sent and even much faster than opening original Word etc. I love it!

      1. Why is it heaven sent? Have you tried working in like for a week?
        Cleanroomness of it is up for debate.

  31. .

    1. The first release was today, how can it already be underrated?