Lurker News
I mean anything in the 0.5B-3B range that's available on Ollama (for example). Have you built any cool tooling that uses these models as part of your work flow?

Comments (346) 68 threads

Earlier comments
nozzlegear4 replies#
I have a small fish script I use to prompt a model to generate three commit messages based off of my current git diff. I'm still playing around with which model comes up with the best messages, but usually I only use it to give me some ideas when my brain isn't working. All the models accomplish that task pretty well.

Here's the script: https://github.com/nozzlegear/dotfiles/blob/master/fish-func...
And for this change [1] it generated these messages:

    1. `fix: change from printf to echo for handling git diff input`

    2. `refactor: update codeblock syntax in commit message generator`

    3. `style: improve readability by adjusting prompt formatting`
[1] https://github.com/nozzlegear/dotfiles/commit/0db65054524d0d...
mentos#
Awesome need to make one for naming variables too haha
relistan4 replies#
Interesting idea. But those say what’s in the commit. The commit diff already tells you that. The best commit messages IMO tell you why you did it and what value was delivered. I think it’s gonna be hard for an LLM to do that since that context lives outside the code. But maybe it would, if you hook it to e.g. a ticketing system and include relevant tickets so it can grab context.

For instance, in your first example, why was that change needed? It was a fix, but for what issue?
In the second message: why was that a desirable change?

lnenad2 replies#
I disagree. When you look at the git history in x months you're gonna have a hard time understanding what was done following your example.
relistan#
By adding more context? I’m not sure who you’re replying to or what your objection is.
Draiken3 replies#
I disagree. If you look back and all you see are commit messages summarizing the diff, you won't get any meaningful information.

Telling me `Changed timeout from 30s to 60s` means nothing, while `Increase timeout for slow requests` gives me an actual idea of why that was done.
Even better if you add meaningful messages to the commit body.
Take a look at commits from large repositories like the Linux kernel and we can see how good commit messages looks like.

Continue this thread — 3 replies

rane#
Most of the time you are not able to fit the "Why?" in the summary.

That's what the body of the commit message is for.

nozzlegear#
Typically I put the "why" of the commit in the body unless it's a super simple change, but that's a good point. Sometimes this function does generate a commit body to go with the summary, and sometimes it doesn't. It also has a habit of only looking at the first file in a diff and basing its messages off of that, instead of considering the whole patch.

I'll tweak the prompt when I have some time today and see if I can get some more consistency out of it.

zanderwohl#
> The commit diff already tells you that.

When you squash a branch you'll have 200+ lines of new code on a new feature. The diff is not a quick way to get a summary of what's happening. You should put the "what" in your commit messages.

lionkor#
Those commit messages are pretty terrible, please try to come up with actual messages ;)
mystified5016#
That's actually pretty useful. This could be a big help in betting back into the groove when you leave uncommitted changes over the weekend.

A summary of changes like this might be just enough to spark your memory on what you were actually doing with the changes. I'll have to give it a shot!

4mitkumar#
Such a fun thread but this is the kind of applications that perk up my attention!

Very cool!

Mashimo#
Oh that is a nice writeup. We have something similar in mind at work. Will forward it.
Mumps#
lovely application!

Genuine question: why not use (Modern)BERT instead for classification? (Is the json-output explanation so critical?)

Mukina#
Super cool. What a simple and powerful way to help mothers in need. Thanks for sharing.
flippyhead14 replies#
I have a tiny device that listens to conversations between two people or more and constantly tries to declare a "winner"
pseudosavant#
I'd love to hear more about the hardware behind this project. I've had concepts for tech requiring a mic on me at all times for various reasons. Always tricky to have enough power in a reasonable DIY form factor.
oa335#
This made me actually laugh out loud. Can you share more details on hardware and models used?
econ#
This is a product I want
amelius#
You can use the model to generate winning speeches also.
jjcm#
Are you raising a funding round? I'm bought in. This is hilarious.
hn8726#
What approach/stack would you recommend for listening to an ongoing conversation, transcribing it and passing through llm? I had some use cases in mind but I'm not very familiar with AI frameworks and tools
eddd-ddde#
I love that there's not even a vague idea of the winner "metric" in your explanation. Like it's just, _the_ winner.
mkaic#
This reminds me of the antics of streamer DougDoug, who often uses LLM APIs to live-summarize, analyze, or interact with his (often multi-thousand-strong) Twitch chat. Most recently I saw him do a GeoGuessr stream where he had ChatGPT assume the role of a detective who must comb through the thousands of chat messages for clues about where the chat thinks the location is, then synthesizes the clamor into a final guess. Aside from constantly being trolled by people spamming nothing but "Kyoto, Japan" in chat, it occasionaly demonstrated a pretty effective incarnation of "the wisdom of the crowd" and was strikingly accurate at times.
nejsjsjsbsb#
All computation on device?
prakashn27#
wifey always wins. ;)
deivid#
what model do you use for speech to text?
TechDebtDevin#
Your SO must really love that lmao
econ#
Tell me it also does sports style commentary on the ongoing debate. My mental image requires it.
flippyhead2 replies#
Heh, I made this comment and forgot to check back -- I'm always missing stuff on HN because of this!

If anyone is still paying attention, email me at hi@seikai.tv and I'll see if I can send you one.

Shonku_#
Yeah I'm still paying attention!
ultrasounder#
Sounds cool! In fact, this can be applied to other areas such as "debate monitoring" for debate competitions
yzydserd1 reply#
Nice idea.
kortilla#
Make sure your meeting participants know you’re transcribing them. Has similar notification requirements as recording state to state.

Load more comments