swactor/examples/pipeline-parallel-inference/Dockerfile
Zachery Aaron Shores-Chmielewski b23f82e9a9 feat(distribution): add diagnostics subsystem
Structured observability for the iroh/SWIM layer: Aggregator, typed Event/Snapshot
types, Sink (NoopSink default), ProbeScheduler, process stats, and host/iroh/swim
introspection, plus the swactor-diag-collector, -postproc, and -iroh-relay binaries
that assemble and render per-run bundles. Generalizes the pipeline-parallel-inference
example to N stages and adds the topology-planner spec.


Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
2026-05-20 11:41:30 +04:00

32 lines
1.3 KiB
Docker

FROM nvidia/cuda:12.6.3-runtime-ubuntu24.04
# Runtime base — no CUDA dev headers, no nvcc. tinygrad's CUDA backend
# compiles kernels via NVRTC which is part of the runtime image, so we
# do not need the devel image (that base alone is ~5 GB and dominated
# the 7.55 GB total of the previous build, blowing past the vastai
# image-pull budget).
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
python3-venv \
python3-pip \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Install tinygrad and numpy
RUN python3 -m pip install --no-cache-dir --break-system-packages \
tinygrad==0.12.0 \
numpy
# Copy the pipeline-parallel binaries and tinygrad worker
# Build context should be the workspace root:
# docker build -f examples/pipeline-parallel-inference/Dockerfile -t <tag> .
COPY examples/pipeline-parallel-inference/target/release/pp-gpu-node /usr/local/bin/pp-gpu-node
COPY examples/pipeline-parallel-inference/target/release/pp-smoke-run /usr/local/bin/pp-smoke-run
COPY examples/pipeline-parallel-inference/pp_tinygrad_worker.py /usr/local/share/pp_tinygrad_worker.py
# Enable CUDA backend for tinygrad (override with -e DEV=CPU for CPU runs)
ENV CUDA=1
ENV WORKER_SCRIPT=/usr/local/share/pp_tinygrad_worker.py
CMD ["pp-gpu-node"]