summaryrefslogtreecommitdiff
path: root/training/conf/network/conformer/conformer.yaml
blob: 2bb423fce020cb0a60215882cf5d939f7a07b79b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
_target_: text_recognizer.networks.conformer.Conformer
depth: 16
block:
  _target_: text_recognizer.networks.conformer.ConformerBlock
  dim: &dim 128
  attn:
    _target_: text_recognizer.networks.transformer.Attention
    dim: *dim
    num_heads: 8
    dim_head: 64
    dropout_rate: 0.1
    causal: false
    rotary_embedding:
      _target_: text_recognizer.networks.transformer.RotaryEmbedding
      dim: 64
  ff:
    _target_: text_recognizer.networks.conformer.Feedforward
    dim: *dim
    expansion_factor: 4
    dropout: 0.1
  conv:
    _target_: text_recognizer.networks.conformer.ConformerConv
    dim: *dim
    expansion_factor: 2
    kernel_size: 31
    dropout: 0.1