Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-save_checkpoint_steps doesn't work!! #1322

Closed
cdj0311 opened this issue Feb 25, 2019 · 3 comments
Closed

-save_checkpoint_steps doesn't work!! #1322

cdj0311 opened this issue Feb 25, 2019 · 3 comments

Comments

@cdj0311
Copy link

cdj0311 commented Feb 25, 2019

hi, all:
I'm doubt -save_checkpoint_steps doesn't work, nothing to save, the command as fellows:

python train.py -data data/demo -save_model demo_model -train_steps 10000 -save_checkpoint_steps 1000 -valid_steps 1000 -world_size -gpu_ranks 1 -batch_size 128 -optim adam learning_rate 0.001

What's the problem for this?

@guillaumekln
Copy link
Contributor

Hi,

If you have a single GPU you should use -gpu_ranks 0.

@cdj0311
Copy link
Author

cdj0311 commented Feb 26, 2019

@guillaumekln I have 4 GPUs

@guillaumekln
Copy link
Contributor

See here: http://forum.opennmt.net/t/unable-to-use-save-checkpoint-steps-with-gpu-enabled/2451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants