News for hackers. Stuff that matters.
Re:Yi-Coder: A Small but Mighty LLM for Code by Gracana on Thursday September 05, 2024 @02:56PM (#41459481)
It sounds like you are trying to chat with the base model when you should be using a chat model.
Re:Yi-Coder: A Small but Mighty LLM for Code by tmikaeld on Friday September 06, 2024 @12:25AM (#41462879)
No, I’m using 9b-chat-q8_0 on a 4090
Re:Yi-Coder: A Small but Mighty LLM for Code by tmikaeld on Friday September 06, 2024 @02:59AM (#41463612)
Turns out that Ollama on windows will run multiple models in parallell consuming all available VRAM and RAM. Changing it to 1 fixed the issue, now it's working great! However, the context length for the output is very small - only 1024 tokens.
Re:Yi-Coder: A Small but Mighty LLM for Code by Gracana on Friday September 06, 2024 @09:31AM (#41466033)
That's some really strange behavior, I don't know why that would cause poor results rather than just poor performance.

Can you configure the context size with `/set parameter num_ctx N`? On my laptop with an RTX A3000 12GB I can run `yi-coder:9b-chat` (Q4_0) with 32768 context and it produces good results quickly. That uses 11GB of VRAM so it's maxed out for this setup.

Re:Yi-Coder: A Small but Mighty LLM for Code by tmikaeld on Friday September 06, 2024 @10:40AM (#41466655)
Solved, see:

https://github.com/01-ai/Yi-Coder/issues/6#issuecomment-2334...

Works very well now! 65K input tokens with 8192 output tokens is no longer an issue on my 4090. (It maxes out on 22GB/VRAM)

Re:Yi-Coder: A Small but Mighty LLM for Code by Gracana on Friday September 06, 2024 @01:34PM (#41468107)
Awesome! Glad to hear you got it sorted out.