# US 2025/0156223 A1 · Request scheduling method and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156223 A1
- Document ID: US20250156223A1
- Status: Published application
- Kind: A1
- Application number: 19/022,596
- Filed: 2025-01-15
- Published: 2025-05-15
- Earliest claimed: 2023-10-24
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yipeng Ma; Tao Wang; Yong Peng; Jianhui Zhou
- Web page: https://patentgrep.com/patent/US20250156223A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/54: Interprogram communication
- H04L 67/1034: Reaction to server failures by a load balancer
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In accordance with an embodiment, a method includes receiving, by a first device, a first request from a first user, where the first request is a request for a first service, and the first request comprises an identifier of the first service; scheduling, by the first device, the first request to a second device; and sending, by the second device, a second request to the first device, wherein the second request comprises the identifier of the first service and first output information corresponding to the first service, and the second request is associated with the first request.

## Claims

### Claim 1

A method comprising:
receiving, by a first device, a first request from a first user, wherein the first request is a request for a first service, and the first request comprises an identifier of the first service;
scheduling, by the first device, the first request to a second device;
sending, by the second device, a second request to the first device, wherein the second request comprises the identifier of the first service and first output information corresponding to the first service, and the second request is associated with the first request;
scheduling, by the first device, the second request to a third device in response to the first output information not meeting a specified condition, wherein the third device is different from the second device;
sending, by the third device, a third request to the first device, wherein the third request comprises the identifier of the first service and second output information corresponding to the first service, and the third request is associated with the second request; and
scheduling, by the first device, the third request to the third device in response to the second output information not meeting the specified condition.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the first device, a fourth request from a second user, wherein the fourth request is a request for a second service, and the fourth request comprises an identifier of the second service;
scheduling, by the first device, the fourth request to the second device;
sending, by the second device, a fifth request to the first device, wherein the fifth request comprises the identifier of the second service and third output information corresponding to the second service, and the fifth request is associated with the fourth request;
scheduling, by the first device, the fifth request to the third device in response to the third output information not meeting the specified condition;
sending, by the third device, a sixth request to the first device, wherein the sixth request comprises the identifier of the second service and fourth output information corresponding to the second service, and the sixth request is associated with the fifth request; and
scheduling, by the first device, the sixth request to the third device in response to the fourth output information not meeting the specified condition.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
sending, by the first device, the second output information to the first user in response to the second output information meeting the specified condition.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the first device, at least one second device, and at least one third device are comprised within a request scheduling system.

### Claim 5

A method applied a first device, the method comprising:
receiving a first request from a first user, wherein the first request is a request for a first service, and the first request comprises an identifier of the first service;
scheduling the first request to a second device;
receiving a second request sent by the second device, wherein the second request comprises the identifier of the first service and first output information corresponding to the first service, and the second request is associated with the first request;
scheduling the second request to a third device when the first output information does not meet a specified condition, wherein the third device is different from the second device;
receiving a third request sent by the third device, wherein the third request comprises the identifier of the first service and second output information corresponding to the first service, and the third request is associated with the second request; and
scheduling the third request to the third device in response to the second output information not meeting the specified condition.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
receiving a fourth request from a second user, wherein the fourth request is a request for a second service, and the fourth request comprises an identifier of the second service;
scheduling the fourth request to the second device;
receiving a fifth request sent by the second device, wherein the fifth request comprises the identifier of the second service and third output information corresponding to the second service, and the fifth request is associated with the fourth request;
scheduling the fifth request to the third device in response to the third output information not meeting the specified condition;
receiving a sixth request sent by the third device, wherein the sixth request comprises the identifier of the second service and fourth output information corresponding to the second service, and the sixth request is associated with the fifth request; and
scheduling the sixth request to the third device in response to the fourth output information not meeting the specified condition.

### Claim 7 (depends on 5)

The method according to claim 5, further comprising:
sending the second output information to the first user in response to the second output information meeting the specified condition.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the identifier comprises a service ID.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the specified condition comprises at least one of:
a length of output information is greater than or equal to a first threshold; or
output information comprises a terminator.

### Claim 10

A method applied to a second device, the method comprising:
receiving a first request sent by a first device from a first user, wherein the first request is a request for a first service, and the first request comprises an identifier of the first service; and
sending a second request to the first device, wherein the second request comprises the identifier of the first service and first output information corresponding to the first service, and the second request is associated with the first request.

### Claim 11 (depends on 10)

The method according to claim 10, further comprising:
receiving a fourth request sent by the first device from a second user, wherein the fourth request is a request for a second service, and the fourth request comprises an identifier of the second service; and
sending a fifth request to the first device, wherein the fifth request comprises the identifier of the second service and third output information corresponding to the second service, and the fifth request is associated with the fourth request.

### Claim 12 (depends on 10)

The method according to claim 10, wherein before sending the second request to the first device, the method further comprises:
performing, based on a first computing resource status and a first condition, group batching on the first request and at least one seventh request that arrives at the second device at the same time as the first request, to obtain a first batch, wherein the seventh request is a request from the first user, a second user, or another user; and
performing first inference computing on the first batch to obtain the second request and first cache information.

### Claim 13 (depends on 12)

The method according to claim 12, further comprising:
sending the first cache information to a third device.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the cache information comprises key-value (KV) cache information.

### Claim 15 (depends on 14)

The method according to claim 14, wherein performing, based on the first computing resource status and the first condition, group batching on the first request and the at least one seventh request that arrives at the second device at the same time as the first request, to obtain the first batch comprises:
obtaining, based on the first request, input information corresponding to the first request and a first length of the input information; and
performing group batching on the first request and the at least one seventh request based on the first computing resource status, the first condition, and the first length, to obtain the first batch.

### Claim 16

A device, comprising:
a processor; and
a memory with instructions stored thereon, wherein the instructions, when executed by the processor, enables to device to perform:
receiving a first request from a first user, wherein the first request is a request for a first service, and the first request comprises an identifier of the first service;
scheduling the first request to a second device;
receiving a second request sent by the second device, wherein the second request comprises the identifier of the first service and first output information corresponding to the first service, and the second request is associated with the first request;
scheduling the second request to a third device in response to the first output information not meeting a specified condition, wherein the third device is different from the second device;
receiving a third request sent by the third device, wherein the third request comprises the identifier of the first service and second output information corresponding to the first service, and the third request is associated with the second request; and
scheduling the third request to the third device in response to the second output information does not meeting the specified condition.

### Claim 17 (depends on 16)

The device of claim 16, wherein the instructions, when executed by the processor, further enable to the device to perform:
receiving a fourth request from a second user, wherein the fourth request is a request for a second service, and the fourth request comprises an identifier of the second service;
scheduling the fourth request to the second device;
receiving a fifth request sent by the second device, wherein the fifth request comprises the identifier of the second service and third output information corresponding to the second service, and the fifth request is associated with the fourth request;
scheduling the fifth request to the third device in response to the third output information not meeting the specified condition;
receiving a sixth request sent by the third device, wherein the sixth request comprises the identifier of the second service and fourth output information corresponding to the second service, and the sixth request is associated with the fifth request; and
scheduling the sixth request to the third device in response to the fourth output information not meeting the specified condition.

### Claim 18 (depends on 16)

The device of claim 16, wherein the instructions, when executed by the processor, further enable to the device to perform:
sending the second output information to the first user in response to the second output information meeting the specified condition.

### Claim 19 (depends on 18)

The device of claim 18, wherein the identifier comprises a service ID.

### Claim 20 (depends on 19)

The device of claim 19, wherein the specified condition comprises at least one of:
a length of output information is greater than or equal to a first threshold; or
output information comprises a terminator.
