This commit is contained in:
dean
2026-04-06 16:39:58 +09:00
parent d7458e3c8b
commit acdffd99ec
3 changed files with 6 additions and 2 deletions

View File

@@ -62,6 +62,9 @@ public class DockerTrainService {
@Value("${hyper.parameter.gpu-ids}") @Value("${hyper.parameter.gpu-ids}")
private String hyperGpuIds; private String hyperGpuIds;
@Value("${hyper.parameter.batch_size}")
private Integer batchSize;
private final ModelTrainJobCoreService modelTrainJobCoreService; private final ModelTrainJobCoreService modelTrainJobCoreService;
/** /**
@@ -293,7 +296,7 @@ public class DockerTrainService {
addArg(c, "--batch-size", 2); // 학습서버 GPU 1개인 곳은 batch-size:2 까지만 가능 addArg(c, "--batch-size", 2); // 학습서버 GPU 1개인 곳은 batch-size:2 까지만 가능
} else { } else {
addArg(c, "--batch-size", req.getBatchSize()); // 학습서버 GPU 1개인 곳은 batch-size:2 까지만 가능 addArg(c, "--batch-size", batchSize); // 학습서버 GPU 1개인 곳은 batch-size:2 까지만 가능
} }
addArg(c, "--gpus", hyperGpus); // 학습서버 GPU 1개인 곳은 1이어야 함 addArg(c, "--gpus", hyperGpus); // 학습서버 GPU 1개인 곳은 1이어야 함
addArg(c, "--gpu-ids", hyperGpuIds); // 학습서버 GPU 1개인 곳은 0이어야 함 addArg(c, "--gpu-ids", hyperGpuIds); // 학습서버 GPU 1개인 곳은 0이어야 함

View File

@@ -45,3 +45,4 @@ hyper:
parameter: parameter:
gpus: 4 gpus: 4
gpu-ids: 0,1,2,3 gpu-ids: 0,1,2,3
batch-size: 30

View File

@@ -82,4 +82,4 @@ hyper:
parameter: parameter:
gpus: 1 gpus: 1
gpu-ids: 0 gpu-ids: 0
batch-size: 2