Skip to content

Commit 79c4737

Browse files
adding readme
1 parent 4181577 commit 79c4737

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Quickstart
2+
3+
## Installation
4+
5+
Install this library from PiPy `pip3 install pymc-server`
6+
7+
### Setting up a cloud: Google Cloud
8+
9+
1. Run `pymcs check` to see if you already have credentials setup. If you see a green checkmark for GCP (Google Cloud Platform), skip to the next section
10+
2. Install the google cloud SDK and authenticate.
11+
```bash
12+
conda install -c conda-forge google-cloud-sdk
13+
gcloud init
14+
15+
# Run this if you don't have a credentials file.
16+
# This will generate ~/.config/gcloud/application_default_credentials.json.
17+
gcloud auth application-default login
18+
```
19+
> Tip:
20+
> If you are using multiple GCP projects, list all the projects by gcloud projects list and activate one by gcloud config set project <PROJECT_ID> (see GCP docs).
21+
22+
3. Follow the link to Google and authorize the Google Cloud SDK. This will create and persist credentials on your local computer. Running pymc-server commands via Google Cloud will introduce cost to your Google Cloud bill according to the VMs provisioned by your configuration (see next section).
23+
24+
![Gcloud SDK Auth](./assets/gcloud_auth.png)
25+
26+
Follow through the rest of the GCP configuration in your terminal.
27+
28+
> Tip:
29+
> You can see a global status of active VMs by running `pymcs status`
30+
31+
32+
33+
### Status of your deployments
34+
35+
Running `pymcs status` all your deployments are checked and displayed in a table.
36+
37+
```bash
38+
❯ pymcs status
39+
Clusters
40+
NAME LAUNCHED RESOURCES STATUS AUTOSTOP COMMAND
41+
tc 5 months ago 1x Kubernetes(2CPU--2GB) UP - pymcs launch -c tc hello_sk...
42+
43+
Managed jobs
44+
No in-progress managed jobs. (See: pymcs jobs -h)
45+
46+
Services
47+
No live services. (See: pymcs serve -h)
48+
```

assets/gcloud_auth.png

264 KB
Loading

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ nutpie
33
lifetimes
44
numba
55
ray[default]
6+
skypilot
7+
skypilot[gcp]

0 commit comments

Comments
 (0)