Skip to content

Commit

Permalink
Merge branch 'lora-tuner' of github.com:ArcadeLabsInc/ai-worker into …
Browse files Browse the repository at this point in the history
…lora-tuner
  • Loading branch information
earonesty committed Oct 27, 2023
2 parents 38e8b0a + 92c0435 commit e6e08c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion build-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
gpu="$1"
arch="$2"
cmake="$3"
opts="--onefile"

if [ -z "$cmake" -o -z "$gpu" ]; then
echo usage build-bin.sh gpu arch "cmake-args"
Expand All @@ -12,6 +13,7 @@ fi
with_torch=""
if [ "$gpu" == "cuda-torch" ]; then
with_torch="--with torch"
opts=""
fi


Expand All @@ -32,6 +34,6 @@ CMAKE_ARGS="$cmake" FORCE_CMAKE=1 poetry install $with_torch

python build-version.py

./pyinstaller.sh $gpu-$arch
./pyinstaller.sh $gpu-$arch $opts

deactivate
2 changes: 1 addition & 1 deletion pyinstaller.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

pyinstaller --onefile --name gputopia-worker-$1 --additional-hooks-dir=./hooks ai_worker/__main__.py
pyinstaller $2 --name gputopia-worker-$1 --additional-hooks-dir=./hooks ai_worker/__main__.py
10 changes: 8 additions & 2 deletions upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ if ! aws sts get-caller-identity --query "Account"; then
fi


for f in dist/gputopia-worker-*; do
aws s3 cp $f s3://gputopia/bin/ --acl public-read
pushd dist
for f in gputopia-worker-*; do
if [ -d "$f" ]; then
aws s3 cp --recursive $f s3://gputopia/bin/$f --acl public-read
else
aws s3 cp $f s3://gputopia/bin/ --acl public-read
fi
done
popd

0 comments on commit e6e08c0

Please sign in to comment.