Skip to content

Commit

Permalink
Requested changes for quick-start Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria authored and openshift-merge-robot committed Sep 5, 2023
1 parent 4bcc5cf commit 3e707bc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Quick-Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ If you are working in an on-prem environment, and for the purposes of following
cluster_config = ClusterConfiguration(
name='jobtest',
namespace="default",
# machine_types = ["m4.xlarge", "g4dn.xlarge"]
num_workers=2,
min_cpus=1,
max_cpus=1,
Expand Down Expand Up @@ -184,6 +183,8 @@ We are going to use the CodeFlare SDK to submit batch jobs via TorchX, either to
First, let's begin by submitting to Ray, training a basic NN on the MNIST dataset:
The `mnist.py` file used comes from [here](https://github.com/opendatahub-io/distributed-workloads/blob/main/tests/resources/mnist.py), which is accessed in your jupyter notebook under `codeflare-sdk/demo-notebooks/guided-demos/mnist.py`
```python
jobdef = DDPJobDefinition(
name="mnisttest",
Expand All @@ -193,10 +194,16 @@ jobdef = DDPJobDefinition(
job = jobdef.submit(cluster)
```
Once the job is submitted you can follow it on the Ray dashboard using the following commands to output the job status directly into you're notebook:
Once the job is submitted you can follow it on the Ray dashboard using the following commands to output the job status directly into your notebook:
```python
cluster.cluster_dashboard_uri()
```
```python
job.status()
```
```python
job.logs()
```
Expand Down

0 comments on commit 3e707bc

Please sign in to comment.