How can I find a local coding LLM that wasn’t trained on copyleft code?

It’s an ethical concern, not a legal one, so if the data collection doesn’t entirely rule out copyleft, that might be OK

  • sbird@retrofed.com
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    1 day ago

    Just because code isn’t copyleft doesn’t mean it does not require attribution or consent to being scraped by LLMs!

    Also, I don’t think there’s any model out there that has asked for permission for scraping, and if any claim they do, they’re almost certainly liars.

    In my opinion, you should ideally avoid LLMs if you can do the task yourself. It definitely has some genuine applications, especially translation, but functionally, ethically, and legally, it is not a suitable option for most people.

    • staircase@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      16 hours ago

      Just because code isn’t copyleft doesn’t mean it does not require attribution or consent to being scraped by LLMs!

      I am painfully aware. For my own work, I don’t use LLMs, but I’m not convinced I’m going to be able to do that at work. I’m trying to work out the details of what that means and if it’s irretrievably immoral. It’s not looking good.

    • staircase@programming.devOP
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 days ago

      Nothing in itself. I just felt it was antithetical to the intention behind copyleft to train on it then share the result.

      It’s a good question, I’ll think on it more.

      • Lemvi@piefed.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

        I don’t see why it would be. Isn’t ‘copyleft’ basically: “You may modify and redistribute this code for free, but whatever you produce with it has to be copyleft as well”?

        Extending that to coding agents trained on copyleft code, I would say that any code that agent writes is also copyleft. How is that anti-ethical?

      • Denys Nykula@piefed.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        You’re probably looking for explicitly public domain code, not just avoiding copyleft. That will be rare to find. Permissive licenses such as MIT share with GPL and other copyleft licenses the aspect that they require attribution, while LLMs act as an attribution stripper.

  • [object Object]@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    Olmo might be the closest you can get

    https://allenai.org/olmo (website straight up crashes my phone)

    https://huggingface.co/allenai/OLMo-7B

    Olmo is trained on the Dolma dataset, “a diverse mixture of web content, scientific papers, code, public-domain books, social media, and encyclopedic materials”, so this might be a more ethical source, but I’m not sure if it’s copyleft free.

    https://huggingface.co/papers/2402.00159

    You could rent a cluster of GPUs and remove copyleft material and retrain

  • entwine@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    12
    ·
    2 days ago

    So you want an LLM that says they don’t train on “copyleft” code, even if they do, so you can virtue signal to yourself without facing any kind of real inconvenience?

    How about you start by clarifying what you mean by “copyleft” as that’s not a standard term, and it means different things to different people. I’ve seen it used to refer to MIT style licenses, GPL style licenses, and public domain stuff… All of which are very different things.