Skip to content

Commit 08be919

Browse files
authored
.fine tuning (OpenAgentsInc#13)
1 parent e6e08c0 commit 08be919

7 files changed

+15
-9
lines changed

ai_worker/main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,10 @@ async def run_ws(self):
352352
self.stopped = True
353353

354354
async def run_one(self):
355-
req_str = await self.ws_recv()
356355
event = None
356+
req_str = None
357357
try:
358+
req_str = await self.ws_recv()
358359
req = Req.model_validate_json(req_str)
359360
model = req.openai_req.get("model")
360361

ai_worker/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '0.2.0'
1+
VERSION = '0.2.3'

build-bin.sh

+7
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ python build-version.py
3636

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

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+
3946
deactivate

publish-github.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ fi
2929

3030
rm -rf bin
3131
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]"

pyinstaller.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/bash
22

3+
rm -rf dist/gputopia-worker-$1
4+
35
pyinstaller $2 --name gputopia-worker-$1 --additional-hooks-dir=./hooks ai_worker/__main__.py

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ai-worker"
3-
version = "0.2.1"
3+
version = "0.2.3"
44
description = "api server that posts capabilities, and accepts jobs"
55
authors = ["erik aronesty <[email protected]>"]
66
license = "MIT"

upload.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ fi
77

88
pushd dist
99
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
1511
done
1612
popd

0 commit comments

Comments
 (0)