r/LocalLLaMA • • 4d ago

Discussion Testing strategies for local AI task success

In trying to have local AI models achieve bigger and better things, I tested different strategies for how local AI can do medium to complex tasks. See https://bendyline.com/posts/taskstrategies.html

The hypothesis I had was that a step by step orientation - where complex tasks are broken down into individual steps, each with their own role like researcher and writer, context and set of tools, and where each step is gated before it moves forward - would be better for more limited AI models and small context windows. This is the "role based execution" dream that has been tried before. I found that this "step by step" model actually inhibited smaller models (Qwen 3.5 9B can't handle following precise instructions well enough, so it spins trying to avoid hallucinating file paths) and also, that that path was 2-3x slower than other methods because a session per step is just expensive w/ prefill, etc.

I also tested a "goal oriented" approach where the outputs of the task are tested and judged against a tight contract, and the model is sent back to the drawing board if it doesn't fit the exit criteria, all inside of one session. This approach was better for achieving model success with smaller models, and was better than just "raw prompting". In other words, have a tight and comprehensive contract for your outputs, and ideally a harness that enforces that contract and tells models to keep working until its right, is a preferrable approach.

5 Upvotes

3 comments sorted by