Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
169b955
Update Dockerfile for uv and pyproject.toml migration
Jan 30, 2026
2a0b7e9
Add google-generativeai to generative extra
Jan 30, 2026
4d7e495
Migrate generative.py to google-genai SDK
Jan 30, 2026
48de371
Revert "Migrate generative.py to google-genai SDK"
Jan 30, 2026
760a269
Pin torch<=2.8 and use prebuilt flash-attn wheel
Jan 30, 2026
6c2b7d4
Revert torch pin, build flash-attn from source
Jan 30, 2026
1a52d10
Remove flash-attn from Docker build
Jan 30, 2026
8943428
Restore flash-attn build from source
Jan 30, 2026
ebb9331
Add Linux platform marker to vllm for macOS compatibility
Jan 30, 2026
95f957d
Pin vllm on all platforms, add MAX_JOBS to flash-attn build
Jan 30, 2026
ada1326
Remove MAX_JOBS limit from flash-attn build
Jan 30, 2026
26314e5
Refactor Dockerfile to use uv sync for better layer caching
Jan 30, 2026
66661bc
Move flash-attn before source copy + add GHA layer caching
Jan 30, 2026
2f7f6fa
Split into two images: base (fast) and vllm (slow)
Jan 30, 2026
d624a96
Update docs for two-image setup and new extras
Jan 30, 2026
90d4a8f
Fix uv pip install with --system flag and code formatting
Jan 30, 2026
9ac21b8
Remove flash-attn from vllm image (vLLM bundles its own)
Jan 30, 2026
e8b4cd4
Update Dockerfile.vllm header comment
Jan 30, 2026
6ae1d61
Fix base image: downgrade torch after uv sync, use flash-attn 2.8.3
Jan 30, 2026
ffba9ae
Remove unused packages: openjdk, git-lfs, GNU parallel
Jan 30, 2026
d9ef779
Remove GHA layer caching from Docker builds
Jan 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,9 @@ on:
- 'rewardbench/**'
- 'scripts/**'
- 'Dockerfile'
- 'setup.py'
- 'pyproject.toml'
branches: [main]
# pull_request: # note, comment this out for running on every push
# # Also run on PRs that update the files in the image's directory (other than README).
# branches: [main]
# paths:
# - 'rewardbench/**'
# - 'scripts/**'
# - 'Dockerfile'
# - 'setup.py'
# workflow_dispatch: # This allows us to manually trigger a build through the GitHub UI.
workflow_dispatch: # This allows us to manually trigger a build through the GitHub UI.

env:
DOCKER_BUILDKIT: "1"
Expand Down
34 changes: 11 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,38 +50,26 @@ RUN apt-get -y install git-lfs
WORKDIR /stage/
ENV HF_HUB_ENABLE_HF_TRANSFER=1

RUN pip install --upgrade pip setuptools wheel
# designed for cuda 12.1
RUN pip3 install torch torchvision torchaudio
# If you need to use cuda 11.8, use this and the below vllm code for installing with cuda 11.8
# RUN pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
# Install vLLM with CUDA 11.8.
# RUN export VLLM_VERSION=0.6.1.post1
# RUN export PYTHON_VERSION=310
# RUN pip install https://github.com/vllm-project/vllm/releases/download/v${VLLM_VERSION}/vllm-${VLLM_VERSION}+cu118-cp${PYTHON_VERSION}-cp${PYTHON_VERSION}-manylinux1_x86_64.whl --extra-index-url https://download.pytorch.org/whl/cu118
# Install uv for fast, reliable package management
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"

# Install PyTorch (designed for cuda 12.1)
RUN uv pip install --system torch torchvision torchaudio

COPY rewardbench rewardbench
COPY scripts scripts
COPY setup.py setup.py
COPY pyproject.toml pyproject.toml
COPY Makefile Makefile
COPY README.md README.md
RUN pip install -e .[generative]
RUN uv pip install --system -e .[generative,v1]
Comment thread
natolambert marked this conversation as resolved.
Outdated
RUN chmod +x scripts/*

# this is just very slow
RUN pip install flash-attn==2.6.3 --no-build-isolation

# for olmo-instruct v1, weird install requirements
# RUN pip install ai2-olmo
# flash-attn for faster inference (slow build)
RUN uv pip install --system flash-attn==2.6.3 --no-build-isolation

# for better-pairRM
RUN pip install jinja2

# generative installs
RUN pip install anthropic
RUN pip install openai
RUN pip install together
RUN pip install google-generativeai
RUN uv pip install --system jinja2

# for interactive session
RUN chmod -R 777 /stage/
Loading