# US 2026/0099706 A1 · Method and system for deployment of large language models (llm) in cloud instances

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

- Number: US 2026/0099706 A1
- Document ID: US20260099706A1
- Status: Published application
- Kind: A1
- Application number: 19/328,296
- Filed: 2025-09-15
- Published: 2026-04-09
- Earliest claimed: 2024-10-04
- Assignees: Tata Consultancy Services Limited
- Applicants: Tata Consultancy Services Limited
- Inventors: Ashwin KRISHNAN; Venkatesh PASUMARTI; Samarth Sudarshan INAMDAR; Arghyajoy MONDAL; Manoj Karunakaran NAMBIAR; Rekha SINGHAL
- Web page: https://patentgrep.com/patent/US20260099706A1

## CPC

- G06F 9/5072: {Grid computing}
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Existing model deployment approaches have the disadvantage that they do not consider feasibility of cloud instances for hosting a given LLM model. Embodiments disclosed herein provide a method and system for deployment of LLMs in a plurality of cloud instances. The system checks feasibility of the plurality of cloud instances for hosting an LLM, based on size of the LLM and storage space in each of the cloud instances. Further, a latency value for a plurality of batch sizes is determined for a plurality of LLM-accelerator pairs, in each of the plurality of cloud instances identified as feasible based on the feasibility check, using a performance model. Furthermore, a recommendation of one of the plurality of cloud instances identified as feasible is generated, based on the determined latency, a measured cost of deployment, a user workload, an application type, a plurality of latency constraints, and an evaluated performance.

## Claims

### Claim 1

A processor implemented method, comprising:
receiving, via one or more hardware processors, configuration of a target Large Language Model (LLM) to be deployed, a user workload, an application type, and a plurality of latency constraints, as an input;
determining, via the one or more hardware processors, feasibility of each of a plurality of cloud instances comprising a plurality of hardware modules, with respect to accommodating the target LLM, comprising:
receiving configuration data of each of the plurality of cloud instances; and
performing a feasibility check for each of the plurality of cloud instances, comprises, determining, by comparing the configuration data of each of the plurality of cloud instances with the configuration of the target LLM, whether the target LLM is feasible with each of the plurality of cloud instances in terms of size of the target LLM and available storage space at each of the plurality of cloud instances;
determining, via the one or more hardware processors, by a performance model, a latency value for a plurality of batch sizes, for a plurality of target LLM-accelerator pairs, in each of a plurality of cloud instances identified as feasible based on the feasibility check; and
generating, via the one or more hardware processors, a recommendation of one of the plurality of cloud instances identified as feasible, based on the determined latency, a measured cost of deployment, the user workload, the application type, the plurality of latency constraints, and an evaluated performance, wherein the recommended cloud instance is used to host the target LLM to perform an application for which the application type is received.

### Claim 2 (depends on 1)

The processor implemented method of claim 1, wherein the performance model is a machine learning (ML) based model trained on a training data comprising a plurality of model defining parameters, a plurality of hardware defining parameters, and a plurality of application related features.

### Claim 3 (depends on 1)

The processor implemented method of claim 1, wherein the performance of each of the cloud instances identified as feasible, is evaluated with respect to the determined latency, and a throughput measured in terms of queries per hour.

### Claim 4 (depends on 2)

The processor implemented method of claim 2, wherein,
the plurality of model defining parameters comprise a) total number of parameters, b) total number of heads, c) dimension of each of the heads, d) number of key-value heads, e) total decoder layers, f) an embedding dimension, g) dimension of a feed-forward network, h) a maximum context length supported by the target LLM, i) total compute Operations, j) total memory operations, and k) total number of feed-forward networks,
the plurality of hardware defining parameters comprise a) a maximum compute and memory bandwidth, b) total number of hardware accelerators in each of the plurality of cloud instances, and c) an inter-device communication latency, and
the plurality of application related features comprise a) an average output context length, and b) an average input context length.

### Claim 5 (depends on 4)

The processor implemented method of claim 4, wherein the total compute operations and the total memory operations are estimated using a prompting technique, comprising:
prompting at least one reference LLM, by sending to the at least one reference LLM a base prompt that indicates how to calculate the total memory operations and the total compute operations of a plurality of layers of the target LLM;
computing, by the at least one reference LLM, in response to the base prompt, values of the total memory operations and the total compute operations; and
verifying, using an estimator, the computed values of the total memory operations and the total compute operations, wherein, an error value, if measured while verifying the computed values, is used as a feedback to improve equations used in the base prompt to calculate the total memory operations and the total compute operations.

