Skip to content

Commit ffab57d

Browse files
authored
fix: choose cuda arthitectures based on cuda version (#463)
1 parent e5f18d9 commit ffab57d

30 files changed

+234
-154
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ WORKDIR /app
55

66
# copy artifacts
77
COPY /app ./
8-
COPY ./scripts/download_hf_models.py download_hf_models.py
9-
COPY ./scripts/entrypoint.sh entrypoint.sh
8+
COPY .ci/scripts/download_hf_models.py download_hf_models.py
9+
COPY .ci/scripts/entrypoint.sh entrypoint.sh
1010

1111
# install python3 and pip3
1212
RUN apt-get update -q -y && \
@@ -27,5 +27,3 @@ EXPOSE 9999
2727

2828
# start the server
2929
ENTRYPOINT [ "/app/entrypoint.sh" ]
30-
31-
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ install_almalinux() {
4242
libtool \
4343
unzip \
4444
automake
45-
45+
4646
# Cleanup
4747
yum clean all
4848
}
@@ -59,4 +59,4 @@ case "$ID" in
5959
echo "Unable to determine OS..."
6060
exit 1
6161
;;
62-
esac
62+
esac
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ cp ./ccache-${CCACHE_VERSION}-linux-x86_64/ccache /usr/bin/ccache
1313
popd
1414

1515
# set max cache size to 25GiB
16-
/usr/bin/ccache -M 25Gi
16+
/usr/bin/ccache -M 25Gi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,4 @@ do
296296
;;
297297
esac
298298
shift
299-
done
299+
done
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -ex
44

55
[ -n "$GCC_VERSION" ]
66

7-
install_ubuntu() {
7+
install_ubuntu() {
88
# Need the official toolchain repo to get alternate packages
99
add-apt-repository ppa:ubuntu-toolchain-r/test
1010
apt-get update
@@ -29,4 +29,4 @@ case "$ID" in
2929
echo "Unable to determine OS..."
3030
exit 1
3131
;;
32-
esac
32+
esac
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ pushd /tmp
1414
wget --no-verbose --output-document=ninja-linux.zip "$url"
1515
unzip ninja-linux.zip -d /usr/local/bin
1616
rm -f ninja-linux.zip
17-
popd
17+
popd

0 commit comments

Comments
 (0)