No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skyatc-0.1.2.tar.gz.
File metadata
- Download URL: skyatc-0.1.2.tar.gz
- Upload date:
- Size: 100.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.9.12 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42bbae8f2e9fd11e1741e813a419b067a106093560b929c762b7453aee6b422a
|
|
| MD5 |
3a047efa41a686e39d5f915b857eba53
|
|
| BLAKE2b-256 |
b422ad54dfc7dfcb62f2985bc755e61a2683be1ce86bfe303f147afc35167602
|
File details
Details for the file skyatc-0.1.2-py3-none-any.whl.
File metadata
- Download URL: skyatc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.9.12 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd2f0fb824fedeeed994b5f772660ec8e51e76ffd4176b1df34ba707997777f6
|
|
| MD5 |
7f81276ac3346766b63a485fa59e8457
|
|
| BLAKE2b-256 |
f0395bb1bdc83f7111ff9e5d158b168f3d4b5b9dcf799787adab3e0cf7262ae7
|