Benchmarking and Optimizing Inference on SWE-bench Pro with Qwen3.8-27B on AMD Instinct™ MI350X A benchmark run of Qwen3.8-27B served by SGLang on AMD Instinct MI350X across the 731 tasks in ScaleAI's SWE-bench Pro produced a significant number of AgentTimeoutErrors caused by slow inference, traced to a critical prefix-cache bottleneck introduced by the choice of Claude Code as the agentic harness. Fixing the prefix-cache issue improved decode latency and sharply cut the timeouts, the authors report. The setup runs SGLang and the Harbor task orchestrator in separate Docker containers on a private bridge network (sglang-harbor-network, 172.20.0.0/16), with SGLang exposing an Anthropic/OpenAI-compatible API on port 30000. Benchmarking and Optimizing Inference on SWE-bench Pro with Qwen3.8-27B on AMD Instinct™ MI350X benchmarking-and-optimizing-inference-on-swe-bench-pro-with-qwen3-8-27b-on-amd-instinct-mi350x In agentic LLM workloads, the model is dropped into a task, given tools, and left to work: reading files, running commands, editing code, checking the result, and trying again. A task is not solved in one shot; it is solved over many turns of back-and-forth with the task environment. This is exactly the shape of a software-engineering benchmark like SWE-bench Pro , where “success” means an actual code change that makes a hidden test suite pass after churning over it for multiple turns. In this post, we first walk through how to set up a multi-turn agentic inference loop using Harbor as the task orchestrator — this is the Architecture section. We then run an agentic RL workload with Qwen3.8 27B and Claude Code as the agentic harness on ScaleAI/SWE-bench Pro https://huggingface.co/datasets/ScaleAI/SWE-bench Pro and benchmark it; the Benchmark Results section reports the accuracy and efficiency metrics and details how we collect them from SGLang, which has no native agentic view of the workload. The rest of the post is a debugging story: the benchmark run surfaces a significant number of AgentTimeoutError s caused by slow inference. A timeout can cut an agent off before it has a fair chance to finish the task, which distorts the benchmark. Tracking down their cause leads us, through metric collection instrumentation, to a critical prefix-cache bottleneck caused by our choice of agent; fixing it improves decode latency and, in turn, sharply cuts the timeouts. Architecture: SGLang and Harbor on One Docker® Network architecture-sglang-and-harbor-on-one-docker-network Figure 1 is an illustrative diagram of our setup we will walk through in this blog. We keep the two concerns — serving the model and running the task — in separate containers, and let them talk over a private Docker network. Figure 1. Inference architecture schematic with SGLang and Harbor. SGLang the serving engine and Harbor the task orchestrator require their own dependencies and are launched in two separate containers. Each example from the dataset is called a task and Harbor’s job is to launch a separate container per task from the dataset to execute it. The task containers and SGLang communicate over the same Docker network. We describe each the role of each component here before giving the reproducible steps. The model server. SGLang serves Qwen3.8-27B and exposes an Anthropic/OpenAI-compatible HTTP API. The container it is launched from is named sglang-server and joins a bridge network in our deployment, sglang-harbor-network , 172.20.0.0/16 , listening on port 30000 . Docker DNS. User-defined Docker networks come with their own DNS. Containers on the same network can reach each other by name without hard-coding IP addresses. Therefore, from your Harbor trial container on the same Docker network, http://sglang-server:30000 http://sglang-server:30000 works: sglang-server resolves via Docker DNS, and HTTP rides on top of that resolved IP:port like any normal request. The Harbor container is a Docker container with Python 3.12 and uv installed. Inside it, Harbor is cloned from harbor-framework/harbor.git https://github.com/harbor-framework/harbor.git and installed using uv sync . We launch the container as privileged and mount the host’s Docker socket so that Harbor can access the host’s dockerd and spawn task containers. SWE-Bench-Pro contains 731 tasks, each a curated bug fix or feature enhancement RL training example across multiple copyleft public repositories. Reproduce the run reproduce-the-run 1. Create the Docker network. docker network create