### Claim 6 (depends on 1)

The processor implemented method of claim 1, wherein the performance model is trained using:
a Time To First Token (TTFT) formulated as:
TTFT
=
k
1
·
i
2
+
k
2
·
b
2
+
2
·
k
3
·
i
·
b
+
2
·
k
4
·
i
+
2
·
k
5
·
b
+
2
·
k
6
,
where,
i is input sequence length, b is batch size, and k1, k2, k3, k4, k5, and k6 are constants with values optimized using an optimizer, and
a next_token_latency computed as:
next_token
⁢
_latency
=
(
total_new
⁢
_tokens
-
1
)
/
(
med_thr
)
,
where,
(med_thr) represents a median throughput on a throughput curve, and total_new_tokens represents total number of output tokens to be generated in a given batch,
wherein, a target latency for training the performance model is obtained as summation of the TTFT and the next_token_latency.

### Claim 7

A system, comprising:
one or more hardware processors;
a communication interface; and
a memory storing a plurality of instructions, wherein the plurality of instructions cause the one or more hardware processors to:
receive configuration of a target Large Language Model (LLM) to be deployed, a user workload, an application type, and a plurality of latency constraints, as an input;
determine feasibility of each of a plurality of cloud instances comprising a plurality of hardware modules, with respect to accommodating the target LLM, by:
receiving configuration data of each of the plurality of cloud instances; and
performing a feasibility check for each of the plurality of cloud instances, comprises, determining, by comparing the configuration data of each of the plurality of cloud instances with the configuration of the target LLM, whether the target LLM is feasible with each of the plurality of cloud instances in terms of size of the target LLM and available storage space at each of the plurality of cloud instances;
determine by a performance model, a latency value for a plurality of batch sizes, for a plurality of target LLM-accelerator pairs, in each of a plurality of cloud instances identified as feasible based on the feasibility check; and
generate a recommendation of one of the plurality of cloud instances identified as feasible, based on the determined latency, a measured cost of deployment, the user workload, the application type, the plurality of latency constraints, and an evaluated performance, wherein the recommended cloud instance is used to host the target LLM to perform an application for which the application type is received.

### Claim 8 (depends on 7)

The system of claim 7, wherein the performance model is a machine learning (ML) based model trained on a training data comprising a plurality of model defining parameters, a plurality of hardware defining parameters, and a plurality of application related features.

### Claim 9 (depends on 7)

The system of claim 7, wherein the one or more hardware processors are configured to evaluate performance of each of the cloud instances identified as feasible, with respect to the determined latency, and a throughput measured in terms of queries per hour.

### Claim 10 (depends on 8)

The system of claim 8, wherein,
the plurality of model defining parameters comprise a) total number of parameters, b) total number of heads, c) dimension of each of the heads, d) number of key-value heads, e) total decoder layers, f) an embedding dimension, g) dimension of a feed-forward network, h) a maximum context length supported by the target LLM, i) total compute Operations, j) total memory operations, and k) total number of feed-forward networks,
the plurality of hardware defining parameters comprise a) a maximum compute and memory bandwidth, b) total number of hardware accelerators in each of the plurality of cloud instances, and c) an inter-device communication latency, and
the plurality of application related features comprise a) an average output context length, and b) an average input context length.

### Claim 11 (depends on 10)

The system of claim 10, wherein the one or more hardware processors are configured to estimate the total compute operations and the total memory operations using a prompting technique, by:
prompting at least one reference LLM, by sending to the at least one reference LLM a base prompt that indicates how to calculate the total memory operations and the total compute operations of a plurality of layers of the target LLM;
computing, by the at least one reference LLM, in response to the base prompt, values of the total memory operations and the total compute operations; and
verifying, using an estimator, the computed values of the total memory operations and the total compute operations, wherein, an error value, if measured while verifying the computed values, is used as a feedback to improve equations used in the base prompt to calculate the total memory operations and the total compute operations.

### Claim 12 (depends on 7)

