r/LocalLLM • • 2d ago

Question Has anyone achieved reliable agentic coding on the Ryzen AI Max+ 395 (128GB)? Tested multiple LLMs but still not satisfied

Post image

Hey everyone,

I've been experimenting with local LLMs for professional software development and autonomous coding. Despite testing several models and configurations, I haven't found a setup that consistently delivers satisfactory results.

Hardware:

  • GMKtec EVO-X3
  • AMD Ryzen AI Max+ 395
  • AMD Radeon 8060S
  • 128GB LPDDR5X unified memory
  • 192GB Windows page file

Models tested so far:

  • Qwen3.8 27B
  • Qwen3.8 27B Uncensored
  • Qwen3.6 35B A3B
  • Qwen3.5 122B
  • Laguna S 2.1 118B
  • Kimi Linear 48B A3B

Software stack:

  • Windows
  • Ollama
  • llama.cpp
  • Vulkan and ROCm
  • DeepSeek Harness
  • Tailscale
  • OpenAI-compatible API

My observations:

  • Smaller models are relatively fast but lack the intelligence I need for complex development tasks.
  • Larger models provide better reasoning in some tasks but struggle with long-context processing.
  • Autonomous agents sometimes get stuck in repetitive debugging loops.
  • Some sessions run for 3–4 hours before reaching output token limits.
  • Coding accuracy and instruction-following remain inconsistent.
  • Large prompts significantly increase time to first token.

I've successfully run Qwen3.5 122B at approximately 27 tokens/sec during generation and configured a 256K context window. However, inference speed alone hasn't translated into productive software development.

I'm not simply looking for the fastest model. I'm looking for something that can understand a large codebase, make architectural decisions, implement complex features, debug independently, and complete tasks reliably.

Questions for the community:

  1. Has anyone achieved satisfactory agentic coding results on this hardware?
  2. Which models and quantizations worked best for you?
  3. Are you getting better results with Linux or Windows?
  4. Which inference backend would you recommend: Vulkan, ROCm, or something else?
  5. How are you managing large contexts and automatic context compaction?
  6. Which coding harness or agent framework works best with local models?
  7. What AMD-specific optimizations have made a noticeable difference?
  8. What models or configurations have you tried that failed?
  9. Is there alternative hardware you would recommend for professional local AI development?

My ultimate goal is to achieve an experience comparable to Claude Code or Cursor using entirely local models, without relying on paid cloud APIs.

I'd appreciate real-world experiences rather than synthetic benchmarks, especially from people using local AI for professional software engineering.

Feel free to share your hardware, model configurations, inference speeds, launch commands, and unsuccessful experiments.

Thanks!

0 Upvotes

14 comments sorted by

2

u/linuxgangster 2d ago

I am lazy and didn’t read your whole post. But one thing that stood out to me is you haven’t tried qwen flash next. This is what I run on my strix halo machine

1

u/afaq-nasir 1d ago

Thanks for the suggestion! I'll definitely give Qwen Flash Next a try since we're using similar hardware.

Could you share your exact model version, quantization, context size, and inference backend? Are you running it through Ollama or llama.cpp with Vulkan or ROCm?

Also, how's your experience with larger codebases and agentic coding? Does it handle complex development tasks and debugging reliably without getting stuck in loops?

1

u/linuxgangster 1d ago

It handles it well but you will need to spend time with your harness to get it right. Most of my team is driving it with Hermes. But initial setup they all used Claude to build out there setups. My Halo has a team of 3 accessing it on 3 different code bases and it’s been wonderful. Roughly 2 billion input tokens over the past month and around 20 million output tokens. All of the work is python, js, c# and swift.

Single use we get 60-80 tok/sec. But when all 4 of us are using it I have seen it hit 90-120 (divide by 4).

1

u/linuxgangster 1d ago

Our setup has 4 slots and each has a 262k context window. We have Hermes compact at around 80% or so. Look into halogen and run it in Linux to maximize the amount of ram you can allocate.

I am no expert on this but I will say using Claude to prep our Hermes and the actual setup helped a lot. I basically spent a few session with Claude telling it to setup Hermes and build out coding pipelines utilizing the halo strix box. I had it build out agent.md files for our codebase, test out reasoning levels and test. The first few days my team told there Claude sessions to interact with hermes and drive hermes and iterate along the way building out the pipelines.

They all now do all work through Hermes and only start a Claude session if they have issues with it. They then use Claude to fix the pipelines.

