Open yulong-CSAI opened 2 years ago
can sb help?
did I miss something?
How many cpus do you have?
If you have 24 cores, you should use
dglke_train --model_name TransE_l2 --dataset FB15k --batch_size 1000 --neg_sample_size 200 --hidden_dim 400 --gamma 19.9 --lr 0.25 --max_step 500 --log_interval 100 --batch_size_eval 16 --test -adv --regularization_coef 1.00E-09 --num_thread 1 --num_proc 24
You need to change num_proc and the max_step.
If you have 24 cores, you should use
dglke_train --model_name TransE_l2 --dataset FB15k --batch_size 1000 --neg_sample_size 200 --hidden_dim 400 --gamma 19.9 --lr 0.25 --max_step 500 --log_interval 100 --batch_size_eval 16 --test -adv --regularization_coef 1.00E-09 --num_thread 1 --num_proc 24
You need to change num_proc and the max_step.
Thanks to reply,It works !!
I start to read the dglke source code, and decide to develep on this code, However, when I run the source code , I got the unexpected result. I run the source code by this command: python train.py --model_name TransE_l2 --dataset FB15k --batch_size 1000 --neg_sample_size 200 --hidden_dim 400 --gamma 19.9 --lr 0.25 --max_step 500 --log_interval 100 --batch_size_eval 16 --test -adv --regularization_coef 1.00E-09 --num_thread 1 --num_proc 48 the result is: