Unofficial Hacker News companion — get notified on comment replies, and more.

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

915 points by rreyes1979 1 day ago | github.com | 453 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (61)

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

              Continue this thread (1 replies) →

            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.

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

              Continue this thread (1 replies) →

            2. It depends how you look at it. The act of downloading and keeping the pirated materials was penalized but the ability to train on such material was not. In this case copyright penalties are not an effective deterrent against piracy given the scale of reward for the action. Perhaps worse yet the court found use of pirated material for training to be fair use. The damage to the intellectual property owners due to derivative products, services or lost sales might turn out be far greater than the piracy.
          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.
            Replies (1)
            1. Well, they have big money for lawyers. Do you?
        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...

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

              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.

            Replies (2)
            1. You're not confused, lawyer up there just doesn't understand AI. In my opinion.

              Continue this thread (1 replies) →

            2. No, I am considering training time. This is the lawsuits they have lost - where they trained on private IP at training time.

              Do you have a case where they did it and didn't lose or settle because they were going to lose?

              You keep saying it's moot or won't happen or the current administration wont' allow it, but so far, AI companies haven't won a single case nor had a single law changed to enable their behavior, and instead, have had to pay literally billions of dollars in infringement lawsuits during the current administration?

              That sure doesn't seem to jive with your repeated assertions about will surely happen, so it'd be good to see the actual evidence to back up your view since you keep asserting a lot of things, but seem very short on actual evidence for your view.

      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.

            Replies (2)
            1. The Mozart example is a very straightforward copyright infringement. I’m not sure where you’re trying to take the argument.
            2. Yes, that would literally be infringement?
    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