News for hackers. Stuff that matters.
Re:Comparing 60 LLMs with a set of 20 prompts by jasonjmcghee on Saturday September 09, 2023 @10:45AM (#37446013)
Where is that CodeLlama model from?

I've played around with it and instruct variant with dramatically better results than what is listed here.

I used Ollama.

Almost looks like weights were corrupted or something.

---

Update: My results using CodeLlama Instruct 7B, w/ Temperature 0

https://gist.github.com/jasonjmcghee/b0d19e0dedb37e848f69cba...

Re:Comparing 60 LLMs with a set of 20 prompts by YetAnotherNick on Saturday September 09, 2023 @11:37AM (#37446621)
I think they messed up the templates.
Re:Comparing 60 LLMs with a set of 20 prompts by detente18 on Saturday September 09, 2023 @11:44AM (#37446684)
Here's the template I'm using - https://github.com/BerriAI/litellm/blob/5ca8b23e22139a4f49bd...

Anything I'm doing incorrectly?

Re:Comparing 60 LLMs with a set of 20 prompts by YetAnotherNick on Saturday September 09, 2023 @09:48PM (#37452148)
The format is really weird for chat models. In your code post message is `<</SYS>>\n [/INST]` which is wrong. Instead the overall format is `[INST] <<SYS>>\n{system}\n<</SYS>>\n\n{instruction} [/INST]`

So both the system message and first instruction are in same [INST] block.

Re:Comparing 60 LLMs with a set of 20 prompts by jasonjmcghee on Saturday September 09, 2023 @10:55AM (#37446130)
(Note: I posted this before the full benchmark above and uses default temperature, not temperature 0, but point stands)

Example (CodeLlama-Instruct 7B)

---

Sure, here are two poems, one arguing for the use of Kubernetes and another arguing against it:

For:

Kubernetes, a mighty tool,

Managing clusters with ease,

Scaling apps with grace.

Against:

Kubernetes, a beast to tame,

Complexity lurks in its name,

Leading teams astray.

Re:Comparing 60 LLMs with a set of 20 prompts by vincelt on Saturday September 09, 2023 @12:57PM (#37447457)
I used the API from Together[0].

Thanks for sharing your results, they're indeed pretty different. I looked at the source again and did append a "# " before every prompt made by those 10 `code` models (during testing thought that formatting it as a Python comment might help them).

Will re-run the script without that to see if it matches your results.

[0] https://docs.together.ai/docs/models-inference#code-models