# US 2026/0203126 A1 · Systems and methods for continuous batching in large language model inference

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

- Number: US 2026/0203126 A1
- Document ID: US20260203126A1
- Status: Published application
- Kind: A1
- Application number: 19/176,022
- Filed: 2025-04-10
- Published: 2026-07-16
- Earliest claimed: 2025-01-16
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Shi Chang; Haoxiang Zhang; Boyuan Chen; Ahmed E. Hassan
- Web page: https://patentgrep.com/patent/US20260203126A1

## CPC

- G06F 9/5044: {considering hardware capabilities}
- G06F 9/505: {considering the load}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06F 2209/5015: Service provider selection
- G06F 2209/5019: Workload prediction
- G06F 2209/541: Client-server
- G06F 2209/548: Queue
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A process requirement aware (e.g., SLA aware) continuous batching framework aimed at ensuring high-priority tasks meet processing requirements. A continuous batching framework identifies requests whose processing requirements cannot be satisfied by the framework and prioritizes allocation of resources to requests whose processing requirements can be met. This feature, in combination with on-mode agents that individually assess the impact of processing a new request on active requests, aides in the compliance of processing requirements of requests as they are continuously added to the framework queue.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a plurality of requests, each request including a prompt for processing by a foundation model and an indication of one or more processing requirements associated with the request;
using an estimation function, by a first on-mode agent of a plurality of on-mode agents, to determine that a first request of the plurality of requests in a queue can be processed by a first instance of the foundation model within constraints of the one or more processing requirements associated with the first request and without violating the one or more processing requirements associated with any of a plurality of requests currently being processed by the first instance of the foundation model, wherein each of the on-mode agents is associated with a respective instance of the foundation model; and
in response to the determination using the estimation function, processing the first request by the first instance of the foundation model.

### Claim 2 (depends on 1)

The method according to claim 1 further comprising training the estimation function including performing tests evaluating the performance of the foundation model when processing a various number of requests concurrently, wherein input variables to the tests include at least of one batch size, GPU type, a foundation model type, and input length, for estimating generation speeds of the foundation model under different workload conditions.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising,
storing each of the plurality of requests in the queue and removing the first request from the queue.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising,
determining, by a queue manager, whether a required generation speed for processing a second request of the plurality of requests exceeds a maximum processing capability of any respective instances of the foundation model associated with the on-mode agents, and if so, flagging the second request as noncompliant.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising,
based on the second request being flagged as noncompliant, processing the second request by a foundation model instance associated with an off-mode agent and removing the second request from the queue.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the foundation model instance associated with the off-mode agent is implemented on a remote server and wherein the method further comprises transmitting the second request by the queue manager to the remote server for processing by the foundation model instance associated with the off-mode agent.

### Claim 7 (depends on 4)

The method according to claim 4, wherein the second request includes an indication of a maximum number of tokens expected to be generated by the foundation model and an indication of a request deadline indicating a desired completion time of processing the second request by the foundation model.

### Claim 8 (depends on 7)

The method according to claim 7, wherein determining a required generation includes determining a ratio of a maximum number of tokens expected to be generated by the foundation model and, a time difference between the request deadline and a current time.

### Claim 9 (depends on 4)

The method according to claim 4, further comprising,
dependent on current processing capacity of a plurality of foundation model instances, identifying, by the queue manager, a third request of the plurality of requests as a low-priority request, and
transmitting by the queue manager, the third request to a remote server via a communication network for processing by a foundation model instance associated with a remote agent.

### Claim 10

A computing system, comprising:
one or more processors; and
a memory storing computer-executable instructions that, when executed by the one or more processors, are to cause the one or more processors to:
receive a plurality of requests, each request including a prompt for processing by a foundation model and an indication of one or more processing requirements associated with the request;
use an estimation function, by a first on-mode agent of a plurality of on-mode agents, to determine that a first request of the plurality of requests in a queue can be processed by a first instance of the foundation model within constraints of the one or more processing requirements associated with the first request and without violating the one or more processing requirements associated with any of a plurality of requests currently being processed by the first instance of the foundation model, wherein each of the on-mode agents is associated with a respective instance of the foundation model; and
in response to the determination using the estimation function, process the first request by the first instance of the foundation model.

### Claim 11 (depends on 10)

The computing system according to claim 10, wherein the instructions, when executed are to further cause the one or more processors to comprise, training the estimation function including performing tests evaluating the performance of the foundation model when processing a various number of requests concurrently, wherein input variables to the tests include at least of one batch size, GPU type, a foundation model type, and input length, for estimating generation speeds of the foundation model under different workload conditions.

### Claim 12 (depends on 11)

The computing system according to claim 11, wherein the instructions, when executed are to further cause the one or more processors to comprise,
storing each of the plurality of requests in the queue and removing the first request from the queue.

### Claim 13 (depends on 12)

The computing system according to claim 12, wherein the instructions, when executed are to further cause the one or more processors to comprise,
determining, by a queue manager, whether a required generation speed for processing a second request of the plurality of requests exceeds a maximum processing capability of any respective instances of the foundation model associated with the on-mode agents, and if so, flagging the second request as noncompliant.

### Claim 14 (depends on 13)

The computing system according to claim 13, wherein the instructions, when executed are to further cause the one or more processors to comprise, based on the second request being flagged as noncompliant, processing the second request by a foundation model instance associated with an off-mode agent and removing the second request from the queue.

### Claim 15 (depends on 14)

The computing system according to claim 14, wherein the foundation model instance associated with the off-mode agent is implemented on a remote server and, wherein the instructions, when executed are to further cause the one or more processors to comprise, transmitting the second request by the queue manager to the remote server for processing by the foundation model instance associated with the off-mode agent.

### Claim 16 (depends on 13)

The computing system according to claim 13, wherein the second request includes an indication of a maximum number of tokens expected to be generated by the foundation model and an indication of a request deadline indicating a desired completion time of processing the second request by the foundation model.

### Claim 17 (depends on 16)

The computing system according to claim 16, wherein determining a required generation includes determining a ratio of a maximum number of tokens expected to be generated by the foundation model and, a time difference between the request deadline and a current time.

### Claim 18 (depends on 13)

The computing system according to claim 13, wherein the instructions, when executed are to further cause the one or more processors to comprise,
dependent on current processing capacity of a plurality of foundation model instances, identifying, by the queue manager, a third request of the plurality of requests as a low-priority request, and
transmitting by the queue manager, the third request to a remote server via a communication network for processing by a foundation model instance associated with a remote agent.

### Claim 19

A non-transitory, computer-readable medium storing computer-executable instructions
that, when executed by one or more processors, are to cause the one or more processors to:
receive a plurality of requests, each request including a prompt for processing by a foundation model and an indication of one or more processing requirements associated with the request;
use an estimation function, by a first on-mode agent of a plurality of on-mode agents, to determine that a first request of the plurality of requests in a queue can be processed by a first instance of the foundation model within constraints of the one or more processing requirements associated with the first request and without violating the one or more processing requirements associated with any of a plurality of requests currently being processed by the first instance of the foundation model, wherein each of the on-mode agents is associated with a respective instance of the foundation model; and
in response to the determination using the estimation function, process the first request by the first instance of the foundation model.

### Claim 20 (depends on 19)

The non-transitory, computer-readable medium according to claim 19 wherein the instructions, when executed are to further cause the one or more processors to comprise,
storing each of the plurality of requests in the queue and removing the first request from the queue; and
determining, by a queue manager, whether a required generation speed for processing a second request of the plurality of requests exceeds a maximum processing capability of any respective instances of the foundation model associated with the on-mode agents, and if so, flagging the second request as noncompliant.
