Skip to content

Add Mega-Sam image #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions .github/workflows/cw-mega-sam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_dispatch:
inputs:
base-image:
description: "Base image to use"
required: true
commit:
description: "Commit of Mega-sam to include"
required: true
push:
paths:
- "cw-mega-sam/**"
- ".github/workflows/cw-mega-sam.yml"
- ".github/workflows/build.yml"

jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
image-name: cw-mega-sam
folder: cw-mega-sam
build-args: |
BASE_IMAGE=${{ inputs.base-image || 'ghcr.io/coreweave/ml-containers/torch-extras:es-actions-68fbfd1-nccl-cuda12.4.1-ubuntu22.04-nccl2.25.1-1-torch2.6.0-vision0.21.0-audio2.6.0-abi0'}}
COMMIT=${{ inputs.commit || 'main'}}
23 changes: 23 additions & 0 deletions cw-mega-sam/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ARG BASE_IMAGE
FROM $BASE_IMAGE

RUN mkdir -p /work
COPY ./cuda124.patch /work/cuda124.patch
COPY ./requirements.txt /work/requirements.txt

RUN pip install -r /work/requirements.txt
RUN rm /work/requirements.txt

ARG COMMIT
RUN cd /work && git clone --recursive https://github.com/mega-sam/mega-sam && \
cd mega-sam && \
git checkout ${COMMIT}
RUN cd /work/mega-sam && ls -la
RUN cd /work/mega-sam && patch -p2 < /work/cuda124.patch



ENTRYPOINT /work
CMD echo "Hello! You should only need to run python setup.py install from the /work/mega-sam/base directory."


Loading
Loading