Skip to content

Commit fffe926

Browse files
committed
feat(megatron): add initial megatron-lm image
1 parent bfe03aa commit fffe926

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/workflows/megatron.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
base-image:
5+
description: 'Base image to use'
6+
required: true
7+
push:
8+
paths:
9+
- "megatron/**"
10+
- ".github/workflows/megatron.yml"
11+
- ".github/workflows/build.yml"
12+
13+
14+
jobs:
15+
build:
16+
uses: ./.github/workflows/build.yml
17+
secrets: inherit
18+
with:
19+
image-name: megatron
20+
folder: megatron
21+
build-args: |
22+
BASE_IMAGE=${{ inputs.base-image || 'ghcr.io/coreweave/ml-containers/torch-extras:bfe03aa-nccl-cuda12.4.1-ubuntu22.04-nccl2.21.5-1-torch2.4.0-vision0.19.0-audio2.4.0'}}

megatron/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ARG BASE_IMAGE
2+
FROM $BASE_IMAGE
3+
4+
COPY requirements.txt /tmp/requirements.txt
5+
6+
RUN python3 -m pip install -U --no-cache-dir \
7+
-r /tmp/requirements.txt \
8+
&& rm /tmp/requirements.txt

megatron/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pyyaml==6.0.2
2+
regex==2024.9.11
3+
transformers==4.45.2
4+
triton==3.0.0

0 commit comments

Comments
 (0)