News for hackers. Stuff that matters.
Re:Yi-Coder: A Small but Mighty LLM for Code by JediPig on Thursday September 05, 2024 @09:45AM (#41456567)
I tested this out on my workload ( SRE/Devops/C#/Golang/C++ ). it started responding about non-sense on a simple write me boto python script that changes x ,y,z value.

Then I tried other questions in my past to compare... However, I believe the engineer who did the LLM, just used the questions in benchmarks.

One instance after a hour of use ( I stopped then ) it answered one question with 4 different programming languages, and answers that was no way related to the question.

Re:Yi-Coder: A Small but Mighty LLM for Code by tmikaeld on Thursday September 05, 2024 @09:55AM (#41456681)
I have the same experience, hallucinates and rambles on and on about "solutions" that are not related.

Unfortunately, this has always been my experience with all open source code models that can be self-hosted.

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.
Re:Yi-Coder: A Small but Mighty LLM for Code by tarruda on Thursday September 05, 2024 @01:57PM (#41459004)
Have you ran the model in full FP16? It is possible a lot of performance is lost when running quantized versions.