# pi-qwen36-35b-a3b-llamacpp-strixhalo: pi coding agent 0.73.1 (badlogic/pi-mono) driving Qwen3.6-35B-A3B UD-Q4_K_XL, # served by stock llama.cpp v1.0.0 (llama-server, built with the Vulkan backend, run on Mesa RADV) in the same container, # for AMD Strix Halo (Ryzen AI MAX+ 395, Radeon 8060S, gfx1151) on linux-x86_64. The engine part is the # qwen36-35b-a3b-llamacpp-strixhalo capsule's Dockerfile (both stages line for line); then the agent's tools, Node 22 # and the harness, as pi-qwen38fn-llamacpp-gb10 installs them. # # Build stage: ubuntu:26.04 (Vulkan and SPIR-V headers, glslc, cmake from the archive), pinned by digest. The source is # the v1.0.0 tag's commit, checked by SHA-256. FROM ubuntu@sha256:2431ef40ba297198424288808116592542a461063c4abe97e2bbe048582b8d49 AS build ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl build-essential cmake libvulkan-dev glslc spirv-headers \ && rm -rf /var/lib/apt/lists/* ARG LLAMA_COMMIT=a6d1a74dbebce3a16f4f2ceddbf38c21a08d8674 ARG LLAMA_SHA256=5f2e8db8f5ddac1582bc702c0c22b59f1795a7e6de8387c3db22e5840725665b RUN set -e; cd /tmp; \ curl -fsSL -o src.tgz "https://github.com/ggml-org/llama.cpp/archive/$LLAMA_COMMIT.tar.gz"; \ echo "$LLAMA_SHA256 src.tgz" | sha256sum -c -; \ tar xzf src.tgz; mv "llama.cpp-$LLAMA_COMMIT" /src; rm src.tgz WORKDIR /src RUN cmake -B build -DCMAKE_BUILD_TYPE=Release \ -DGGML_VULKAN=ON -DGGML_NATIVE=OFF \ -DBUILD_SHARED_LIBS=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF \ -DLLAMA_BUILD_UI=OFF -DLLAMA_USE_PREBUILT_UI=OFF -DLLAMA_OPENSSL=OFF \ && cmake --build build --config Release -j"$(nproc)" --target llama-server \ && mkdir -p /out/bin \ && cp build/bin/llama-server /out/bin/ \ && cp LICENSE /out/LICENSE.llama.cpp # Runtime: ubuntu:26.04 (amd64), pinned by digest, with Mesa's Vulkan drivers (RADV) and the loader. # The GPU reaches the container as /dev/dri (render node); no ROCm and no /dev/kfd are needed. FROM ubuntu@sha256:2431ef40ba297198424288808116592542a461063c4abe97e2bbe048582b8d49 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl libgomp1 libvulkan1 mesa-vulkan-drivers python3 \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/* COPY --from=build /out/bin/llama-server /opt/llama/bin/llama-server COPY --from=build /out/LICENSE.llama.cpp /opt/llama/ ENV PYTHONUNBUFFERED=1 LANG=C.UTF-8 AMD_VULKAN_ICD=RADV RUN ! ldd /opt/llama/bin/llama-server | grep 'not found' # The agent's tools (as gx10's agent images: git, ripgrep, jq, a C toolchain, Python 3). RUN apt-get update -qq && apt-get install -y --no-install-recommends \ git ripgrep jq xz-utils unzip file less procps build-essential python3-venv \ && rm -rf /var/lib/apt/lists/* # Node 22.23.2 (the version of the node:22 image gx10's agents use), official x64 build, # checked against nodejs.org's SHASUMS256.txt. RUN curl -fsSL https://nodejs.org/dist/v22.23.2/node-v22.23.2-linux-x64.tar.xz -o /tmp/node.tar.xz \ && echo "d60acfe00a2932254bb0ad20e01b0d74397a0875595de719654b214f4b03f307 /tmp/node.tar.xz" | sha256sum -c - \ && mkdir -p /opt/node && tar xJf /tmp/node.tar.xz -C /opt/node --strip-components=1 && rm /tmp/node.tar.xz \ && ln -s /opt/node/bin/node /opt/node/bin/npm /opt/node/bin/npx /usr/local/bin/ ENV PATH=/opt/node/bin:$PATH RUN npm install -g @mariozechner/pi-coding-agent@0.73.1 && npm cache clean --force ENV PI_OFFLINE=1 PI_TELEMETRY=0 # Gateway deps, the same pinned set as the other agent capsules' gateways. RUN python3 -m venv /opt/gateway && /opt/gateway/bin/pip install --no-cache-dir \ fastapi==0.115.14 uvicorn==0.32.1 httpx==0.28.1 \ starlette==0.46.2 pydantic==2.14.1 pydantic_core==2.50.1 annotated-types==0.8.0 \ typing_extensions==4.16.0 typing-inspection==0.4.4 anyio==4.15.1 idna==3.20 \ certifi==2026.10.23 httpcore==1.0.9 h11==0.16.0 click==8.5.0 WORKDIR /scratch