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

Test 02 branch #906

Merged
merged 19 commits into from
Apr 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yifei add gpu list
  • Loading branch information
CoderYiFei committed Mar 31, 2023
commit e91d8560c599ce5ae5ff92c783c12a94bd2cf959
7 changes: 7 additions & 0 deletions uapi_rec/rank/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def train(self, config_path, cli_args, device, ips):
learning_rate_value = 0
iters_value = 0
save_dir_value = ""
device = "cpu"
try:
batch_size_value = args_str.split("--device ")[1].split(" ")[0]
except:
pass
try:
batch_size_value = args_str.split("--batch_size ")[1].split(" ")[0]
except:
Expand All @@ -49,6 +54,8 @@ def train(self, config_path, cli_args, device, ips):
paddle_pserver_ip_port = "127.0.0.1:29011"
#gpus_list = "0,1,2,3,4,5,6,7"
gpus_list = "0,1"
if "device" in device:
gpus_list = device.lstrip("gpu:")
server_echo = "PADDLE WILL START PSERVER 29011"
trainer_echo = "PADDLE WILL START Trainer 0"
cmd = f"export FLAGS_LAUNCH_BARRIER=0 && \
Expand Down