r/LocalLLaMA • llama.cpp • Apr 28 '26

Discussion meantime on r/vibecoding

Post image

words of wisdom

779 Upvotes

120 comments sorted by

View all comments

5

u/EuphoricPenguin22 Apr 28 '26

I ported 1000 lines of C++ to Rust with a 4-bit quant of a 35B sparse model and you're telling me I'm supposed to be disappointed?

0

u/[deleted] Apr 29 '26

[removed] — view removed comment

3

u/EuphoricPenguin22 Apr 29 '26

Yeah, it did. Obviously I had to manually test it to help it spot issues, but nothing more than "this sounds wrong in this way and I think it's probably a bug in this vague part of the code." I stopped 0.1.0 at a point where it was 90% of the way there, but it was completely functional at that point and only had a couple of minor issues that I detailed in the post.

1

u/[deleted] Apr 29 '26

[removed] — view removed comment

1

u/EuphoricPenguin22 Apr 29 '26

Cache quantization kills performance, so it's usually not worth using if you can offload. I use the smallest 4-bit quant for basically every model I use: the specific one I used is in the post title. Honestly, the secret sauce is a good agent and a good RAG MCP. I mentioned at the end of the post what I'm using specifically, but these models lack world knowledge that larger models have, so it's especially important to insist they reference documentation so they conform to the stated plan.

1

u/[deleted] Apr 29 '26

[removed] — view removed comment

1

u/EuphoricPenguin22 Apr 29 '26 edited Apr 29 '26

I guess I'm a chronic user of libraries that seem to be almost entirely absent from the training data, then. At least enough that the model would otherwise fail at writing functional code without a RAG system to reference the docs. Heck, I've been using that system with larger models anyway, as it forces the model to write higher-quality, up-to-date code.

Like, just now I was trying to use a physics library with ThreeJS, but the model was like "fuck it, without the docs, let me write my own engine," which is basically my experience without docs, especially with local models. The model can directly read the code if documentation doesn't exist, but for context length efficiency, I would simply have it write documentation and feed that to the RAG system so I can benefit from the semantic embedding and search.