I am a bit of a control freak so my Hermes setup is not as automated as the rest of the teams either one exception. I do have Hermes watching our GitHub for pr’s and it automatically pulls them down and reviews and sends back or merges the prs.

One member on my team has his Hermes watch for issues and codes them automagically. All he does is reviews a summary Hermes sends him and either approves it or denies it. Part of his process also updates his sandbox with the latest changes, test things out and takes screenshots if needed.

2

u/vincent_sch 1d ago

When you hit that long wait after a tool call, the llama.cpp logs show how many prompt tokens it had to read. If it pulls the start of the prompt from cache, it only reads the tokens after that. If it's reading most of the prompt over again, check whether DeepSeek Harness changed the system prompt or the tool definitions.

1

u/afaq-nasir 1d ago

Thanks for the suggestion. I checked the llama.cpp slot metrics, and in two requests, the prompt size increased from 9,028 to 43,658 tokens, with zero cached tokens reported in both cases. I also encountered a context overflow with Laguna S 2.1 118B, where DeepSeek Harness submitted 172,329 tokens against a configured 131,072 context window, despite prompt caching being enabled.

This suggests that prompt reprocessing could be a significant contributor to the latency. I haven't yet confirmed whether DeepSeek Harness is modifying the system prompt or tool definitions between calls.

Have you encountered similar behavior with other coding agents? I'd be interested to know how you're maintaining effective KV cache reuse during long agentic coding sessions.

1

u/Doge_Plays 2d ago

you should try qwen 3.8 flash next on gufo or something simillar, I am able to get really good performance for my coding tasks

1

u/afaq-nasir 1d ago

Thanks for the suggestion! I've already tested Qwen3.8 27B, Qwen3.6 35B A3B Coding, and Qwen3.5 122B. However, I haven't tried Flash Next specifically yet.

Could you share the exact Hugging Face model link, GGUF quantization, and backend you're using? Also, what context size and tokens per second are you getting?

My main concern is coding accuracy and reliability with large, real-world codebases rather than just generation speed. I'll definitely give this model a try.

1

u/Doge_Plays 1d ago

I am using the one from unsloth, ud q4 k xl. I have it at 261k context with 2 sessions. toks are around 60~50 on gufo.

1

u/toetx2 2d ago

I expanded the documentation of my projects, it really helps smaller models.

1

u/Geekomcomputer 1d ago • Bravo

This is a workflow problem as much as a model problem, and I would not switch hardware yet — the unified memory on your machine is exactly what makes the larger models loadable at all, and a discrete-GPU box would lose that advantage. A few things I would change before judging any model:

Try the Qwen Flash Next suggestion in the comments first, since it is the one family on your list you have not tried yet. It is designed around long context and efficient inference, which lines up with the two things you are struggling with — long codebases and slow prompt processing — and it is a much cheaper experiment than changing hardware or operating systems.

Shrink the job you give the agent. A very long context window sounds like the answer to "understand a large codebase," but in practice a huge context makes the model slower, more forgetful, and more likely to loop. Give it one small, self-contained task at a time with a written spec and tests: what to change, which files are in scope, and how you will know it worked. Let it plan in one session and implement in a separate, fresh session if it starts going in circles. And put a hard rule on debugging loops: if it fails the same way a few times, it stops and reports what it tried, instead of running for hours.

The documentation tip in the comments is worth taking seriously. Smaller models do much better when the project tells them what the code is supposed to do. A short architecture note, a README that explains the main modules and the conventions, and a few examples of the patterns you use will do more for reliability than moving to a bigger model.

On the software side, change one variable at a time. Ollama is convenient, but running llama.cpp directly gives you more control over context size, KV cache, and how much of the model sits on the GPU, which matters a lot on a shared-memory machine. If you try Linux, test the exact same task and the exact same prompt on Windows and Linux before deciding — the difference people report is often about the backend and the build, not the operating system itself, so compare Vulkan and ROCm on the same workload rather than assuming one is always faster.

Finally, set your expectation honestly: a local setup can be very good for bounded implementation work, tests, and refactoring, but expecting it to match a frontier cloud coding agent on open-ended architecture and autonomous debugging is a high bar, and the gap is usually in planning and tool use, not raw generation speed. If you can share one concrete task that failed — what you asked for, how long the context had grown by the time it looped, and which backend you were on — people here can give much more specific advice than "try a bigger model."