Skip to content

Commit 3644b44

Browse files
authored
[EN]-AI training first ML model
Some grammar, code, and consistency fixes.
1 parent 1d772e5 commit 3644b44

File tree

1 file changed

+7
-7
lines changed
  • pages/public_cloud/ai_machine_learning/training_tuto_01_train_your_first_model

1 file changed

+7
-7
lines changed

pages/public_cloud/ai_machine_learning/training_tuto_01_train_your_first_model/guide.en-gb.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ At the end of this tutorial, you will have learned to master **OVHcloud AI Train
2121
We will show you how you can:
2222

2323
- **Upload your data** to the OVHcloud Object Storage.
24-
- **Launch your training job and attach your data to its environment**, so your model can access to your data.
24+
- **Launch your training job and attach your data to its environment**, so your model can access your data.
2525
- **Monitor** the progress of your job.
2626
- **Download your model** in the cloud in order to retrieve it, once trained.
2727

@@ -66,9 +66,9 @@ Once your object container is created, you will see it in the Object Storage lis
6666

6767
> [!primary]
6868
>
69-
> Using the manager to upload your data can be very long. We recommend to use the OVHcloud AI CLI.
69+
> Using the manager to upload your data can be very long. We recommend using the OVHcloud AI CLI.
7070
>
71-
> In the OVHcloud Control Panel, you can upload files but not folders. For instance, you can upload a `.zip` file to optimize the bandwidth, then unzip it in your code. But if your dataset is already split in several folders, you must use the AI CLI to upload them.
71+
> In the OVHcloud Control Panel, you can upload files but not folders. For instance, you can upload a `.zip` file to optimize the bandwidth, then unzip it in your code. But if your dataset is already split into several folders, you must use the AI CLI to upload them.
7272
>
7373
7474
#### 1.2 - Upload your data via CLI
@@ -124,10 +124,10 @@ Then, in the `Enter the Docker command` step, you can specify the command that a
124124

125125
- Example:
126126

127-
Assuming you have added your `main.py` file and your `requirements.txt` file to a container that you have linked to your job with `my_data` as your mount directory, you can then use:
127+
Assuming you have added your `train-first-model.py` file and your `requirements.txt` file to a container that you have linked to your job with `/workspace/my_data` as your mount directory, you can then use:
128128

129129
```console
130-
-- bash -c 'pip install -r /workspace/my_data/requirements.txt && python /workspace/my_data/cnn_classification_mode_dataset.py'
130+
-- bash -c 'pip install -r /workspace/my_data/requirements.txt && python /workspace/my_data/train-first-model.py'
131131
```
132132

133133
> [!primary]
@@ -172,12 +172,12 @@ Depending on your needs, you can select the `permission_mode` you want (Read-Onl
172172

173173
Otherwise, you can remove the --volume line, since it will not bring anything to your app.
174174

175-
To give you a real example, here is the command we will use to launch our job, assuming this time that our `dataset.zip` is contained in a `fashion_MNIST_dataset` container, with a `mount_directory` named `my_data`, and that our Python file and our `requirements.txt` file are in the `ovh/ai-training-examples` GitHub repository:
175+
To give you a real example, here is the command we will use to launch our job, assuming this time that our `my-dataset.zip` is contained in a `fashion_MNIST_dataset` container, with a `mount_directory` named `/workspace/my_data`, and that our Python file and our `requirements.txt` file are in the `ovh/ai-training-examples` GitHub repository:
176176

177177
```console
178178
ovhai job run ovhcom/ai-training-pytorch \
179179
--gpu 1 \
180-
--volume fashion_to_delete@GRA/:/workspace/my_data:RW \
180+
--volume fashion_MNIST_dataset@GRA/:/workspace/my_data:RW \
181181
--volume https://github.com/ovh/ai-training-examples.git:/workspace/github_repo:RO \
182182
-- bash -c 'pip install -r /workspace/github_repo/jobs/getting-started/train-first-model/requirements.txt && python /workspace/github_repo/jobs/getting-started/train-first-model/train-first-model.py'
183183
```

0 commit comments

Comments
 (0)