moiduy04 commited on
Commit
ff3c20c
1 Parent(s): 97b56e7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -45,7 +45,7 @@ print(translation)
45
  Use the `train_model` function in `train.py` to train your model.
46
  ```
47
  from train import train_model
48
- from load_model import load_model_tokenizer
49
 
50
  config = load_config(file_name='config/config_final.yaml')
51
  train_model(config)
@@ -57,4 +57,5 @@ as well as read the following notes (`+` is the string concat funtion):
57
  - The code will save and preload models in `model_folder`
58
  - The code will preload the model with the name: "`model_basename` + `preload` + `.pt`"
59
  - The code will NOT preload a trained model if you set `preload` as `null`
60
- - Every epoch, the code will save the model with the name: "`model_basename` + `_` + (current epoch) + `.pt`"
 
 
45
  Use the `train_model` function in `train.py` to train your model.
46
  ```
47
  from train import train_model
48
+ from config import load_config
49
 
50
  config = load_config(file_name='config/config_final.yaml')
51
  train_model(config)
 
57
  - The code will save and preload models in `model_folder`
58
  - The code will preload the model with the name: "`model_basename` + `preload` + `.pt`"
59
  - The code will NOT preload a trained model if you set `preload` as `null`
60
+ - Every epoch, the code will save the model with the name: "`model_basename` + `_` + (current epoch) + `.pt`"
61
+ - `train_model` will automatically continue training the `preload`ed model.