upvote
7B produced 2 answers, 1 was correct though more expensive and the second was incorrect.

The first attempt with 7B the model got stuck in an infinite loop.

reply
I'd you have some tips for coming up with such tests, I would love to hear them. My Gmail username is the same as my HN username. Thank you!
reply
It's actually just a coding interview test that I liked to ask in the past. You can find it and others on leetcode.

The reason I personally like my question is because it's pretty close to some of the real world work we do. It's mostly mundane and easy to bang out, but really easy for someone to do a n log n solution where an n solution exists.

A good example (but not my question) would be something like

"I have a list of People objects with a `first` and `last` name. Write a function which groups together all the People with the same last name in `your language of choice`"

reply
LLMs have a problem with that type of question? I might try it later at home.
reply
Now a days? No. It's actually getting to be a bad question because they all push out about the exact same answer.

But much earlier they did and, apparently, these really small models still do. At this point it serves as more of a smoke test for me. Success means little, failure means a lot.

reply
Terrific, thank you.
reply
Not sure a model that small is really supposed to be used for any real coding. At that size you're usually using the model to do simple tasks like summarization.
reply
To be clear, the question wasn't a complex one. It was more on the level of "could I use this for a fast inline coder" IE, single somewhat simple function question.

I wouldn't have dreamed to use this as an agent model.

7B models of the past have been able to pass this question. I've not tested it on a 4B model until now.

reply