sky-atc
Creating a cluster
Create a cluster with a controller (currently max: 1) and optionally workers (all in a single region).
python cli.py create-cluster \
--region_tag gcp:us-central1-a
--controller_instance_type e2-standard-2 \
--worker_instance_type n1-standard-1 \
--num_workers 2
Add workers with different instance types or from different regions:
python cli.py add-worker --region_tag aws:us-west-1 --worker_instance_type g4dn.xlarge
Deploying an inference service
Create a deployment with:
kubectl --kubeconfig ~/.skyatc/skyatc/k3s.yaml apply -f kubernetes/deployment.yml
Create a service with:
kubectl --kubeconfig ~/.skyatc/skyatc/k3s.yaml apply -f kubernetes/service.yml
Once created, you can send requests with:
curl http://35.209.44.206:30153/generate \ ─╯
-d '{
"prompt": "San Francisco is a",
"use_beam_search": true,
"n": 4,
"temperature": 0
}'
Output:
{"text":["San Francisco is a pretty of for start, but I I is not a great place to work.","San Francisco is a very city to live in. \nI also a place to\n live.","San Francisco is a great place to live., but it's not the best place to live in","San Francisco is a city that. go and work. I a for everyone. work."]}%
Autoscaler
The autoscaler is a docker container that runs on the controller node. You can update it with the following:
cd ./cluster
sudo docker build -t sarahwooders/skyatc-autoscaler .
docker push sarahwooders/skyatc-autoscaler:latest
Metadata
Release files for skyatc 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skyatc-0.1.2.tar.gz | 100.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skyatc-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 136.8 kB
Release files / skyatc-0.1.2.tar.gz
| Download URL | skyatc-0.1.2.tar.gz |
|---|---|
| Size | 100.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42bbae8f2e9fd11e1741e813a419b067a106093560b929c762b7453aee6b422a
|
|
BLAKE2b-256 checksum How to use checksums |
b422ad54dfc7dfcb62f2985bc755e61a2683be1ce86bfe303f147afc35167602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.9.12 Darwin/22.6.0
|
Release files / skyatc-0.1.2-py3-none-any.whl
| Download URL | skyatc-0.1.2-py3-none-any.whl |
|---|---|
| Size | 36.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd2f0fb824fedeeed994b5f772660ec8e51e76ffd4176b1df34ba707997777f6
|
|
BLAKE2b-256 checksum How to use checksums |
f0395bb1bdc83f7111ff9e5d158b168f3d4b5b9dcf799787adab3e0cf7262ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.9.12 Darwin/22.6.0
|