Skip to content

Updates #1433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 27, 2025
Merged

Updates #1433

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Before you start, make sure:
=== "API"
Copy the following command to your terminal. Make sure to update the below parameters according to the comments. For more details, see [Workspaces API:](https://api-docs.run.ai/latest/tag/Workspaces)

```sh
```bash
curl -L 'https://<COMPANY-URL>/api/v1/workloads/workspaces' \ #<COMPANY-URL> is the link to the Run:ai user interface.
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \ #<TOKEN> is the API access token obtained in Step 1.
Expand All @@ -114,21 +114,20 @@ Before you start, make sure:
"spec": {
"command" : "start-notebook.sh",
"args" : "--NotebookApp.base_url=/${RUNAI_PROJECT}/${RUNAI_JOB_NAME} --NotebookApp.token=''",
"image": "jupyter/scipy-notebook",
"image": "gcr.io/run-ai-lab/pytorch-example-jupyter",
"exposedUrls": [
{
"container": 8888,
"toolType": "jupyter-notebook",
"toolName": "Jupyter"
}
],
"compute": {
"gpuDevicesRequest": 1
"gpuMemoryRequest": "4G",
"gpuMemoryLimit": "12G",
"largeShmRequest": true

},
"exposedUrls" : [
{
"container" : 8888,
"toolType": "jupyter-notebook", \ #toolType will show the Jupyter icon when connecting to the Jupyter tool via the user interface.
"toolName": "Jupyter" \ #toolName text will show when connecting to the Jupyter tool via the user interface.
}
]
"gpuDevicesRequest": 1,
"gpuMemoryRequest": "4G",
"gpuMemoryLimit": "12G",
"largeShmRequest": true
}
}
}'
```
Expand Down Expand Up @@ -172,7 +171,7 @@ Before you start, make sure:
=== "API"
Copy the following command to your terminal. Make sure to update the below parameters according to the comments. For more details, see [Workspaces API](https://api-docs.run.ai/latest/tag/Workspaces):

```sh
```bash
curl -L 'https://<COMPANY-URL>/api/v1/workloads/workspaces' \ #<COMPANY-URL> is the link to the Run:ai user interface.
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \ #<TOKEN> is the API access token obtained in Step 1.
Expand All @@ -183,21 +182,20 @@ Before you start, make sure:
"spec": {
"command" : "start-notebook.sh",
"args" : "--NotebookApp.base_url=/${RUNAI_PROJECT}/${RUNAI_JOB_NAME} --NotebookApp.token=''",
"image": "jupyter/scipy-notebook",
"image": "gcr.io/run-ai-lab/pytorch-example-jupyter",
"exposedUrls": [
{
"container": 8888,
"toolType": "jupyter-notebook",
"toolName": "Jupyter"
}
],
"compute": {
"gpuDevicesRequest": 1
"gpuMemoryRequest": "4G",
"gpuMemoryLimit": "12G",
"largeShmRequest": true

},
"exposedUrls" : [
{
"container" : 8888,
"toolType": "jupyter-notebook", \ #toolType will show the Jupyter icon when connecting to the Jupyter tool via the user interface.
"toolName": "Jupyter" \ #toolName text will show when connecting to the Jupyter tool via the user interface.
}
]
"gpuDevicesRequest": 1,
"gpuMemoryRequest": "4G",
"gpuMemoryLimit": "12G",
"largeShmRequest": true
}
}
}'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,20 @@ Before you start, make sure:
"spec": {
"command" : "start-notebook.sh",
"args" : "--NotebookApp.base_url=/${RUNAI_PROJECT}/${RUNAI_JOB_NAME} --NotebookApp.token=''",
"image": "jupyter/scipy-notebook",
"image": "jupyter/base-notebook",
"exposedUrls": [
{
"container": 8888,
"toolType": "jupyter-notebook",
"toolName": "Jupyter"
}
],
"compute": {
"gpuDevicesRequest": 1
"gpuRequestType": "portion",
"gpuPortionRequest": 0.1

},
"exposedUrls" : [
{
"container" : 8888,
"toolType": "jupyter-notebook", \ #toolType will show the Jupyter icon when connecting to the Jupyter tool via the user interface.
"toolName": "Jupyter" \ #toolName text will show when connecting to the Jupyter tool via the user interface.
}
]
"gpuDevicesRequest": 1,
"gpuRequestType": "portion",
"gpuPortionRequest": 0.1

}
}
}'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ Before you start, make sure:
}
],
"compute": {
"gpuDevicesRequest": 1
"gpuDevicesRequest": 1,
"gpuRequestType": "portion",
"gpuPortionRequest": 0.1
"gpuPortionRequest": 0.1,
"gpuPortionLimit": 1,
"cpuCoreRequest":0.2,
"cpuMemoryRequest": "200M",
Expand Down Expand Up @@ -172,9 +172,9 @@ Before you start, make sure:
}
],
"compute": {
"gpuDevicesRequest": 1
"gpuDevicesRequest": 1,
"gpuRequestType": "portion",
"gpuPortionRequest": 0.1
"gpuPortionRequest": 0.1,
"gpuPortionLimit": 1,
"cpuCoreRequest":0.2,
"cpuMemoryRequest": "200M",
Expand Down
2 changes: 1 addition & 1 deletion docs/Researcher/workloads/workspaces/quickstart-jupyter.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Before you start, make sure:

## Step 2: Submitting a workspace

=== "UI
=== "UI"
1. Go to the Workload manager → Workloads
2. Select __+NEW WORKLOAD__ and then __Workspace__
3. Select under which __cluster__ to create the workload
Expand Down