def save_params(step_num, model, trainer, ckpt_dir):
param_path = os.path.join(ckpt_dir, '<STR_LIT>'%step_num)<EOL>trainer_path = os.path.join(ckpt_dir, '<STR_LIT>'%step_num)<EOL>logging.info('<STR_LIT>',<EOL>step_num, param_path, trainer_path)<EOL>model.save_parameters(param_path)<EOL>trainer.save_states(trainer_path)<EOL>
Save the model parameter, marked by step_num.