Use PyWorker SDK (#67)

* Change PyWorker to Worker SDK
* Moved /lib to vast-sdk (https://github.com/vast-ai/vast-sdk)
This commit is contained in:
LucasArmandVast authored and GitHub committed 2025-12-15 19:33:03 -08:00
1 parent 2ce741a8b7
commit 4380d98c01
54 files changed
+1622 -4626

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
# Where did the PyWorker code go?
We have moved the PyWorker source code into the `vastai-sdk` Python SDK.
You can install it with
```
pip install vastai-sdk
```
All of the source code can be found here:
https://github.com/vast-ai/vast-sdk
And can be imported from vastai.serverless.server.lib
Serverless instances automatically run the start_server.sh script, which installs the vastai-sdk.
This is how the PyWorker source code makes it onto your serverless instances.
You provide a worker.py file in your PYWORKER_REPO, and the start_server.sh will
create and run a PyWorker according to your configuration defined in the file.
While you can still create and run PyWorkers for serverless using your old PyWorker code,
we **strongly** encourage you to use the new worker.py configuration method, since
we can guarantee backwards compatibility for all your worker definitions. No more forking pyworker :)
If you encounter and issues with using PyWorker, please create a GitHub issue and we will be happy to assist.