-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
83 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# NOTE: make sure CUDA versions match across these variables | ||
BASE_IMAGE = ghcr.io/allenai/pytorch:2.5.1-cuda12.1-python3.11-v2024.10.29 | ||
CUDA_TOOLKIT_VERSION = 12.1.0 | ||
TORCH_CUDA_VERSION = 121 | ||
CUDA_VERSION = 12.1 | ||
TORCH_CUDA_VERSION = $(shell echo $(CUDA_VERSION) | tr -d .) | ||
BASE_BUILD_IMAGE = pytorch/pytorch:2.5.1-cuda$(CUDA_VERSION)-cudnn9-devel | ||
BASE_RUNTIME_IMAGE = pytorch/pytorch:2.5.1-cuda$(CUDA_VERSION)-cudnn9-runtime | ||
|
||
# NOTE: when upgrading the nightly version you also need to upgrade the torch version specification | ||
# in 'pyproject.toml' to include that nightly version. | ||
NIGHTLY_VERSION = "2.6.0.dev20241009+cu121" | ||
TORCHAO_VERSION = "torchao==0.5.0" | ||
NIGHTLY_VERSION = "2.6.0.dev20241009+cu$(TORCH_CUDA_VERSION)" | ||
TORCHAO_VERSION = "0.5.0" | ||
MEGABLOCKS_VERSION = "megablocks[gg] @ git+https://[email protected]/epwalsh/megablocks.git@epwalsh/deps" | ||
FLASH_ATTN_VERSION = "2.6.3" | ||
|
||
VERSION = $(shell python src/olmo_core/version.py) | ||
VERSION_SHORT = $(shell python src/olmo_core/version.py short) | ||
|
@@ -49,9 +51,10 @@ build : | |
stable-image : | ||
docker build -f src/Dockerfile \ | ||
--build-arg BUILDKIT_INLINE_CACHE=1 \ | ||
--build-arg BASE=$(BASE_IMAGE) \ | ||
--build-arg CUDA_TOOLKIT_VERSION=$(CUDA_TOOLKIT_VERSION) \ | ||
--build-arg BASE_BUILD=$(BASE_BUILD_IMAGE) \ | ||
--build-arg BASE_RUNTIME=$(BASE_RUNTIME_IMAGE) \ | ||
--build-arg TORCH_CUDA_VERSION=$(TORCH_CUDA_VERSION) \ | ||
--build-arg FLASH_ATTN_VERSION=$(FLASH_ATTN_VERSION) \ | ||
--build-arg MEGABLOCKS_VERSION=$(MEGABLOCKS_VERSION) \ | ||
--build-arg TORCHAO_VERSION=$(TORCHAO_VERSION) \ | ||
--target stable \ | ||
|
@@ -63,9 +66,10 @@ stable-image : | |
nightly-image : | ||
docker build -f src/Dockerfile \ | ||
--build-arg BUILDKIT_INLINE_CACHE=1 \ | ||
--build-arg BASE=$(BASE_IMAGE) \ | ||
--build-arg CUDA_TOOLKIT_VERSION=$(CUDA_TOOLKIT_VERSION) \ | ||
--build-arg BASE_BUILD=$(BASE_BUILD_IMAGE) \ | ||
--build-arg BASE_RUNTIME=$(BASE_RUNTIME_IMAGE) \ | ||
--build-arg TORCH_CUDA_VERSION=$(TORCH_CUDA_VERSION) \ | ||
--build-arg FLASH_ATTN_VERSION=$(FLASH_ATTN_VERSION) \ | ||
--build-arg MEGABLOCKS_VERSION=$(MEGABLOCKS_VERSION) \ | ||
--build-arg TORCHAO_VERSION=$(TORCHAO_VERSION) \ | ||
--build-arg NIGHTLY_VERSION=$(NIGHTLY_VERSION) \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters