Closed him-mah10 closed 4 years ago
Umm! You do not have to mention it explicitly if you didn't change the dumped
path. The following line should handle the checkpoint reloading. https://github.com/microsoft/MASS/blob/48c119dfc6d3652b9550836d114cdaff1716ff29/MASS-unsupNMT/src/trainer.py#L458
@masonreznov yep, it does handle checkpoint reloading. Thank-you :) Anyone who faces the same issue, change the checkpoint_path variable manually to point to checkpoint path.
I reloaded checkpoint.pth, but there is such an error, how to solve?
Error message:
Traceback (most recent call last):
File "train.py", line 351, in
@Nanamumuhan did you try to load the pretrianed english model pushed by the author with the Mass-unsupNMT scripts? I am afraid it won't work. I tried a lot but couldn't get it running, if you or someone is able to do so, please let me know. TIA
@him-mah10 What is your script? You can try model from MASS-summarization if you mean English model.
@StillKeepTry I wanted to know if I could use the mass-base-uncased model with the script for MASS-unsupNMT i.e. if this line points to mass-base-uncased model, will I be able to use it?
@him-mah10 I tried many times and it didn't work. Why is this?
@him-mah10 You can change this line to buy the absolute path to your own checkpoint.pth's, or a relative path, so you can reload checkpoint. like this ( checkpoint_path = '/home/ubuntu/Documents/MASS/MASS-unsupNMT/dumped/checkpoint.pth'). The previous error was because I changed the size of the model when I reloaded checkpoint.pth.
Hello, I am Pre-training a model for UNMT task as per the instructions given. Could you please tell me how to load a checkpoint? For XLM we could simply use --reload_checkpoint, could you tell me how to do the same here? Apparently --reload_checkpoint doesn't work. TIA