File tree 8 files changed +76
-6
lines changed
8 files changed +76
-6
lines changed Original file line number Diff line number Diff line change 58
58
rev : v0.812
59
59
hooks :
60
60
- id : mypy
61
- exclude : " docs"
61
+ exclude : |-
62
+ (?x)(
63
+ ^examples
64
+ | ^docs
65
+ )
Original file line number Diff line number Diff line change 58
58
rev : v0.812
59
59
hooks :
60
60
- id : mypy
61
- exclude : " docs"
61
+ exclude : |-
62
+ (?x)(
63
+ ^examples
64
+ | ^docs
65
+ )
Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ odl get CamVid -d data
20
20
tar -xzvf data/CamVid/raw/CamVid.tar.gz.00 -C ./data
21
21
```
22
22
23
- ## Run the example
23
+ ## Run the Example
24
24
25
25
Single device training
26
26
27
27
``` bash
28
- python examples/segmentation/segmentation_training .py
28
+ python examples/segmentation/train .py
29
29
```
30
30
31
31
Distributed data parallel training
32
32
33
33
``` bash
34
- tochrun -nnodes 1 -nproc_per_node 8 examples/segmentation/segmentation_training .py --launcher pytorch
34
+ tochrun -nnodes 1 -nproc_per_node 8 examples/segmentation/train .py --launcher pytorch
35
35
```
Original file line number Diff line number Diff line change 4
4
"cell_type" : " markdown" ,
5
5
"metadata" : {},
6
6
"source" : [
7
- " # Segmentation Task Example \n " ,
7
+ " # Train a Segmentation Model \n " ,
8
8
" \n " ,
9
9
" This segmentation task example will be divided into the following steps:\n " ,
10
10
" \n " ,
Original file line number Diff line number Diff line change
1
+ # Train a Text Classification Model
2
+
3
+ ## Install Dependencies
4
+
5
+ - Build MMEngine from Source
6
+
7
+ ``` bash
8
+ git clone https://github.com/open-mmlab/mmengine.git
9
+ cd mmengine
10
+ pip install -e . -v
11
+ ```
12
+
13
+ - Install thirty-party libraries
14
+
15
+ ``` bash
16
+ pip install datasets transformers
17
+ ```
18
+
19
+ ## Run the Example
20
+
21
+ - Single device training
22
+
23
+ ``` bash
24
+ python examples/text_classification/train.py
25
+ ```
26
+
27
+ - Distributed data parallel training
28
+
29
+ ``` bash
30
+ tochrun -nnodes 1 -nproc_per_node 8 examples/text_classification/train.py --launcher pytorch
31
+ ```
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # Train a Text Translation Model
2
+
3
+ ## Install Dependencies
4
+
5
+ - Build MMEngine from Source
6
+
7
+ ``` bash
8
+ git clone https://github.com/open-mmlab/mmengine.git
9
+ cd mmengine
10
+ pip install -e . -v
11
+ ```
12
+
13
+ - Install thirty-party libraries
14
+
15
+ ``` bash
16
+ pip install datasets transformers torchtext
17
+ ```
18
+
19
+ ## Run the Example
20
+
21
+ - Single device training
22
+
23
+ ``` bash
24
+ python examples/text_translation/train.py
25
+ ```
26
+
27
+ - Distributed data parallel training
28
+
29
+ ``` bash
30
+ tochrun -nnodes 1 -nproc_per_node 8 examples/text_translation/train.py --launcher pytorch
31
+ ```
File renamed without changes.
You can’t perform that action at this time.
0 commit comments