default.yaml 2.46 KB
Newer Older
1
# SuperBench Config
2
version: v0.2
3
superbench:
4
  enable: null
5
6
  var:
    default_local_mode: &default_local_mode
7
      enable: true
8
9
10
11
      modes:
        - name: local
          proc_num: 8
          prefix: CUDA_VISIBLE_DEVICES={proc_rank}
12
13
          parallel: yes
    default_pytorch_mode: &default_pytorch_mode
14
15
16
17
      enable: true
      modes:
        - name: torch.distributed
          proc_num: 8
18
          node_num: 1
19
20
      frameworks:
        - pytorch
21
22
23
24
25
26
27
28
29
30
    common_model_config: &common_model_config
      duration: 0
      num_warmup: 16
      num_steps: 128
      precision:
        - float32
        - float16
      model_action:
        - train
  benchmarks:
31
32
33
34
35
36
37
38
    disk-benchmark:
      enable: false
      modes:
        - proc_num: 1
          parallel: no
      parameters:
        block_devices:
          - /dev/nvme0n1
39
40
41
42
43
44
45
    mem-bw:
      enable: true
      modes:
        - name: local
          proc_num: 8
          prefix: CUDA_VISIBLE_DEVICES={proc_rank} numactl -c $(({proc_rank}/2))
          parallel: yes
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    kernel-launch:
      <<: *default_local_mode
    gemm-flops:
      <<: *default_local_mode
    cudnn-function:
      <<: *default_local_mode
    cublas-function:
      <<: *default_local_mode
    matmul:
      <<: *default_local_mode
      frameworks:
        - pytorch
    sharding-matmul:
      <<: *default_pytorch_mode
    computation-communication-overlap:
      <<: *default_pytorch_mode
    gpt_models:
      <<: *default_pytorch_mode
64
65
66
      models:
        - gpt2-small
        - gpt2-large
67
      parameters:
68
        <<: *common_model_config
69
        batch_size: 4
70
    bert_models:
71
      <<: *default_pytorch_mode
72
73
74
75
      models:
        - bert-base
        - bert-large
      parameters:
76
77
        <<: *common_model_config
        batch_size: 8
78
    lstm_models:
79
      <<: *default_pytorch_mode
80
81
82
      models:
        - lstm
      parameters:
83
        <<: *common_model_config
84
        batch_size: 128
85
86
    resnet_models:
      <<: *default_pytorch_mode
87
88
89
90
      models:
        - resnet50
        - resnet101
        - resnet152
91
92
93
94
95
96
      parameters:
        <<: *common_model_config
        batch_size: 128
    densenet_models:
      <<: *default_pytorch_mode
      models:
97
98
        - densenet169
        - densenet201
99
100
101
102
103
104
      parameters:
        <<: *common_model_config
        batch_size: 128
    vgg_models:
      <<: *default_pytorch_mode
      models:
105
106
107
108
109
        - vgg11
        - vgg13
        - vgg16
        - vgg19
      parameters:
110
        <<: *common_model_config
111
        batch_size: 128