forked from xuezhong/transformer-nist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export PADDLE_PSERVERS=127.0.0.1 | ||
export POD_IP=127.0.0.1 | ||
export PADDLE_TRAINERS_NUM=2 | ||
export PADDLE_IS_LOCAL=0 | ||
|
||
export PADDLE_TRAINER_ID=0 | ||
export TRAINING_ROLE=PSERVER | ||
export PADDLE_PORT=6177 | ||
sh run_transform.sh &>log/pserver_4.log & | ||
|
||
sleep 60 | ||
|
||
export CUDA_VISIBLE_DEVICES=0,1 | ||
export TRAINING_ROLE=TRAINER | ||
export PADDLE_TRAINER_ID=0 | ||
export PADDLE_PORT=6177 | ||
sh run_transform.sh &> log/trainer1.log & | ||
|
||
export CUDA_VISIBLE_DEVICES=4,5 | ||
export TRAINING_ROLE=TRAINER | ||
export PADDLE_TRAINER_ID=1 | ||
export PADDLE_PORT=6177 | ||
sh run_transform.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
python transformer_cloud/train.py --src_vocab_fpath nist06n/cn_30001.dict --trg_vocab_fpath nist06n/en_30001.dict --train_file_pattern 'nist06n/data/part-00' --batch_size 256 --use_token_batch True --special_token '_GO' '_EOS' '_UNK' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters