Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
flash-attention
Commits
565615c6
"magic_pdf/vscode:/vscode.git/clone" did not exist on "25a0fd06651525ccafe29ae988bb350b1f5bc841"
Commit
565615c6
authored
Aug 10, 2023
by
Pierce Freeman
Browse files
Isolate 2.0.0 & cuda12
parent
9af165c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
3 deletions
+42
-3
.github/workflows/cuda/cu120-Linux-env.sh
.github/workflows/cuda/cu120-Linux-env.sh
+9
-0
.github/workflows/cuda/cu120-Linux.sh
.github/workflows/cuda/cu120-Linux.sh
+18
-0
.github/workflows/publish.yml
.github/workflows/publish.yml
+15
-3
No files found.
.github/workflows/cuda/cu120-Linux-env.sh
0 → 100644
View file @
565615c6
#!/bin/bash
CUDA_HOME
=
/usr/local/cuda-12.0
LD_LIBRARY_PATH
=
${
CUDA_HOME
}
/lib64:
${
LD_LIBRARY_PATH
}
PATH
=
${
CUDA_HOME
}
/bin:
${
PATH
}
export
FORCE_CUDA
=
1
export
TORCH_CUDA_ARCH_LIST
=
"3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
export
CUDA_HOME
=
/usr/local/cuda-12.0
\ No newline at end of file
.github/workflows/cuda/cu120-Linux.sh
0 → 100644
View file @
565615c6
#!/bin/bash
# Strip the periods from the version number
OS_VERSION
=
$(
echo
$(
lsb_release
-sr
)
|
tr
-d
.
)
OS
=
ubuntu
${
OS_VERSION
}
wget
-nv
https://developer.download.nvidia.com/compute/cuda/repos/
${
OS
}
/x86_64/cuda-
${
OS
}
.pin
sudo mv
cuda-
${
OS
}
.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget
-nv
https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda-repo-
${
OS
}
-12-0-local_12
.0.0-525.60.13-1_amd64.deb
sudo
dpkg
-i
cuda-repo-
${
OS
}
-12-0-local_12
.0.0-525.60.13-1_amd64.deb
sudo cp
/var/cuda-repo-
${
OS
}
-12-0-local
/cuda-
*
-keyring
.gpg /usr/share/keyrings/
sudo
apt-get
-qq
update
sudo
apt
install
cuda cuda-nvcc-12-0 cuda-libraries-dev-12-0
sudo
apt clean
rm
-f
https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda-repo-
${
OS
}
-12-0-local_12
.0.0-525.60.13-1_amd64.deb
.github/workflows/publish.yml
View file @
565615c6
...
@@ -40,9 +40,12 @@ jobs:
...
@@ -40,9 +40,12 @@ jobs:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
os
:
[
ubuntu-20.04
,
ubuntu-22.04
]
os
:
[
ubuntu-20.04
,
ubuntu-22.04
]
python-version
:
[
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
#python-version: ['3.7', '3.8', '3.9', '3.10']
torch-version
:
[
'
1.11.0'
,
'
1.12.0'
,
'
1.13.0'
]
#torch-version: ['1.11.0', '1.12.0', '1.13.0', '2.0.1']
cuda-version
:
[
'
113'
,
'
116'
,
'
117'
]
#cuda-version: ['113', '116', '117', '120']
python-version
:
[
'
3.10'
]
torch-version
:
[
'
2.0.1'
]
cuda-version
:
[
'
120'
]
exclude
:
exclude
:
# Nvidia only supports 11.7+ for ubuntu-22.04
# Nvidia only supports 11.7+ for ubuntu-22.04
-
os
:
ubuntu-22.04
-
os
:
ubuntu-22.04
...
@@ -57,9 +60,18 @@ jobs:
...
@@ -57,9 +60,18 @@ jobs:
# Torch only builds cuda 116 for 1.12.0+
# Torch only builds cuda 116 for 1.12.0+
-
cuda-version
:
'
116'
-
cuda-version
:
'
116'
torch-version
:
'
1.11.0'
torch-version
:
'
1.11.0'
# Torch only builds cuda 120 for 2.0.1+
-
cuda-version
:
'
120'
torch-version
:
'
1.11.0'
-
cuda-version
:
'
120'
torch-version
:
'
1.12.0'
-
cuda-version
:
'
120'
torch-version
:
'
1.13.0'
# 1.13.0 drops support for cuda 11.3
# 1.13.0 drops support for cuda 11.3
-
cuda-version
:
'
113'
-
cuda-version
:
'
113'
torch-version
:
'
1.13.0'
torch-version
:
'
1.13.0'
-
cuda-version
:
'
113'
torch-version
:
'
2.0.1'
# Fails with "Validation Error" on artifact upload
# Fails with "Validation Error" on artifact upload
-
cuda-version
:
'
117'
-
cuda-version
:
'
117'
torch-version
:
'
1.13.0'
torch-version
:
'
1.13.0'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment