-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
50 lines (41 loc) · 1.07 KB
/
docker-bake.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
variable "REGISTRY" {
default = "docker.io"
}
variable "REGISTRY_USER" {
default = "ashleykza"
}
variable "APP" {
default = "llava"
}
variable "RELEASE" {
default = "1.7.0"
}
variable "CU_VERSION" {
default = "121"
}
variable "BASE_IMAGE_REPOSITORY" {
default = "ashleykza/runpod-base"
}
variable "BASE_IMAGE_VERSION" {
default = "1.7.0"
}
variable "CUDA_VERSION" {
default = "12.1.1"
}
variable "TORCH_VERSION" {
default = "2.1.2"
}
target "default" {
dockerfile = "Dockerfile"
tags = ["${REGISTRY}/${REGISTRY_USER}/${APP}:${RELEASE}"]
args = {
RELEASE = "${RELEASE}"
BASE_IMAGE = "${BASE_IMAGE_REPOSITORY}:${BASE_IMAGE_VERSION}-cuda${CUDA_VERSION}-torch${TORCH_VERSION}"
INDEX_URL = "https://download.pytorch.org/whl/cu${CU_VERSION}"
TORCH_VERSION = "${TORCH_VERSION}+cu${CU_VERSION}"
XFORMERS_VERSION = "0.0.23.post1"
LLAVA_COMMIT = "0b3b478e7cc8e55d7ca312ecd2ff5a90690d08d5"
LLAVA_MODEL = "liuhaotian/llava-v1.6-mistral-7b"
VENV_PATH = "/workspace/venvs/${APP}"
}
}