readme: ---
  tags:
  - espnet
  - audio
  - automatic-speech-recognition
  language: en
  datasets:
  - librispeech_100
  license: cc-by-4.0
  ---
  
  ## ESPnet2 ASR model 
  
  ### `pyf98/librispeech_100_e_branchformer`
  
  This model was trained by Yifan Peng using librispeech_100 recipe in [espnet](https://github.com/espnet/espnet/).
  
  References:
  - [E-Branchformer: Branchformer with Enhanced merging for speech recognition (SLT 2022)](https://arxiv.org/abs/2210.00077)
  - [Branchformer: Parallel MLP-Attention Architectures to Capture Local and Global Context for Speech Recognition and Understanding (ICML 2022)](https://proceedings.mlr.press/v162/peng22a.html)
  
  
  ### Demo: How to use in ESPnet2
  
  Follow the [ESPnet installation instructions](https://espnet.github.io/espnet/installation.html)
  if you haven't done that already.
  
  ```bash
  cd espnet
  git checkout 3c84766d951e33dd7782a9f32011c00ea2a44ea3
  pip install -e .
  cd egs2/librispeech_100/asr1
  ./run.sh --skip_data_prep false --skip_train true --download_model pyf98/librispeech_100_e_branchformer
  ```
  
  <!-- Generated by scripts/utils/show_asr_result.sh -->
  # RESULTS
  ## Environments
  - date: `Mon Dec 12 06:50:58 CST 2022`
  - python version: `3.9.15 (main, Nov 24 2022, 14:31:59)  [GCC 11.2.0]`
  - espnet version: `espnet 202209`
  - pytorch version: `pytorch 1.12.1`
  - Git hash: `26f432bc859e5e40cac1a86042d498ba7baffbb0`
    - Commit date: `Fri Dec 9 02:16:01 2022 +0000`
  
  ## asr_train_asr_e_branchformer_size256_mlp1024_linear1024_e12_mactrue_edrop0.0_ddrop0.0_raw_en_bpe5000_sp
  ### WER
  
  |dataset|Snt|Wrd|Corr|Sub|Del|Ins|Err|S.Err|
  |---|---|---|---|---|---|---|---|---|
  |decode_asr_asr_model_valid.acc.ave/dev_clean|2703|54402|94.6|5.0|0.3|0.8|6.1|55.4|
  |decode_asr_asr_model_valid.acc.ave/dev_other|2864|50948|85.3|13.3|1.4|2.1|16.7|78.9|
  |decode_asr_asr_model_valid.acc.ave/test_clean|2620|52576|94.4|5.1|0.4|0.8|6.3|56.1|
  |decode_asr_asr_model_valid.acc.ave/test_other|2939|52343|85.0|13.6|1.4|2.0|17.0|80.3|
  
  ### CER
  
  |dataset|Snt|Wrd|Corr|Sub|Del|Ins|Err|S.Err|
  |---|---|---|---|---|---|---|---|---|
  |decode_asr_asr_model_valid.acc.ave/dev_clean|2703|288456|98.3|1.0|0.7|0.7|2.4|55.4|
  |decode_asr_asr_model_valid.acc.ave/dev_other|2864|265951|93.6|4.0|2.4|2.0|8.3|78.9|
  |decode_asr_asr_model_valid.acc.ave/test_clean|2620|281530|98.2|1.1|0.8|0.6|2.5|56.1|
  |decode_asr_asr_model_valid.acc.ave/test_other|2939|272758|93.7|3.8|2.5|1.9|8.2|80.3|
  
  ### TER
  
  |dataset|Snt|Wrd|Corr|Sub|Del|Ins|Err|S.Err|
  |---|---|---|---|---|---|---|---|---|
  |decode_asr_asr_model_valid.acc.ave/dev_clean|2703|69558|92.2|4.9|2.9|0.6|8.4|55.4|
  |decode_asr_asr_model_valid.acc.ave/dev_other|2864|64524|81.9|12.8|5.2|2.3|20.4|78.9|
  |decode_asr_asr_model_valid.acc.ave/test_clean|2620|66983|92.2|4.9|2.9|0.6|8.4|56.1|
  |decode_asr_asr_model_valid.acc.ave/test_other|2939|66650|81.5|13.0|5.5|2.2|20.7|80.3|
  
  ## ASR config
  
  <details><summary>expand</summary>
  
  ```
  config: conf/tuning/train_asr_e_branchformer_size256_mlp1024_linear1024_e12_mactrue_edrop0.0_ddrop0.0.yaml
  print_config: false
  log_level: INFO
  dry_run: false
  iterator_type: sequence
  output_dir: exp/asr_train_asr_e_branchformer_size256_mlp1024_linear1024_e12_mactrue_edrop0.0_ddrop0.0_raw_en_bpe5000_sp
  ngpu: 1
  seed: 2022
  num_workers: 4
  num_att_plot: 3
  dist_backend: nccl
  dist_init_method: env://
  dist_world_size: null
  dist_rank: null
  local_rank: 0
  dist_master_addr: null
  dist_master_port: null
  dist_launcher: null
  multiprocessing_distributed: false
  unused_parameters: false
  sharded_ddp: false
  cudnn_enabled: true
  cudnn_benchmark: false
  cudnn_deterministic: true
  collect_stats: false
  write_collected_feats: false
  max_epoch: 70
  patience: null
  val_scheduler_criterion:
  - valid
  - loss
  early_stopping_criterion:
  - valid
  - loss
  - min
  best_model_criterion:
  -   - valid
      - acc
      - max
  keep_nbest_models: 10
  nbest_averaging_interval: 0
  grad_clip: 5.0
  grad_clip_type: 2.0
  grad_noise: false
  accum_grad: 4
  no_forward_run: false
  resume: true
  train_dtype: float32
  use_amp: true
  log_interval: null
  use_matplotlib: true
  use_tensorboard: true
  create_graph_in_tensorboard: false
  use_wandb: false
  wandb_project: null
  wandb_id: null
  wandb_entity: null
  wandb_name: null
  wandb_model_log_interval: -1
  detect_anomaly: false
  pretrain_path: null
  init_param: []
  ignore_init_mismatch: false
  freeze_param: []
  num_iters_per_epoch: null
  batch_size: 20
  valid_batch_size: null
  batch_bins: 16000000
  valid_batch_bins: null
  train_shape_file:
  - exp/asr_stats_raw_en_bpe5000_sp/train/speech_shape
  - exp/asr_stats_raw_en_bpe5000_sp/train/text_shape.bpe
  valid_shape_file:
  - exp/asr_stats_raw_en_bpe5000_sp/valid/speech_shape
  - exp/asr_stats_raw_en_bpe5000_sp/valid/text_shape.bpe
  batch_type: numel
  valid_batch_type: null
  fold_length:
  - 80000
  - 150
  sort_in_batch: descending
  sort_batch: descending
  multiple_iterator: false
  chunk_length: 500
  chunk_shift_ratio: 0.5
  num_cache_chunks: 1024
  train_data_path_and_name_and_type:
  -   - dump/raw/train_clean_100_sp/wav.scp
      - speech
      - kaldi_ark
  -   - dump/raw/train_clean_100_sp/text
      - text
      - text
  valid_data_path_and_na