File tree 7 files changed +15
-9
lines changed
7 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -352,9 +352,10 @@ async def run_ws(self):
352
352
self .stopped = True
353
353
354
354
async def run_one (self ):
355
- req_str = await self .ws_recv ()
356
355
event = None
356
+ req_str = None
357
357
try :
358
+ req_str = await self .ws_recv ()
358
359
req = Req .model_validate_json (req_str )
359
360
model = req .openai_req .get ("model" )
360
361
Original file line number Diff line number Diff line change 1
- VERSION = '0.2.0 '
1
+ VERSION = '0.2.3 '
Original file line number Diff line number Diff line change @@ -36,4 +36,11 @@ python build-version.py
36
36
37
37
./pyinstaller.sh $gpu -$arch $opts
38
38
39
+ if [ " $gpu " == " cuda-torch" ]; then
40
+ pushd dist
41
+ tar cvf - gputopia-worker-$gpu -$arch / | pigz -9 - > gputopia-worker-$gpu -$arch .tar.gz
42
+ rm -rf gputopia-worker-$gpu -$arch /
43
+ popd
44
+ fi
45
+
39
46
deactivate
Original file line number Diff line number Diff line change 29
29
30
30
rm -rf bin
31
31
aws s3 sync " s3://gputopia/bin/" bin/
32
- githubrelease release arcadelabsinc/workerbee create " $version " --publish --name " gputopia-worker-$version " " bin/*"
32
+ githubrelease release arcadelabsinc/workerbee create " $version " --publish --name " gputopia-worker-$version " " bin/*[!z] "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ rm -rf dist/gputopia-worker-$1
4
+
3
5
pyinstaller $2 --name gputopia-worker-$1 --additional-hooks-dir=./hooks ai_worker/__main__.py
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " ai-worker"
3
- version = " 0.2.1 "
3
+ version = " 0.2.3 "
4
4
description = " api server that posts capabilities, and accepts jobs"
5
5
authors = [
" erik aronesty <[email protected] >" ]
6
6
license = " MIT"
Original file line number Diff line number Diff line change 7
7
8
8
pushd dist
9
9
for f in gputopia-worker-* ; do
10
- if [ -d " $f " ]; then
11
- aws s3 cp --recursive $f s3://gputopia/bin/$f --acl public-read
12
- else
13
- aws s3 cp $f s3://gputopia/bin/ --acl public-read
14
- fi
10
+ aws s3 cp $f s3://gputopia/bin/ --acl public-read
15
11
done
16
12
popd
You can’t perform that action at this time.
0 commit comments