-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Use an official Python 3.12 runtime as a parent image
FROM python:3.12-slim
# Set the working directory
WORKDIR /app
# This tells Python to look in /app for the 'recml' package
ENV PYTHONPATH="${PYTHONPATH}:/app"
# This prevents the "MessageFactory" crash when using Protobuf
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
# This prevents the "Unable to register cuFFT/cuBLAS" log spam and initialization errors
ENV CUDA_VISIBLE_DEVICES=-1
# Install system tools
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Install standard requirements
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install -r ./requirements.txt
# Force install the specific protobuf version
RUN pip install "protobuf>=6.31.1"
# Install the latest jax-tpu-embedding wheel
COPY jax_tpu_embedding-0.1.0.dev20260226-cp312-cp312-manylinux_2_31_x86_64.whl ./
RUN pip install ./jax_tpu_embedding-0.1.0.dev20260226-cp312-cp312-manylinux_2_31_x86_64.whl
# Copy the current directory contents into the container
COPY . /app
# Default command to run the training script
CMD ["python", "recml/examples/dlrm_experiment_test.py"]