Issue: Can't save checkpoints steps

Hello,
I am using this parameter in data.yml to save checkpoints steps, but it doesn’t seem to have any effect.

train:

(optional) Save a checkpoint every this many steps (default: 5000).

save_checkpoints_steps: 2000

Hi,

Can you post your complete YAML configuration?

Here is the YAML:

model_dir: run/
data:
  train_features_file: src-train.txt
  train_labels_file: tgt-train.txt
  eval_features_file: src-val.txt
  eval_labels_file: tgt-val.txt
  source_vocabulary: src-vocab.txt
  target_vocabulary: tgt-vocab.txt
  source_tokenization:
    type: OpenNMTTokenizer
    params:
      mode: aggressive
      case_feature: true
      sp_model_path: src.model
      # sp_nbest_size: 64
      # sp_alpha: 0.1
      joiner_annotate: true
      segment_numbers: true
  target_tokenization:
    type: OpenNMTTokenizer
    params:
      mode: aggressive
      case_feature: true
      sp_model_path: tgt.model
      # sp_nbest_size: 64
      # sp_alpha: 0.1
      joiner_annotate: true
      segment_numbers: true
  train:
    save_checkpoints_steps: 2000
  eval:
    external_evaluators: bleu

train and eval should not be in the data block. So you should unindent the last 4 lines.

1 Like