Unofficial Hacker News client - receive Push Notifications on replies.

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs (opens external site)

751 points by rreyes1979 10 hours ago | github.com | 381 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (99)

  1. Genuine question: how can you claim your code is a clean-room re-implementation when you're using LLMs?
    Replies (11)
    1. 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.

      Replies (1)
      1. Yep. This isnt even restricted to nvidia/proprietary software. Its also applicable to copyleft licensed software
    2. 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.
    3. This is technically grey but politically it is very clear that washing via LLM is acceptable.
      Replies (1)
      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.

        Replies (5)
        1. 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.

          Replies (3)
          1. > 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".

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

            Replies (1)
            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

              Continue this thread (1 replies) →

          3. It's been interesting to me how many people who were pretty hackery before suddenly really believe in "IP theft" now
            Replies (3)
            1. 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).

              Continue this thread (1 replies) →

            2. Stealing IP to make something proprietary should be morally questionable actoss the hacker spectrum.
            3. Because those are proprietary black boxes made by for profit companies?
        2. Wait, do LLMs have the source code of NVIDIA drivers in their learning data set? If not, how is "clean room" inapplicable here?
          Replies (1)
          1. It's enough for them to have the NVIDIA binaries in the data set at this point
            Replies (1)
            1. I doubt that LLMs are trained on binary data.

              Continue this thread (3 replies) →

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

          Replies (1)
          1. As long as you start a new session after coming up with the dirty spec it should be considered clean room is my understanding.
    4. 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?
      Replies (7)
      1. Subpoena the model providers in discovery to see if the Nvidia source was in the lake.
        Replies (1)
        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 ;))
          Replies (4)
          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.

            Replies (3)
            1. 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?

              Continue this thread (2 replies) →

            2. In French, "it's a double-edged knife".
            3. > 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. Ethics notwithstanding, I think courts have called training on copyrighted works fair use.
            Replies (2)
            1. I think they found the opposite, didnt Anthropic just get handed a monstrous judgement for using copyrighted works?

              Continue this thread (1 replies) →

            2. Keep in mind that the legal precedent of today's tech may not hold for tomorrow's tech. This is all pretty new and the dust hasn't settled.

              IANAL so please lawyers, correct me. What most of the cases were about was whether training itself infringes on copyright, but it doesn't mean you can reproduce copyrighted material. This is the exact reason why models have guardrails on top refusing reproduction of copyrighted works and it's also part of the EU AI act.

              So far, they have not legally enforce copyright on the training but the output of the model may still infringe copyright. If you use my books to create a spell-checker model, then this is considered fair use (even though I think it shouldn't when taking this scale). If you use my books to create a book-writing model that reproduces whole paragraphs of my work, then your output still infringes on copyright. Then since you have access to the material and your output is identical, you have a copyright infringement case.

              You can also read about the Suno case which was judging exactly this. Copyright work were memorised inside the model in a way that's not deemed transformative. You are allowed to store "statistics" and "trends" but not copy the work itself.

              But again, with everything legal a precedent might exist but it's rarely a one size fits all. You can guess whenever there is a precedence but details (and your defense/opposition) also matter

          3. Another English version of the same would be to say "It's a double-edged sword". Language is neat.
          4. There's also "live by the sword, die by the sword" in english if you want it to be more biblical.
      2. > 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".

        Replies (1)
        1. > "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.

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

        Replies (4)
        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.
          Replies (2)
          1. Indeed. I often have quite complex projects pre-LLM with one commit I made after I got everything to work.
          2. Or not bothering committing until a full "first draft" is done
        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.

          Replies (1)
          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. 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?
        4. LLMs don't author code (in the same way compilers aren't copyright holders of the binaries they generate).
      4. 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

        Replies (4)
        1. 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.

          Replies (4)
          1. There are some projects that reject LLM-generated code because of the legal gray area surrounding it.
            Replies (1)
            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.

              Continue this thread (1 replies) →

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

            Replies (2)
            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...

              Continue this thread (1 replies) →

            2. There's a distinctly nonzero chance that that all of last year's code _could_ be found to be infringing on copyright.

              Nonzero I suppose, but smaller than any x you care to name. Courts are not going to destroy the AI industry over copyright for the same reason they weren't going to declare that airplanes were violating the property rights of everyone whose homes they flew over.

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

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

            Finally, it's useful to keep in mind so far every major AI company has lost or settled every single case where someone could prove substantial similarity to a protectable work. Losing every case and paying billions is fairly hard to square with your view that we have reached the Assassin's Creed stage of "nothing is true everything is permitted". Maybe you don't like the amounts won or settled for, thinking them too small or whatever, but that is not quite the same.

            Replies (1)
            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.

              Continue this thread (1 replies) →

        2. 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.
          Replies (2)
          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)
            Replies (1)
            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. I don't think this particular one would last that long, they would be arguing that LLM can output a copyright-infringing code which is a direct stance against pretty much the entirety of their customers.
        3. 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.
          Replies (3)
          1. Don't worry, they'll still keep suing individuals and startups.
          2. > So they don’t have any right to accuse anyone else of stealing

            They may not have the moral right, but they definitely have the legal right

        4. Maybe you should mention this is unsettled law and what that means with respect to whatever guidance you would give?
          Replies (1)
          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.

            Most of the time substantial similarity is a blocker to even getting started - despite lots of word-blood being spilled, llms generally do not output like 50 pages of your favorite book. Once you get over that hump and find substantial similarlity somewhere (IE it outputs 10 pages of code someone else wrote), most of the actual argument is over access.

            Replies (1)
            1. Well, they say Mozart could listen to a symphony, go home, and write it out by hand. Is that infringement? These ais have no problem running a decompiler and reading assembly. It’d be hard to argue it doesn’t have access to the Nvidia gpu driver.

              OTOH, it’s a rust rewrite, so I don’t know if that counts as substantially similar.

              Continue this thread (1 replies) →

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

      7. 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.
        Replies (1)
        1. There is only one solution to this, somebody clean room re-implement Oracle DB
    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.md Yes it mentions REA, it's just decompiling the drivers, this is 0% clean-room

      Replies (1)
      1. 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?
        Replies (2)
        1. No. Rewording the program from assembly into human readable text does not constitute clean room.
          Replies (2)
          1. Then what constitutes clean room in your definition? I think you'll find that you've excluded every possible method.
            Replies (1)
            1. Different person here, but you can construct a spec by simply observing behavior of the system. You can even automate this, with fuzzing and related techniques.
          2. No one does it like this in practice, decompilation is almost always the first step.
            Replies (1)
            1. > decompilation is almost always the first step.

              Still not clean room. It's just assembly written in a more human readable form, the decompiled code does exactly the same as the assembly.

              Continue this thread (1 replies) →

        2. Isn't this how many Linux wifi and graphics drivers were written? And then didn't BSD take those drivers, and do the dame process to derive BSD versions? (Just using humans instead of AI)

          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.

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

    7. 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.
      Replies (1)
      1. 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)

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

    9. 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
    10. 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?
    11. Add "Make it look legal." to your prompt.