Train process doesn't output any model

Hello!

I’m training models using opennmt-py but after the training process ends I don’t get any model. I’ve done the process before and I got model files, however since I changed to another server I don’t get the models.
I think the training process is working because in my log files I get all the outputs of the process, but not the models files.

Can you help me with that?
Kind regards!
Claudia

Hi,

You should post the full command line you used for the training.

Hi! This is the command line I’m using

nohup python train.py -data sonar_data/sonar-prepro -save_model sonar-model -save_checkpoint_steps 500 -gpu_ranks 1 -log_file logfilemodel2 &> sonar_data/training2.txt &

Cheers
Claudia

See for example:

Hi Guillaume

I don’t get an error while running the command. My problem is that I don’t get the model files for using in translation. But the training process runs OK because in my log file I can see the models accuracy and ppl.

Do you have a single GPU? Then use -gpu_ranks 0.
Do you have multiple GPUs? Then use CUDA_VISIBLE_DEVICES=1 python train.py -gpu_ranks 0

Oh now its working! Thanks