Skip to content

Commit

Permalink
lets see if these build
Browse files Browse the repository at this point in the history
  • Loading branch information
neggles committed Jul 15, 2024
1 parent 943eb28 commit c6e46ec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-push-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,13 @@ jobs:
matrix:
target:
- base
- trt
cuda:
- cu121
- cu124
torch:
- torch220
- torch210
# include:
# - target: base
# cuda: cu121
# torch: torchnightly
- torch230
- torch240

steps:
- name: Checkout
Expand Down
41 changes: 23 additions & 18 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variable "IMAGE_NAMESPACE" {

variable TORCH_CUDA_ARCH_LIST {
# sorry pascal users but your cards are no good here
default = "7.0;7.5;8.0;8.6;8.9;9.0"
default = "7.5;8.0;8.6;8.9;9.0"
}

variable MAX_JOBS {
Expand Down Expand Up @@ -131,15 +131,20 @@ target "base" {
matrix = {
torch = [
{
version = "2.1.1"
version = "2.2.0"
index = "https://download.pytorch.org/whl"
xformers = "xformers>=0.0.22"
xformers = "xformers>=0.0.27"
},
{
version = "2.2.0"
index = "https://download.pytorch.org/whl"
xformers = "xformers>=0.0.24"
version = "2.3.0"
index = "https://pypi.org/simple"
xformers = "xformers>=0.0.27"
},
{
version = "2.4.0"
index = "https://download.pytorch.org/whl/test/cu124"
xformers = ""
}
],
cuda = [
{
Expand All @@ -158,10 +163,10 @@ target "base" {
with-trt = false
},
{
name = "cu121"
version = "12.1.1"
with-trt = true
}
name = "cu124"
version = "12.4.1"
with-trt = false
},
]
}
args = {
Expand All @@ -177,19 +182,19 @@ target "base" {
}

target xformers-wheel {
inherits = ["base-cu121-torch220"]
inherits = ["base-cu121-torch240"]
target = "xformers-wheel"
tags = [
repoImage("xformers", "v0.0.24", cudaName("12.1.1"), torchName("2.2.0"))
repoImage("xformers", "v0.0.27", cudaName("12.4.1"), torchName("2.4.0"))
]
args = {
XFORMERS_REPO = "https://github.com/neggles/xformers.git"
XFORMERS_REF = "tensorpods-v0.0.24"
XFORMERS_REF = "tensorpods-v0.0.27"
}
}

target local-torchrelease {
inherits = ["base-cu121-torch220"]
inherits = ["base-cu121-torch230"]
target = "xformers-binary"
tags = [
repoImage("base", cudaName("12.1.1"), torchName("2.2.0")),
Expand All @@ -198,8 +203,8 @@ target local-torchrelease {
args = {}
}

target coreweave-cu120-torch220 {
inherits = ["base-cu120-torch220"]
target coreweave-cu120-torch230 {
inherits = ["base-cu120-torch230"]
target = "xformers-binary"
args = {
TORCH_INDEX = "https://download.pytorch.org/whl/cu118"
Expand All @@ -208,8 +213,8 @@ target coreweave-cu120-torch220 {
}


target coreweave-cu121-torch220 {
inherits = ["base-cu121-torch220"]
target coreweave-cu124-torch230 {
inherits = ["base-cu124-torch230"]
target = "xformers-binary"
args = {
TORCH_INDEX = "https://pypi.org/simple"
Expand Down

0 comments on commit c6e46ec

Please sign in to comment.