Ello Ello.

Can you recommend a program with which I can generate commit messages locally? I DO NOT want an LLM local or cloud API. What I want is a tiny or small language model. If I could easily swap or customize the model for each project, it would be better, too. So I could have smaller models for specific projects. I can do the training meself.

Thanks in advance!

      • CameronDev@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        6 hours ago

        Its small in the sense it’ll run on basically any GPU from the last decade, rather than high end or specialised GPUs. And there is a 1GB gemma4 model, which is meant for CPU/phones.

          • CameronDev@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            5 hours ago

            You’re not wrong though, even 1GB is quite lot for writing commit messages, I gave it a quick go, and it takes around 15-30s to analyse a very small diff. Kinda silly for git messages.

            • FarooqOP
              link
              fedilink
              arrow-up
              3
              ·
              5 hours ago

              Thanks for letting us know. Yeah sure. It’s not worth it. I personally take about 10s to write the commit message. So such a thing will just make it worse.

    • FarooqOP
      link
      fedilink
      arrow-up
      5
      ·
      7 hours ago

      8GB means around 8B parameters. It’s no where near small. I meant the classic language models before LLMs existed. Something which I can easily execute on CPU to generate the commit messages.

      And here, I’m not asking for “what model” rather “what utility” which uses such these models. Finding or training a model is much easier than maintaining such a software and keeping it useful.

      • TehPers@beehaw.org
        link
        fedilink
        English
        arrow-up
        6
        ·
        7 hours ago

        the classic language models before LLMs existed

        Which models are you referring to here? Earlier versions of GPT (like GPT-2)?

        There are small LLMs like Phi 4 Mini that you could look at. Those were part of the “small language model” craze (SLMs).

        If you want meaningful commit messages though, nothing beats handwritten messages. Commit frequently and the messages should be short and easy to come up with.

        • FarooqOP
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          Commit messages are for sure short and easy to come up with, already. The problem’s typing some common stuff every single time.