Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lxning committed Oct 12, 2023
1 parent cb3d232 commit 67436d3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,15 @@ public void run() {
WorkerCommands workerCmd = req.getCommand();

long wtStartTime = System.currentTimeMillis();
logger.info("Flushing req.cmd {} to backend at: {}", workerCmd, wtStartTime);
int repeats =
isLoadRequest(workerCmd) || isTensorParallelRequest(workerCmd)
? model.getParallelLevel() > 0 ? model.getParallelLevel() : 1
: 1;
logger.info(
"Flushing req.cmd {} repeats {} to backend at: {}",
workerCmd,
repeats,
wtStartTime);
List<CompletableFuture<Void>> futureRequests = new ArrayList<>(repeats);
for (int i = 0; backendChannel.size() > 0 && i < repeats; i++) {
int idx = i;
Expand All @@ -216,6 +220,10 @@ public void run() {
}));
}
futureRequests.stream().map(CompletableFuture::join);
logger.info(
"Done Flushing req.cmd {} to backend at: {}",
workerCmd,
System.currentTimeMillis());

ModelWorkerResponse reply = null;

Expand Down

0 comments on commit 67436d3

Please sign in to comment.