by major505 · 5mo ago · 0 comments
The secret to actually good agentic outputs even with small models? Llamacpp has support for this little known sampler called "top-n sigma". You should use that, set it to 1 and set temperature to literally whatever you want (it could be infinity) and your model will just magically work to your maximum context window. That's because long context generation is a sampling problem.
This is the content
FROM qwen2.5-coder:7b
PARAMETER temperature 0
SYSTEM "You are a senior software engineer focused in php and Node.js.Your responses should be strictily technicals, without poetry or prose, and focused in safety. IF you are working with legacy code, just apply the changes with the best syntax possible."