Skip to content

Commit b1e3c0a

Browse files
committed
Added debugpy for remote debugging experiment
1 parent 8ca8fa2 commit b1e3c0a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ FROM base AS pathways-tpu
100100

101101
ARG EXTRAS=
102102

103+
RUN uv pip install debugpy && uv cache clean
104+
EXPOSE 5678
103105
RUN uv pip install --prerelease=allow .[core,pathways-tpu] && uv cache clean
104106
RUN if [ -n "$EXTRAS" ]; then uv pip install .[$EXTRAS] && uv cache clean; fi
105107
COPY . .

axlearn/cloud/gcp/jobset_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def _build_container(self) -> Nested[Any]:
471471
dict(containerPort=8080), # Port for MXLA coordinator.
472472
dict(containerPort=8431), # Port to export TPU runtime metrics.
473473
dict(containerPort=self._load_balancer.target_port), # Port for load balancer.
474+
dict(containerPort=5678), # Port for debugger.
474475
],
475476
securityContext=dict(privileged=True),
476477
# TODO(markblee): Improve SIGTERM behavior for command.

0 commit comments

Comments
 (0)