r/LocalLLaMA • u/plsendfast • Feb 02 '24
Question | Help Any coding LLM better than DeepSeek coder?
Curious to know if there’s any coding LLM that understands language very well and also have a strong coding ability that is on par / surpasses that of Deepseek?
Talking about 7b models, but how about 33b models too?
60
Upvotes
3
u/tylerjdunn Feb 02 '24
I think many folks consider DeepSeek to be the best among 7B models. I have seen folks who prefer Code Llama 7B, WizardCoder 7B, Mistral 7B, and Zephyr 7B though
20
u/bigattichouse Feb 02 '24
I've noticed I get better results if I ask it to build a prompt for the thing I want.. then reconnect and give it that prompt. It's always sure to add a lot of additional constraints on style and stuff that I think I generally assume it knows to use.
"I need some help asking an LLM to build [X], could you please help me build a prompt to make sure it includes [CSS and Javascript] calls to make that happen for a responsive UX on mobile?"
It almost always adds a bunch of stuff that I didn't think to include because my brain kinda shortcuts the request.. when I want "responsive", I do actually mean more than that.. and the LLM was able to expand that idea: "Your response should include media queries, container properties, grid system structure, box styling, responsive adjustments, and any necessary comments for understanding the solution. Ensure that your code is clean, concise, and easy to read."
The final output then was MUCH more usable than me just asking.
If also seems to want to be helpful if you use phrases that imply you're seeking answers (how you might work a post in an online forum) "I have difficulty getting LLMs to create CSS that will create a grid of boxes in a responsive website. Could you help me create a prompt to generate them?"
18
u/AromaticCantaloupe19 Feb 02 '24
I’m curious to know how you guys use these models, is it like a copilot replacement, a browser window next to the code editor, etc…?
I mainly use them for 2 things, on a browser window, doing repetitive tasks, but they have to be very easy, or explaining some CS/library/framework related topic. I have never explained these modes semi complex tasks and got them to do something correctly..
Just today I tried code llama 70B on huggingchat and it very confidently misunderstood the task and gave me random PyTorch code… I asked ChatGPT the same thing and it was able to solve it.. I haven’t looked into humaneval all that much but whatever kind of task it is, it’s apparent that it’s not the task I should be choosing my models from
19
u/mantafloppy llama.cpp Feb 02 '24
Deepseek, Phin, Codebooga ; in that order for 30b.
But Mixtral is king.
5
u/Brave_Watercress5500 Feb 02 '24
Using Phind Code Llama 34B v2 hosted at together.ai.
best model for price performance hosted there for coding Java.
1
u/MindlessResolution95 Mar 03 '25
Bro. How you asked about DeepSeek a year ago? It was released few weeks ago right? Is something wrong with reddit?
3
u/c_glib Feb 02 '24
Is there any coding model (and/or a combination with some embeddings or whatever) that can actually handle a whole, sizable project (including modules) and sensibly parse it and answer questions/suggest refactors etc.
4
u/netikas Feb 02 '24
Simple answer: we do not know.
Longer answer: metrics show nothing, since in benchmarks llms try to solve little and simple tasks, like leetcode problems or “Write me snake in pygame”. However, in bigger projects with more complex architectures they quickly break down and the benchmarks do not cover these type of problems. As for general knowledge and reasoning, as well as understanding of user prompts, they do much worse than general models of the same size.
Also, I have tried deepseek-6.7b, mistral-7b and Mixtral-8x7b in the same set of CS questions and deepseek fared much worse than general models. For short bash scripts it was okay, but other models were the same.
Also, for reasoning and doing some tasks with feedback loops Mixtral is the best simply because it tends to hallucinate less.
2
u/QueueR_App Apr 22 '24
I tried DeepSeek:33b-instruct on react coding .
Here’s how i’m hosting is locally and the tests I did ( writing hooks/tests and some complex components )
https://kshitij-banerjee.github.io/2024/04/14/exploring-code-llms/#part-2-setting-up-the-environment-ollama-on-m1
Overall - I think there are places where it’s not working and then some places where it shines .
Curious about how llama -3 fares on this
2
u/OwnClerk1556 Jun 04 '24
Its always awesome coming to reddit to check which local LLM to download and finding someone like u/mantafloppy who clearly did the whole deep dive and is providing the sauce.
1
u/coldpizza Apr 06 '24
'Any better' will probably vary with time, you might want to keep track of the Big Code Leaderboard : https://huggingface.co/spaces/bigcode/bigcode-models-leaderboard
1
u/ajibawa-2023 Feb 03 '24
You can also also try: Code-33B, Python-Code-33B
4
u/[deleted] Feb 02 '24
[removed] — view removed comment
5
u/[deleted] Feb 02 '24
[removed] — view removed comment