Skip to content

Commit e5722bc

Browse files
bene2k1Laure-di
authored andcommitted
chore(gpu): docs content review 2025-01-20 (scaleway#4249)
1 parent db1abd1 commit e5722bc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

bare-metal/elastic-metal/reference-content/shared-responsibility-model.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ content:
77
paragraph: Learn about the shared responsibility model for Scaleway Bare Metal services, outlining the roles of Scaleway and users in managing server security, backups, and compliance.
88
tags: bare metal shared responsibility
99
dates:
10-
validation: 2024-07-18
10+
validation: 2025-01-20
1111
posted: 2024-07-18
1212
categories:
1313
- bare-metal

compute/gpu/how-to/use-gpu-with-docker.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ content:
77
paragraph: Learn how to efficiently access and use GPUs with Docker on Scaleway GPU Instances.
88
tags: gpu docker
99
dates:
10-
validation: 2024-07-16
10+
validation: 2025-01-20
1111
posted: 2022-03-25
1212
categories:
1313
- compute
@@ -49,7 +49,7 @@ We recommend that you map volumes from your GPU Instance to your Docker containe
4949

5050
You can map directories from your GPU Instance's Local Storage to your Docker container, using the `-v <local_storage>:<container_mountpoint>` flag. See the example command below:
5151

52-
```
52+
```bash
5353
docker run -it --rm -v /root/mydata/:/workspace nvidia/cuda:11.2.1-runtime-ubuntu20.04
5454

5555
# use the `exit` command for exiting this docker container
@@ -65,7 +65,7 @@ In the above example, everything in the `/root/mydata` directory on the Instance
6565

6666
In the following example, we create a directory called `my-data`, create a "Hello World" text file inside that directory, then use the `chown` command to set appropriate ownership for the directory before running the Docker container and specifying the mapped directories. The "Hello World" file is then available inside the Docker container:
6767

68-
```
68+
```bash
6969
mkdir -p /root/my-data/
7070
echo "Hello World" > /root/my-data/hello.txt
7171
chown -R 1000:100 /root/my-data
@@ -153,22 +153,22 @@ The possible values of the `NVIDIA_VISIBLE_DEVICES` variable are:
153153
### Example commands
154154

155155
* Starting a GPU-enabled CUDA container (using `--gpus`)
156-
```sh
156+
```bash
157157
docker run --runtime=nvidia -it --rm --gpus all nvidia/cuda:11.2.1-runtime-ubuntu20.04 nvidia-smi
158158
```
159159

160160
* Starting a GPU-enabled container using `NVIDIA_VISIBLE_DEVICES` and specify the nvidia runtime
161-
```
161+
```bash
162162
docker run --runtime=nvidia -it --rm --e NVIDIA_VISIBLE_DEVICES=all nvidia/cuda:11.2.1-runtime-ubuntu20.04 nvidia-smi
163163
```
164164

165165
* Starting a GPU-enabled [Tensorflow](https://www.tensorflow.org/) container with a Jupyter notebook using `NVIDIA_VISIBLE_DEVICES` and map the port `88888` to access the web GUI:
166-
```
166+
```bash
167167
docker run --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all -it --rm -p 8888:8888 tensorflow/tensorflow:latest-gpu-jupyter
168168
```
169169

170170
* Query the GPU UUID of the first GPU using nvidia-smi and then specifying that to the container:
171-
```
171+
```bash
172172
nvidia-smi -i 0 --query-gpu=uuid --format=csv
173173
uuid
174174
GPU-18a3e86f-4c0e-cd9f-59c3-55488c4b0c24

compute/gpu/how-to/use-pipenv.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ content:
77
paragraph: This guide explains how to use Pipenv to create and manage virtual environments for Python projects on Scaleway GPU Instances.
88
tags: Pipenv, virtual environment, GPU, Python
99
dates:
10-
validation: 2024-07-17
10+
validation: 2025-01-20
1111
posted: 2022-03-25
1212
categories:
1313
- compute

compute/gpu/reference-content/docker-images.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ content:
77
paragraph: Discover detailed information about Scaleway's Docker images for AI development.
88
tags: docker docker-image tensorflow pytorch jax rapids
99
dates:
10-
validation: 2024-07-16
10+
validation: 2025-01-20
1111
posted: 2022-03-25
1212
categories:
1313
- compute

0 commit comments

Comments
 (0)