Ask HN: Software Licenses that prevent LLMs from training on open source?

Posted by mattm 2 days ago

Counter9Comment5OpenOriginal

I'm planning to release an open source software library soon and was wondering - are there any licenses that would prevent LLMs from ingesting it into their training? Do any of the labs say that they don't ingest software code that uses certain licenses?

I realize this would be something that would be nearly impossible to discover and they could always say that they don't but they end up ingesting anyway.

Comments

Comment by appenz 2 days ago

IANAL and this is not legal advice, but to explain the issue further in a number of countries training is considered fair use. If someone training the model can find one country where this is the case (and there are no edge case issues from things like copying the data for training) training is legal. So far, the US hasn’t restricted importing models (which specifically for open source might not be possible due to free speech) so using that model in the US is legal as well.

And understood that there are strong opinions on both sides of the argument if this is good or bad.

Comment by linesofcode 2 days ago

There’s nothing you can do to stop this. If your stuff is on the internet it will be crawled.

Don’t want the LLMs or anyone else to gobble up your project then keep it private.

The licenses are a gentleman’s agreement in a world of no gentlemen.

Comment by wmf 2 days ago

There probably can't be. I assume they don't even look at the license when they crawl.

Comment by sigbottle 2 days ago

Chivalry and honor. Fight them to a duel to the death on horseback and javelin jousting.

Comment by brudgers 2 days ago

Unless your license is backed up by the legal wherewithal to enforce its terms, your choice doesn't matter.

There are is no Software License Enforcement Agency.

And by "legal wherewithal" I mean enough money to out lawyer the big AI companies who have many billions of dollars on the line and therefore a few billion for legal fees.

Also keep in mind that scraping by open-source projects is a proven tactic for corporate ingestion while generating plausible legal protection.

Good luck.

Good luck.

Comment by tmpsvc2695f5 1 day ago

[dead]

Comment by laruss5 2 days ago

[flagged]

Comment by tmpsvc2695f5 2 days ago

[dead]