Skip to content

Commit

Permalink
TransformerEngine Image Build (#1204)
Browse files Browse the repository at this point in the history
* install

* fix

* try chucks branch

* fix image

* pin

* fix lint

* revert image size

* remove verbose

* switch to 8wide

---------
  • Loading branch information
mvpatel2000 authored May 16, 2024
1 parent dc3212e commit e70891b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch: {}
jobs:
docker-build:
runs-on: mosaic-4wide
runs-on: mosaic-8wide
if: github.repository_owner == 'mosaicml'
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ ARG DEP_GROUPS
ADD https://raw.githubusercontent.com/mosaicml/llm-foundry/$BRANCH_NAME/setup.py setup.py
RUN rm setup.py

# Install TransformerEngine
RUN NVTE_FRAMEWORK=pytorch CMAKE_BUILD_PARALLEL_LEVEL=4 MAX_JOBS=4 pip install git+https://github.com/NVIDIA/TransformerEngine.git@05eb6deb31c1b48e9f4380d18fe95f3c38e84335

# Install and uninstall foundry to cache foundry requirements
RUN git clone -b $BRANCH_NAME https://github.com/mosaicml/llm-foundry.git
RUN pip install --no-cache-dir "./llm-foundry${DEP_GROUPS}"
Expand Down

0 comments on commit e70891b

Please sign in to comment.