The system of claim 7, wherein the one or more hardware processors are configured to train the performance model using:
a Time To First Token (TTFT) formulated as:
TTFT
=
k
1
·
i
2
+
k
2
·
b
2
+
2
·
k
3
·
i
·
b
+
2
·
k
4
·
i
+
2
·
k
5
·
b
+
2
·
k
6
,
where,
i is input sequence length, b is batch size, and k1, k2, k3, k4, k5, and k6 are constants with values optimized using an optimizer, and
a next_token_latency computed as:
next_token
⁢
_latency
=
(
total_new
⁢
_tokens
-
1
)
/
(
med_thr
)
,
(med_thr) represents a median throughput on a throughput curve, and total_new_tokens represents total number of output tokens to be generated in a given batch,
wherein, a target latency for training the performance model is obtained as summation of the TTFT and the next_token_latency.

### Claim 13

One or more non-transitory machine-readable information storage mediums comprising one or more instructions which when executed by one or more hardware processors cause:
receiving configuration of a target Large Language Model (LLM) to be deployed, a user workload, an application type, and a plurality of latency constraints, as an input;
determining feasibility of each of a plurality of cloud instances comprising a plurality of hardware modules, with respect to accommodating the target LLM, comprising:
receiving configuration data of each of the plurality of cloud instances; and
performing a feasibility check for each of the plurality of cloud instances, comprises, determining, by comparing the configuration data of each of the plurality of cloud instances with the configuration of the target LLM, whether the target LLM is feasible with each of the plurality of cloud instances in terms of size of the target LLM and available storage space at each of the plurality of cloud instances;
determining by a performance model, a latency value for a plurality of batch sizes, for a plurality of target LLM-accelerator pairs, in each of a plurality of cloud instances identified as feasible based on the feasibility check; and
generating a recommendation of one of the plurality of cloud instances identified as feasible, based on the determined latency, a measured cost of deployment, the user workload, the application type, the plurality of latency constraints, and an evaluated performance, wherein the recommended cloud instance is used to host the target LLM to perform an application for which the application type is received.

### Claim 14 (depends on 13)

The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the performance model is a machine learning (ML) based model trained on a training data comprising a plurality of model defining parameters, a plurality of hardware defining parameters, and a plurality of application related features.

### Claim 15 (depends on 13)

The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the performance of each of the cloud instances identified as feasible, is evaluated with respect to the determined latency, and a throughput measured in terms of queries per hour.

### Claim 16 (depends on 14)

The one or more non-transitory machine-readable information storage mediums of claim 14, wherein the plurality of model defining parameters comprise a) total number of parameters, b) total number of heads, c) dimension of each of the heads, d) number of key-value heads, e) total decoder layers, f) an embedding dimension, g) dimension of a feed-forward network, h) a maximum context length supported by the target LLM, i) total compute Operations, j) total memory operations, and k) total number of feed-forward networks,
the plurality of hardware defining parameters comprise a) a maximum compute and memory bandwidth, b) total number of hardware accelerators in each of the plurality of cloud instances, and c) an inter-device communication latency, and
the plurality of application related features comprise a) an average output context length, and b) an average input context length.

### Claim 17 (depends on 16)

The one or more non-transitory machine-readable information storage mediums of claim 16, wherein the total compute operations and the total memory operations are estimated using a prompting technique, comprising:
prompting at least one reference LLM, by sending to the at least one reference LLM a base prompt that indicates how to calculate the total memory operations and the total compute operations of a plurality of layers of the target LLM;
computing, by the at least one reference LLM, in response to the base prompt, values of the total memory operations and the total compute operations; and
verifying, using an estimator, the computed values of the total memory operations and the total compute operations, wherein, an error value, if measured while verifying the computed values, is used as a feedback to improve equations used in the base prompt to calculate the total memory operations and the total compute operations.

### Claim 18 (depends on 13)

The one or more non-transitory machine-readable information storage mediums of claim 13, wherein the performance model is trained using:
a Time To First Token (TTFT) formulated as:
TTFT
=
k
1
·
i
2
+
k
2
·
b
2
+
2
·
k
3
·
i
·
b
+
2
·
k
4
·
i
+
2
·
k
5
·
b
+
2
·
k
6
,
where,
i is input sequence length, b is batch size, and k1, k2, k3, k4, k5, and k6 are constants with values optimized using an optimizer, and
a next_token_latency computed as:
next_token
⁢
_latency
=
(
total_new
⁢
_tokens
-
1
)
/
(
med_thr
)
,
where,
(med_thr) represents a median throughput on a throughput curve, and total_new_tokens represents total number of output tokens to be generated in a given batch,
wherein, a target latency for training the performance model is obtained as summation of the TTFT and the next_token_latency.
