File tree 3 files changed +24
-10
lines changed
3 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -69,22 +69,22 @@ jobs:
69
69
strategy :
70
70
matrix :
71
71
include :
72
- - cuda : cu118
72
+ - cuda : 118
73
73
cuda_version : 11.8.0
74
74
python_version : " 3.9"
75
75
pytorch : 2.0.1
76
76
axolotl_extras :
77
- - cuda : cu118
77
+ - cuda : 118
78
78
cuda_version : 11.8.0
79
79
python_version : " 3.10"
80
80
pytorch : 2.0.1
81
81
axolotl_extras :
82
- - cuda : cu118
82
+ - cuda : 118
83
83
cuda_version : 11.8.0
84
84
python_version : " 3.9"
85
85
pytorch : 2.0.1
86
86
axolotl_extras : gptq
87
- - cuda : cu117
87
+ - cuda : 117
88
88
cuda_version : 11.7.1
89
89
python_version : " 3.9"
90
90
pytorch : 1.13.1
@@ -110,8 +110,9 @@ jobs:
110
110
with :
111
111
context : .
112
112
build-args : |
113
- BASE_TAG=${{ github.ref_name }}-py${{ matrix.python_version }}-${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
113
+ BASE_TAG=${{ github.ref_name }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
114
+ CUDA=${{ matrix.cuda }}
114
115
file : ./docker/Dockerfile-runpod
115
116
push : ${{ github.event_name != 'pull_request' }}
116
- tags : ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
117
+ tags : ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu ${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
117
118
labels : ${{ steps.metadata.outputs.labels }}
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ FROM winglian/axolotl-base:$BASE_TAG
3
3
4
4
ARG TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6+PTX"
5
5
ARG AXOLOTL_EXTRAS=""
6
+ ARG CUDA="118"
7
+ ENV BNB_CUDA_VERSION=$CUDA
6
8
7
9
RUN apt-get update && \
8
10
apt-get install -y vim curl
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- echo $PUBLIC_KEY >> ~ /.ssh/authorized_keys
4
- chmod 700 -R ~ /.ssh
3
+ # Export specific ENV variables to /etc/rp_environment
4
+ echo " Exporting environment variables..."
5
+ printenv | grep -E ' ^RUNPOD_|^PATH=|^_=' | sed ' s/^\(.*\)=\(.*\)$/export \1="\2"/' >> /etc/rp_environment
6
+ echo ' source /etc/rp_environment' >> ~ /.bashrc
5
7
6
- # Start the SSH service in the background
7
- service ssh start
8
+ if [[ $PUBLIC_KEY ]]
9
+ then
10
+ mkdir -p ~ /.ssh
11
+ chmod 700 ~ /.ssh
12
+ echo $PUBLIC_KEY >> ~ /.ssh/authorized_keys
13
+ chmod 700 -R ~ /.ssh
14
+ # Start the SSH service in the background
15
+ service ssh start
16
+ else
17
+ echo " No PUBLIC_KEY ENV variable provided, not starting openSSH daemon"
18
+ fi
8
19
9
20
# Execute the passed arguments (CMD)
10
21
exec " $@ "
You can’t perform that action at this time.
0 commit comments