Forecast-driven pre-provisioning and routing of voice traffic to large language models
By forecasting voice traffic patterns and pre-provisioning LLM instances based on these patterns, the technology addresses the latency issues in conventional systems, ensuring LLM instances are ready to handle requests, thus reducing cold-start and end-to-end latency.
Patent Information
- Application Number
- US19/764476
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2026-01-16
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-26
AI Technical Summary
Conventional routing and autoscaling systems for large language model (LLM) instances do not forecast voice traffic in advance, leading to increased end-to-end response latency due to cold-start work, as they rely on reactive signals and generic heuristics that do not account for temporal, language, or geographic patterns in voice traffic.
Generate a voice traffic forecast from observed patterns to pre-provision LLM instances, loading model weights and allocating resources before traffic arrival, ensuring they are in a ready state to reduce cold-start latency.
Significantly reduces cold-start latency and end-to-end response time by routing voice traffic to pre-provisioned LLM instances that have completed initialization, improving throughput and user experience in applications like healthcare voice agents.
Smart Images

Figure US20260378589A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present non-provisional patent application is a continuation-in-part of U.S. Patent Application No. 19 / 400,096, filed Nov. 25, 2025. The present non-provisional patent application also claims priority to and the benefit of U.S. Provisional Application No. 63 / 961,858, filed Jan. 16, 2026. Both applications are incorporated herein by reference in their entireties and for all purposes as if completely and fully set forth herein.BACKGROUND OF THE INVENTIONField of the Invention
[0002] This invention relates generally to systems and techniques to provide load-aware routing of voice traffic to large language model (LLM) instances by generating a voice traffic forecast from voice traffic patterns and pre-provisioning one or more LLM instances prior to receipt of forecasted voice traffic requests.Description of the Related Art
[0003] Conventional routing and autoscaling systems for LLM instances do not forecast voice traffic in advance of its arrival. Load balancers in these systems select a target LLM instance based on generic signals such as connection count, queue depth, or coarse hardware utilization. Autoscaling components begin adding capacity only after observed demand exceeds a threshold. This results in voice traffic requests arriving at LLM instances that have not yet completed cold-start work. The LLM instances are still loading model weights into memory, still allocating compute resources, and still warming key-value caches. Each voice traffic request therefore waits for the cold-start work to complete before receiving a response, which increases end-to-end response latency. Existing approaches to LLM capacity planning rely on reactive signals that trigger provisioning after demand has already materialized. Other approaches apply generic web-traffic heuristics that are weakly correlated with LLM performance determinants. Still other approaches treat each voice traffic request as statistically independent of other voice traffic requests. These approaches do not use the temporal, language, geographic, or utterance-level patterns that voice traffic exhibits to drive provisioning of LLM instances in advance of voice traffic arrival.BRIEF DESCRIPTION OF THE DRAWINGS
[0004] A more complete understanding of the present disclosure may be obtained by reference to the following Detailed Description when taken in conjunction with the accompanying Drawings. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The same reference numbers in different figures indicate similar or identical items.
[0005] FIG. 1 is a block diagram of a system illustrating a large language model (LLM) cluster, a routing engine, an orchestrator, and a pre-provisioning process that provisions LLM instances to a ready state prior to receipt of forecasted voice traffic requests, according to some embodiments.
[0006] FIG. 2 is a block diagram of a system illustrating an orchestrator that manages the pre-provisioning lifecycle of individual LLM instances and issues a ready-state notice that gates routing of forecasted voice traffic requests, according to some embodiments.
[0007] FIG. 3 is a block diagram of a system illustrating a pre-provisioning process that analyzes voice traffic data to identify a set of voice traffic patterns, according to some embodiments.
[0008] FIG. 4 is a block diagram of a system illustrating internal computational state of an active LLM instance, a provisioning LLM instance, and a pre-provisioned LLM instance in a ready state, according to some embodiments.
[0009] FIG. 5 is a block diagram of a system illustrating an internal structure of the voice traffic pattern identifier, an internal structure of the voice traffic forecast generator and an internal structure of the pre-provisioning manager, according to some embodiments.
[0010] FIG. 6 is a block diagram of a system illustrating a voice traffic forecast generated by the voice traffic forecast generator, according to some embodiments.
[0011] FIG. 7 is a block diagram of a system illustrating a temporal flow of pre-provisioning, ready-state notification, and routing of a forecasted voice traffic request to a pre-provisioned LLM instance, according to some embodiments.
[0012] FIG. 8 is a block diagram of a system illustrating a temporal comparison between a route to an LLM instance that is not pre-provisioned and a route to a pre-provisioned LLM instance, according to some embodiments.
[0013] FIG. 9 is a flowchart of a process illustrating analyzing voice traffic data to identify a set of voice traffic patterns, generating a voice traffic forecast, pre-provisioning LLM instances, and routing forecasted voice traffic requests to pre-provisioned LLM instances in a ready state, according to some embodiments.
[0014] FIG. 10 is a chart illustrating a target serving capacity of LLM instances at a future time slot sized as a multiple of a number of voice traffic requests predicted by the voice traffic forecast at the future time slot, according to some embodiments.
[0015] FIG. 11 is example software code illustrating analysis of voice traffic data to identify a set of voice traffic patterns, according to some embodiments.
[0016] FIG. 12 is a chart illustrating concurrent voice traffic across categories of voice traffic over an observation window, according to some embodiments.
[0017] FIG. 13 is a chart illustrating zero error counts across LLM instances during a spike window of voice traffic, evidencing effectiveness of pre-provisioning, according to some embodiments.
[0018] FIG. 14 is a chart illustrating active instance counts of pre-provisioned LLM instances across a plurality of LLM models during a spike window of voice traffic, evidencing that the LLM instances were pre-provisioned prior to receipt of forecasted voice traffic requests, according to some embodiments.
[0019] FIG. 15 is a chart illustrating utilized capacity and available capacity per LLM instance across a plurality of LLM instances, evidencing that the LLM instances have available capacity provided by pre-provisioning at a multiple of predicted voice traffic requests, according to some embodiments.
[0020] FIG. 16 is a flowchart of a process for routing voice traffic requests to pre-provisioned LLM instances in a ready state, according to some embodiments.
[0021] FIG. 17 is a timing diagram 1700 illustrating pre-provisioning of subsequently invoked LLM instances during a multi-turn session of a voice agent application, according to some embodiments.
[0022] FIG. 18 is a block diagram illustrating an example configuration of a server hosting one or more components of the systems and techniques described herein, according to some embodiments.DETAILED DESCRIPTION
[0023] The technology disclosed can be practiced as a system, method, or article of manufacture. One or more features of an implementation can be combined with the base implementation. Implementations that are not mutually exclusive are taught to be combinable. One or more features of an implementation can be combined with other implementations. This disclosure periodically reminds the user of these options. Omission from some implementations of recitations that repeat these options should not be taken as limiting the combinations taught in the preceding sections. These recitations are hereby incorporated forward by reference into each of the following implementations.
[0024] One or more implementations of the technology disclosed take the form of a computer product. The computer product comprises a non-transitory computer readable storage medium with computer usable program code that performs the method steps described herein. One or more implementations also take the form of an apparatus comprising a memory and at least one processor coupled to the memory and operative to perform the method steps. One or more implementations further take the form of one or more modules configured to perform one or more of the method steps described herein. The one or more modules comprise hardware, software executing on one or more hardware processors, or a combination of hardware and software. The software is stored in one or more computer readable storage media.
[0025] The clauses described in this section can be combined as features. In the interest of conciseness, the combinations of features are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in the clauses described in this section can readily be combined with sets of base features identified as implementations in other sections of this application. These clauses are not meant to be mutually exclusive, exhaustive, or restrictive; and the technology disclosed is not limited to these clauses but rather encompasses all possible combinations, modifications, and variations within the scope of the claimed technology and its equivalents.
[0026] Other implementations of the clauses described in this section can include a non-transitory computer readable storage medium storing instructions executable by a processor to perform any of the clauses described in this section. Yet another implementation of the clauses described in this section can include a system including memory and one or more processors operable to execute instructions, stored in the memory, to perform any of the clauses described in this section.
[0027] The systems and techniques described herein are designed to route voice traffic to one or more LLM instances while substantially reducing cold-start initialization latency. The systems and techniques generate a voice traffic forecast from voice traffic patterns identified in voice traffic data observed during a previous time interval. The voice traffic forecast predicts a number of voice traffic requests at a future time slot. Prior to receipt of the voice traffic requests predicted by the voice traffic forecast, the systems and techniques provision the one or more LLM instances based at least in part on the voice traffic forecast, so that each of the one or more LLM instances reaches a ready state before the voice traffic requests arrive. Each of the one or more LLM instances that has reached the ready state is referred to as a pre-provisioned LLM instance. The pre-provisioned LLM instance has loaded model weights, allocated compute resources, and pre-warmed key-value (KV) caches. Each voice traffic request is routed to a pre-provisioned LLM instance that is in the ready state. Routing to the pre-provisioned LLM instance in the ready state reduces cold-start latency.
[0028] The systems and methods described herein route the voice traffic to the one or more LLM instances using the voice traffic forecast rather than using reactive measurements of current load. The systems and methods described herein are configured to (i) analyze the voice traffic data observed during the previous time interval to identify the voice traffic patterns, (ii) generate the voice traffic forecast based at least in part on the voice traffic patterns, (iii) provision the one or more LLM instances based at least in part on the voice traffic forecast prior to receipt of the voice traffic requests predicted by the voice traffic forecast, and (iv) route the voice traffic requests to the pre-provisioned LLM instances that are in the ready state. The result is a significant reduction of cold-start latency by routing the voice traffic requests to the pre-provisioned LLM instances in the ready state and a reduction in end-to-end response latency experienced by a user of a downstream application that consumes responses from the LLM instances.
[0029] Conventional routing and autoscaling systems do not achieve this result of reducing cold-start latency and reducing end-to-end response latency. Existing load balancers select a target LLM instance based on generic signals such as connection count, queue depth, or coarse hardware utilization. Additionally, existing autoscaling systems begin adding capacity only after observed demand exceeds a threshold. These existing systems treat voice traffic as generic stateless web traffic and make capacity decisions only after demand has already materialized. By the time a conventional autoscaling system begins adding capacity, the voice traffic requests that triggered the scaling decision are already arriving at LLM instances that have not yet completed cold-start work. Those LLM instances are still loading model weights into graphics processing unit (GPU) memory, still allocating compute resources, and still warming key-value caches. Each voice traffic request therefore waits for the cold-start work to complete before receiving a response, which increases end-to-end response latency.
[0030] Voice traffic exhibits temporal patterns tied to, for example, user schedules and language distributions, as well as geographic distributions tied to the service footprint of a voice source, characteristic utterance duration distributions, and real-time versus batch ratios. The systems and methods extract the voice traffic patterns from the voice traffic data observed during the previous time interval and generate the voice traffic forecast. Prior to receipt of the voice traffic requests predicted by the voice traffic forecast, the systems and methods pre-provision the one or more LLM instances based at least in part on the voice traffic forecast. The pre-provisioning step performs the cold-start work during a time interval before the predicted voice traffic requests arrive. The pre-provisioning step loads the model weights into the GPU memory, allocates the compute resources, and pre-warms the key-value caches to generate the pre-provisioned LLM instances in the ready state. When the predicted voice traffic requests arrive, the systems and methods route those voice traffic requests to the pre-provisioned LLM instances that are in the ready state. Each voice traffic request is directed to the pre-provisioned LLM instance that has already completed the cold-start work.
[0031] The systems and methods described herein solve this problem by treating voice traffic as a structured, forecastable signal. It was not expected, and would not have been obvious, that voice traffic forecasting could be coupled with provisioning of the one or more LLM instances in a manner that produces the pre-provisioned LLM instance in the ready state. Conventional routing and autoscaling systems did not recognize voice traffic as the structured forecastable signal, and so did not have a reason to couple forecasting with pre-provisioning of the one or more LLM instances in this manner. The disclosed coupling produces the pre-provisioned LLM instances in the ready state prior to receipt of the voice traffic requests predicted by the voice traffic forecast, thereby reducing end-to-end response latency. The cold-start latency reduction by routing voice traffic requests to individual pre-provisioned LLM instances in the ready state is on the order of seconds to tens of seconds, which is a substantial portion of the end-to-end response latency of voice traffic processing. This result is not achieved by any conventional routing or autoscaling system.
[0032] The disclosed technology supports a range of embodiments that further refine the core pipeline. In some embodiments, the voice traffic forecast is generated by applying a plurality of predictive models to the voice traffic patterns to generate a short-term forecast, a medium-term forecast, a long-term forecast, or any combination thereof. In some embodiments, the voice traffic forecast is generated based at least in part on application-side session data gathered from the voice source and hardware-side infrastructure data gathered from a hardware telemetry. The joint use of the application-side session data and the hardware-side infrastructure data to generate the voice traffic forecast is a combination not present in conventional routing or autoscaling systems. In some embodiments, the voice traffic comprises voice-agent inference requests generated by a voice agent application that conducts a multi-turn session with the user, including healthcare voice agent applications that place and receive calls to and from patients. The voice traffic forecast in these embodiments predicts traffic to be generated by a subsequently invoked LLM instance based at least in part on the voice traffic patterns of one or more preceding turns of the multi-turn session. Inter-turn latency between sequential turns of the multi-turn session is thereby reduced. Of course, it should be understood that these embodiments are merely examples of the disclosed technology and should not be construed as limiting the disclosed technology. Other embodiments of the disclosed technology may be used.
[0033] The disclosed technology is directed to a specific improvement in computer technology rather than to an abstract idea. The technology claims a particular machine-implemented method in which the systems and methods generate the voice traffic forecast from the voice traffic patterns, provision the one or more LLM instances based at least in part on the voice traffic forecast prior to receipt of the voice traffic requests predicted by the voice traffic forecast, and route the voice traffic requests to the pre-provisioned LLM instances that are in the ready state. The ready state performs a specific computational function in that the pre-provisioned LLM instance in the ready state has already loaded the model weights into the GPU memory, already allocated the compute resources, and already pre-warmed the key-value caches. The pre-provisioned LLM instance is therefore available to serve the voice traffic request with substantially reduced cold-start initialization latency. The voice traffic forecast and the pre-provisioning action together impose a temporal constraint on the disclosed technology that causes the pre-provisioned LLM instances in the ready state to be prepared before the voice traffic requests arrive for routing rather than after the voice traffic requests have already queued in the router. This temporal constraint is how the disclosed technology reduces cold-start latency and reduces the end-to-end response latency experienced by the user of the downstream application that consumes responses from the pre-provisioned LLM instances in the ready state. The reduction in end-to-end response latency is a direct consequence of the temporal constraint, not a result of an external budget or a reactive autoscaling loop. Thus, the disclosed technology results in an improvement to the computer itself because it reduces cold-start latency at the pre-provisioned LLM instances in the ready state in a manner that reactive routing and autoscaling systems cannot achieve.
[0034] As a first example, the disclosed technology is deployed in a healthcare voice agent platform that places and receives voice agent calls to and from patients. In this example, the voice traffic comprises the voice-agent inference requests generated by the voice agent application that conducts the multi-turn session with a patient. The multi-turn session includes a sequence of invoked LLM instances. Individual invoked LLM instances in the sequence handle one or more turns of the multi-turn session. The systems and methods analyze the voice traffic data observed during the previous time interval to identify the voice traffic patterns. In some embodiments, the voice traffic patterns include a temporal distribution reflecting patient call timing, a geographic distribution reflecting the service footprint of the healthcare voice agent platform, a language distribution reflecting the languages spoken by the patient population, and an utterance duration distribution reflecting typical patient turn lengths. The systems and methods generate the voice traffic forecast. In this example, the voice traffic forecast predicts a number of the voice-agent inference requests at the future time slot based at least in part on the voice traffic patterns. Prior to receipt of the predicted voice-agent inference requests, the systems and methods provision the one or more LLM instances so that each pre-provisioned LLM instance reaches the ready state before the predicted voice-agent inference requests arrive. The systems and methods then route each voice-agent inference request to a pre-provisioned LLM instance that is in the ready state. Routing the voice-agent inference requests to the pre-provisioned LLM instances in this manner reduces the end-to-end response latency for the voice agent application and improves the voice experience for the patient receiving the voice agent call. In some embodiments, the voice traffic forecast predicts traffic to be generated by a subsequently invoked LLM instance based at least in part on the voice traffic patterns of one or more preceding turns of the multi-turn session, which reduces inter-turn latency experienced by the patient between sequential turns of the multi-turn session. From a technical benefit perspective, this example illustrates that the disclosed technology operates on the LLM instances running on specific hardware, performs the cold-start work such as loading the model weights into the GPU memory before the voice-agent inference requests arrive, and routes the voice-agent inference requests only to the pre-provisioned LLM instances that have reached the ready state. The disclosed technology thereby reduces and, in some cases, eliminates cold-start latency for each voice-agent inference request that is routed. This reduction is a concrete operational improvement to how the pre-provisioned LLM instances function during the multi-turn session, as compared to LLM instances that have not been pre-provisioned.
[0035] As a second example, the disclosed technology is deployed in a computing environment that combines the application-side session data with the hardware-side infrastructure data to generate the voice traffic forecast. The systems and methods collect the application-side session data from the voice source and collect the hardware-side infrastructure data from the hardware telemetry. In some embodiments, the application-side session data includes session metadata, utterance timing, and session length distributions. In some embodiments, the hardware-side infrastructure data includes compute utilization, memory utilization, cache state, or context window utilization of the one or more LLM instances. The systems and methods apply the plurality of predictive models to the voice traffic patterns to generate the short-term forecast, the medium-term forecast, the long-term forecast, or any combination thereof. In some embodiments, the short-term forecast covers a near-future interval during which fine-grained voice traffic variation is expected, the medium-term forecast covers a longer interval over which aggregate voice traffic volume is predicted, and the long-term forecast covers an interval over which multi-cycle voice traffic variation is expected. The systems and methods provision the one or more LLM instances based at least in part on one or more of the short-term forecast, the medium-term forecast, or the long-term forecast to generate the pre-provisioned LLM instances in the ready state. Using multi-horizon forecasting in this manner improves pre-provisioning accuracy and reduces pre-provisioning lag time during one or more future time slots. In some embodiments, the systems and methods determine that a serving capacity of currently active LLM instances is insufficient to serve the number of voice traffic requests predicted by the voice traffic forecast at the future time slot. In such embodiments, the systems and methods determine a target serving capacity at the future time slot and pre-provision a number of pre-provisioned LLM instances sufficient to meet the target serving capacity. From a technical benefit perspective, this example illustrates that the voice traffic forecast is generated from concrete machine-readable inputs gathered from both the voice source and the hardware telemetry, that the voice traffic forecast drives a measurable pre-provisioning action on specific LLM hardware to generate the pre-provisioned LLM instances in the ready state, and that the resulting pre-provisioned LLM instances are sized to the target serving capacity that has been computed rather than to an arbitrary capacity value. The joint use of the application-side session data and the hardware-side infrastructure data to generate the voice traffic forecast is a combination of concrete machine inputs that operates on a particular hardware state.
[0036] In a third example, the disclosed technology is deployed in a computing environment in which a plurality of specialized LLM instances handle different points of a conversation. During the multi-turn session, different ones of the specialized LLM instances are invoked at different points in time as the conversation progresses. Each specialized LLM instance generates a distinct voice traffic pattern when invoked. The systems and methods analyze the voice traffic data observed during the previous time interval to identify the voice traffic patterns associated with each of the specialized LLM instances. The systems and methods generate the voice traffic forecast. In this example, the voice traffic forecast predicts, for the future time slot of the multi-turn session, which specialized LLM instance is to be invoked next and a number of voice traffic requests that will be directed to that specialized LLM instance. Prior to receipt of the voice traffic requests predicted by the voice traffic forecast, the systems and methods pre-provision one or more specialized LLM instances of the specialized type predicted for the future time slot. Each pre-provisioned specialized LLM instance reaches the ready state before the predicted voice traffic requests arrive. The systems and methods then route the voice traffic requests for the future time slot to the pre-provisioned specialized LLM instances of the predicted specialized type. In some embodiments, the voice traffic forecast for a subsequently invoked specialized LLM instance is generated based at least in part on the voice traffic patterns of one or more preceding turns of the multi-turn session. From a technical benefit perspective, this example illustrates that the disclosed technology anticipates not only aggregate voice traffic volume but also the specific specialized LLM instance that each upcoming voice traffic request will need. Pre-provisioning the specialized LLM instance in advance of its invocation reduces the cold-start latency that would otherwise be incurred when the conversation transitions from one specialized LLM instance to the next. This reduction, or in some cases, removal of inter-model cold-start latency is a concrete operational improvement to how the multi-turn session progresses across the plurality of specialized LLM instances and reduces inter-turn response latency in a manner that reactive provisioning cannot achieve.
[0037] FIG. 1 is a block diagram of a system 100 illustrating a pre-provisioning process 116 that provisions LLM instances to a ready state prior to receipt of forecasted voice traffic requests, and a routing engine 114 that routes the forecasted voice traffic requests to the pre-provisioned LLM instances upon the pre-provisioned LLM instances reaching the ready state, according to some embodiments. The system 100 includes a device 102 connected via one or more networks 106 to a voice traffic handler 104, the routing engine 114, the pre-provisioning process 116, an orchestrator 118, and an LLM cluster 120. The system 100 processes voice traffic requests through the voice traffic handler 104 and routes individual voice traffic requests to individual LLM instances within the LLM cluster 120. FIG. 1 is a description of the overall deployment environment in which the pre-provisioning process 116 and the routing engine 114 operate, and the elements shown here are referenced throughout the detailed description of FIGS. 2-15.
[0038] The device 102 is a user device associated with a human 108. The device 102 may be a smart phone, a desk phone, a computing device with a microphone and a speaker, or another type of user device through which the human 108 speaks utterances 112 and receives audio data 110. The device 102 captures the utterances 112 from the human 108 and sends the utterances 112 over the one or more networks 106 to the voice traffic handler 104. The device 102 also receives the audio data 110 generated by the voice traffic handler 104 over the one or more networks 106 and plays the audio data 110 back to the human 108. In some embodiments, the human 108 is a patient and the device 102 is a patient device. In some embodiments, the patient receives a voice agent call placed by a voice agent application implemented at the voice traffic handler 104. The patient device captures the utterances 112 from the patient and sends the utterances 112 over the one or more networks 106 to the voice traffic handler 104. The patient device receives the audio data 110 generated by the voice traffic handler 104 and plays the audio data 110 back to the patient.
[0039] The voice traffic handler 104 establishes a voice session between the device 102 and the LLM cluster 120. The voice traffic handler 104 receives the utterances 112 from the device 102 and generates voice traffic requests. Individual voice traffic requests are directed to individual LLM instances in the LLM cluster 120. The voice traffic handler 104 sends the voice traffic requests to the routing engine 114. The voice traffic handler 104 also emits voice traffic data to the pre-provisioning process 116. The voice traffic data comprises observations of voice traffic that the voice traffic handler 104 previously served during a previous time interval. In some embodiments, the voice traffic data comprises temporal data, real-time data, batch data, language-specific data, geographic data, utterance duration data, or any combination thereof. In some embodiments, the voice traffic handler 104 is implemented as a voice agent application that conducts a multi-turn voice conversation between the human 108 and one or more LLM instances of the LLM cluster 120. In some embodiments, the voice traffic handler 104 is implemented as a voice agent application and individual voice traffic requests are voice-agent inference requests corresponding to one or more turns of a multi-turn session between the human 108 and the voice agent application.
[0040] The LLM cluster 120 comprises a set of LLM instances deployed on compute resources. Individual LLM instances in the LLM cluster 120 are configured to process voice traffic requests. Individual LLM instances in the LLM cluster 120 are in one of four operational states. The four operational states are an un-provisioned state, a provisioning state, a ready state, and an active state. The un-provisioned state is the operational state of an LLM instance that has not yet been allocated compute resources and has not yet had model weights loaded into GPU memory. GPU memory is one example of a particular memory location into which the model weights are loaded. In some embodiments, the particular memory location is a particular memory location that is accessible to a GPU. Examples of the particular memory location that is accessible to the GPU include the GPU memory, host memory accessible to the GPU over a peripheral component interconnect express (PCIe) bus, host memory accessible to the GPU over NVLink, unified memory shared between the GPU and a central processing unit (CPU), high-bandwidth memory (HBM), or any other memory location from which the GPU is configured to read the model weights during inference. The un-provisioned state is the operational state from which the pre-provisioning process 116 begins provisioning a new LLM instance. The un-provisioned state is not shown in FIG. 1 because no instantiated LLM instance exists in the un-provisioned state. The provisioning state, the ready state, and the active state correspond to three categories of instantiated LLM instances depicted in the LLM cluster 120. The three categories are a set of active LLM instances 122(1) through 122(N) (N>0), a set of provisioning LLM instances 124(1) through 124(N) (N>0), and a set of pre-provisioned ready-state LLM instances 126(1) through 126(N) (N>0).
[0041] The set of active LLM instances 122(1) through 122(N) are LLM instances that are currently serving voice traffic requests. Individual active LLM instances 122 have model weights loaded into GPU memory, have compute resources allocated, and have KV caches that hold context for voice traffic requests that individual active LLM instances 122 are currently processing. Individual active LLM instances 122 accept voice traffic requests routed by the routing engine 114 and generate responses corresponding to the voice traffic requests.
[0042] The set of provisioning LLM instances 124(1) through 124(N) are LLM instances that the pre-provisioning process 116 is currently provisioning but that have not yet reached the ready state. Individual provisioning LLM instances 124 are in an intermediate state in which at least one of the model weights, the compute resources, or the KV cache of individual provisioning LLM instances 124 has not yet been initialized. Individual provisioning LLM instances 124 do not accept voice traffic requests during individual provisioning LLM instances 124 being in the intermediate state. Individual provisioning LLM instances 124 are not yet configured to process voice traffic requests with substantially reduced cold-start initialization latency.
[0043] The set of pre-provisioned ready-state LLM instances 126(1) through 126(N) are LLM instances that have completed the pre-provisioning and are in the ready state. Individual pre-provisioned LLM instances 126 in the ready state have model weights loaded into the GPU memory, have compute resources allocated, and have KV caches that are pre-warmed. The GPU memory referenced for individual pre-provisioned LLM instances 126 is one example of a particular memory location into which the model weights are loaded. In some embodiments, the particular memory location is a particular memory location that is accessible to a GPU of individual pre-provisioned LLM instances 126. Examples of the particular memory location that is accessible to the GPU include the GPU memory, host memory accessible to the GPU over a PCIe bus, host memory accessible to the GPU over NVLink, unified memory shared between the GPU and a CPU, HBM, or any other memory location from which the GPU is configured to read the model weights during inference. Individual pre-provisioned LLM instances 126 in the ready state are configured to process voice traffic requests with substantially reduced cold-start initialization latency. The ready state of individual pre-provisioned LLM instances 126 comprises model weights loaded into a particular memory location, compute resources allocated, and key-value caches pre-warmed.
[0044] The pre-provisioning process 116 generates individual pre-provisioned LLM instances 126 prior to receipt of individual voice traffic requests predicted by the voice traffic forecast. The pre-provisioning process 116 receives the voice traffic data from the voice traffic handler 104. The pre-provisioning process 116 analyzes the voice traffic data to identify individual voice traffic patterns in a set of voice traffic patterns. The voice traffic data was observed during the previous time interval. The pre-provisioning process 116 generates the voice traffic forecast based at least in part on the set of voice traffic patterns. The voice traffic forecast predicts a number of voice traffic requests at a future time slot. Prior to receipt of the individual voice traffic requests predicted by the voice traffic forecast, the pre-provisioning process 116 provisions one or more LLM instances, based at least in part on the voice traffic forecast, to generate the pre-provisioned LLM instances 126 in the ready state. The internal structure of the pre-provisioning process 116 is further described with reference to FIGS. 3, 5, and 6. The three-state architecture of the LLM cluster 120 is further described with reference to FIGS. 2 and 4.
[0045] The orchestrator 118 mediates communication between the pre-provisioning process 116, the LLM cluster 120, and the routing engine 114. The orchestrator 118 receives prepare instance instructions (referred to herein as prepare instructions) from the pre-provisioning process 116 and dispatches the prepare instructions to individual LLM instances in the LLM cluster 120 to transition individual LLM instances from the un-provisioned state, through the provisioning state, and into the ready state. Upon completion of provisioning, each of the individual pre-provisioned LLM instances 126 transmits a readiness signal to the orchestrator 118 confirming that model weights are loaded into a particular memory location, compute resources are allocated, and key-value caches are pre-warmed. The orchestrator 118 receives the readiness signal from each of the individual pre-provisioned LLM instances 126 upon completion of provisioning. The orchestrator 118 transmits a ready-state notice to the routing engine 114 in response to the readiness signal. The ready-state notice identifies individual pre-provisioned LLM instances 126 that have reached the ready state. In this way, the routing engine 114 does not route forecasted voice traffic requests to individual provisioning LLM instances 124. The routing engine 114 routes the forecasted voice traffic requests to individual pre-provisioned LLM instances 126 only upon individual pre-provisioned LLM instances 126 reaching the ready state. The routing engine 114 routes individual voice traffic requests to individual pre-provisioned LLM instances 126 conditioned on receipt of the ready-state notice from the orchestrator 118.
[0046] The routing engine 114 receives the voice traffic requests from the voice traffic handler 104. The routing engine 114 also receives the ready-state notice from the orchestrator 118 identifying individual pre-provisioned LLM instances 126 in the ready state. The routing engine 114 routes individual voice traffic requests to individual pre-provisioned LLM instances 126 conditioned on the individual pre-provisioned LLM instances 126 being in the ready state. The routing engine 114 routes individual voice traffic requests to the pre-provisioned LLM instances 126 in the ready state rather than to LLM instances that are not pre-provisioned, and substantially reduces a cold-start latency for the individual voice traffic requests that are routed.
[0047] Thus, the system 100 illustrates a deployment in which the pre-provisioning process 116 analyzes the voice traffic data to identify the set of voice traffic patterns, generates the voice traffic forecast that predicts the number of voice traffic requests at the future time slot, provisions one or more LLM instances prior to receipt of the voice traffic requests predicted by the voice traffic forecast to generate the pre-provisioned LLM instances 126 in the ready state, and the routing engine 114 routes individual voice traffic requests to the individual pre-provisioned LLM instances 126 conditioned on the individual pre-provisioned LLM instances 126 being in the ready state. By provisioning LLM instances prior to receipt of the forecasted voice traffic requests and by routing the voice traffic requests only to pre-provisioned LLM instances 126 in the ready state, the system 100 significantly reduces the cold-start latency that a voice traffic request would otherwise incur when routed to an LLM instance that is not pre-provisioned. This reduces end-to-end response latency of voice traffic processing and improves throughput of the system 100. In some embodiments in which the voice traffic handler 104 is implemented as the voice agent application, the system 100 improves throughput of the voice agent application by routing the voice-agent inference requests to individual pre-provisioned LLM instances 126 in the ready state. In some embodiments in which the human 108 is a patient receiving a voice agent call, the reduction in the end-to-end response latency improves the voice experience of the patient during the voice agent call.
[0048] FIG. 2 is a block diagram of a system 200 illustrating the signal flow between the routing engine 114, the orchestrator 118, the pre-provisioning process 116, and the LLM cluster 120, according to some embodiments. The system 200 depicts the routing engine 114 differentiating between current voice traffic requests received in real time and forecasted voice traffic requests predicted by the voice traffic forecast. The system 200 also depicts the orchestrator 118 managing the pre-provisioning lifecycle of individual LLM instances in the LLM cluster 120, and the orchestrator 118 issuing the ready-state notice to the routing engine 114 upon individual LLM instances reaching the ready state.
[0049] The routing engine 114 receives two categories of voice traffic requests. The first category is a current request that the voice traffic handler 104 sends to the routing engine 114 in real time. The second category is a forecasted request that the voice traffic forecast predicts will arrive at a future time slot. The routing engine 114 routes the current request to individual active LLM instances 122. The routing engine 114 routes the forecasted request to individual pre-provisioned LLM instances 126 conditioned on individual pre-provisioned LLM instances 126 being in the ready state.
[0050] The orchestrator 118 receives a prepare instruction from the pre-provisioning process 116. The prepare instruction identifies an LLM instance to be transitioned from the unprovisioned state, through the provisioning state, and into the ready state. The orchestrator 118 dispatches the prepare instruction to individual LLM instances in the LLM cluster 120. Upon receipt of the prepare instruction, an LLM instance enters the provisioning state and becomes one of individual provisioning LLM instances 124. Individual provisioning LLM instances 124 then begin loading model weights into GPU memory, allocating compute resources, and pre-warming the KV cache.
[0051] The ready-state probe 202 is a check that the orchestrator 118 performs to determine whether individual provisioning LLM instances 124 have completed the provisioning and reached the ready state. The orchestrator 118 issues the ready-state probe 202 to individual provisioning LLM instances 124 to verify three conditions. The first condition is that the model weights are loaded into the GPU memory. The second condition is that the compute resources are allocated. The third condition is that the KV cache is pre-warmed. Upon all three conditions being satisfied, the orchestrator 118 reclassifies the LLM instance from individual provisioning LLM instances 124 to individual pre-provisioned LLM instances 126 in the ready state. The orchestrator 118 then issues the ready-state notice to the routing engine 114.
[0052] The ready-state notice identifies individual pre-provisioned LLM instances 126 that have reached the ready state. In response to the ready-state notice, the routing engine 114 adds individual pre-provisioned LLM instances 126 to a set of routing targets eligible to receive forecasted voice traffic requests. Prior to receipt of the ready-state notice, the routing engine 114 does not route forecasted voice traffic requests to individual provisioning LLM instances 124. The ready-state notice gates the routing of forecasted voice traffic requests on the ready state of individual pre-provisioned LLM instances 126.
[0053] Thus, the system 200 illustrates the signal flow by which the routing engine 114 routes current voice traffic requests to individual active LLM instances 122, the orchestrator 118 manages the pre-provisioning lifecycle of individual LLM instances in the LLM cluster 120, and the orchestrator 118 issues the ready-state notice to the routing engine 114 upon individual LLM instances reaching the ready state. By gating the routing of forecasted voice traffic requests on the ready-state notice, the system 200 prevents forecasted voice traffic requests from being routed to LLM instances that are still in the provisioning state and would otherwise incur a cold-start latency. This reduces and, in some cases, eliminates the cold-start latency for forecasted voice traffic requests that are routed to individual pre-provisioned LLM instances 126.
[0054] FIG. 3 is a block diagram of a system 300 illustrating the internal structure of the pre-provisioning process 116, according to some embodiments. The system 300 depicts the voice traffic pattern identifier 304, the voice traffic forecast generator 306, and the pre-provisioning manager 308 within the pre-provisioning process 116. The voice traffic pattern identifier 304 receives voice traffic data from the voice traffic handler 104 for analysis and outputs a set of voice traffic patterns to the voice traffic forecast generator 306. FIG. 3 introduces the sub-analyzers of the voice traffic pattern identifier 304 not shown in FIGS. 1 or 2. In some embodiments, the system 300 further depicts a hardware telemetry collector 326 within the pre-provisioning process 116, the hardware telemetry collector 326 not shown in FIGS. 1 or 2.
[0055] The voice traffic pattern identifier 304 receives the voice traffic data from the voice traffic handler 104. The voice traffic data was observed during the previous time interval. The voice traffic pattern identifier 304 analyzes the voice traffic data to identify individual voice traffic patterns in the set of voice traffic patterns. The voice traffic pattern identifier 304 outputs the set of voice traffic patterns to the voice traffic forecast generator 306. The voice traffic pattern identifier 304 includes a temporal analyzer 310, a real-time / batch classifier 312, a language analyzer 314, a geographic analyzer 316, an utterances duration analyzer 318, and a voice pattern aggregator 320.
[0056] Temporal patterns drive the first dimension of the voice traffic patterns. The temporal analyzer 310 analyzes temporal data in the voice traffic data to identify a temporal distribution of voice traffic. The temporal distribution comprises one or more time-of-day patterns, day-of-week patterns, seasonal patterns, or any combination thereof, identified across the previous time interval. In some embodiments, the temporal distribution comprises peak usage periods identified during specific time-of-day windows.
[0057] Voice traffic also varies along a real-time versus batch dimension. The real-time / batch classifier 312 analyzes real-time data and batch data in the voice traffic data to generate a real-time versus batch characterization of the voice traffic. The real-time data comprises voice traffic that is associated with a real-time processing requirement. The batch data comprises voice traffic that is associated with a deferred processing requirement. The real-time versus batch characterization comprises a ratio of real-time voice traffic to batch voice traffic across the previous time interval.
[0058] The languages spoken by the user population drive a third dimension of the voice traffic patterns. The language analyzer 314 analyzes language-specific data in the voice traffic data to identify a language distribution of the voice traffic. The language distribution comprises a proportion of the voice traffic associated with individual languages spoken by individual humans 108 across the previous time interval. In some embodiments, the language distribution comprises a proportion of voice traffic associated with English, Spanish, French, German, or any other language.
[0059] The geographic distribution of the user population drives a fourth dimension of the voice traffic patterns. The geographic analyzer 316 analyzes geographic data in the voice traffic data to identify a geographic distribution of the voice traffic. The geographic distribution comprises a proportion of the voice traffic associated with individual geographic regions across the previous time interval. In some embodiments, the geographic distribution comprises a proportion of voice traffic associated with a continent, a country, a region within a country, a metropolitan area, a time zone, or any other geographic region.
[0060] Utterance length drives a fifth dimension of the voice traffic patterns and informs the expected resource consumption per voice traffic request. The utterances duration analyzer 318 analyzes utterance duration data in the voice traffic data to identify an utterance duration distribution of the voice traffic. The utterance duration distribution comprises a distribution of speech lengths across utterances 112 in the voice traffic data. The utterance duration distribution informs the voice traffic forecast generator 306 of an expected resource consumption profile of each voice traffic request of forecasted voice traffic.
[0061] The voice pattern aggregator 320 receives the temporal distribution from the temporal analyzer 310, the real-time versus batch characterization from the real-time / batch classifier 312, the language distribution from the language analyzer 314, the geographic distribution from the geographic analyzer 316, and the utterance duration distribution from the utterances duration analyzer 318. The voice pattern aggregator 320 aggregates the outputs of the temporal analyzer 310, the real-time / batch classifier 312, the language analyzer 314, the geographic analyzer 316, and the utterances duration analyzer 318 into the set of voice traffic patterns. The voice pattern aggregator 320 outputs the set of voice traffic patterns to the voice traffic forecast generator 306.
[0062] In some embodiments, the voice traffic data that the voice traffic pattern identifier 304 receives from the voice traffic handler 104 comprises application-side session data 302. The application-side session data 302 comprises observations of voice traffic that the voice traffic handler 104 served during the previous time interval, captured at an application layer of the voice traffic handler 104. The application-side session data 302 carries the temporal data, the real-time data, the batch data, the language-specific data, the geographic data, and the utterance duration data that the sub-analyzers of the voice traffic pattern identifier 304 process.
[0063] In some embodiments, the pre-provisioning process 116 further includes a hardware telemetry collector 326 that gathers hardware-side infrastructure data 324 from a hardware telemetry 322. In some embodiments, the hardware telemetry 322 monitors the LLM cluster 120. The hardware-side infrastructure data 324 augments the application-side session data 302 with run-time observations of the compute infrastructure on which individual LLM instances of the LLM cluster 120 execute. The hardware telemetry collector 326 includes a compute utilization 328 component, a memory utilization 330 component, a cache state 332 component, and a context window utilization 334 component.
[0064] The compute utilization 328 component measures GPU utilization, CPU utilization, or any combination thereof, of individual LLM instances in the LLM cluster 120. The memory utilization 330 component measures GPU memory utilization, system memory utilization, or any combination thereof, of individual LLM instances in the LLM cluster 120. The cache state 332 component measures KV cache occupancy, KV cache hit rate, KV cache miss rate, or any combination thereof, of individual LLM instances in the LLM cluster 120. The context window utilization 334 component measures a proportion of an available context window in use by individual LLM instances in the LLM cluster 120.
[0065] The hardware telemetry collector 326 outputs a set of hardware telemetry patterns to the voice traffic forecast generator 306. In some embodiments, the voice traffic forecast generator 306 generates the voice traffic forecast based at least in part on the set of voice traffic patterns gathered from the voice traffic handler 104. In some embodiments, the voice traffic forecast generator 306 generates the voice traffic forecast based at least in part on the set of voice traffic patterns and the set of hardware telemetry patterns gathered from the voice traffic handler 104 and the hardware telemetry 322, respectively. The hardware-side infrastructure data 324 informs the voice traffic forecast generator 306 of a run-time state of the LLM cluster 120 alongside the set of voice traffic patterns derived from the application-side session data 302.
[0066] The voice traffic forecast generator 306 receives the set of voice traffic patterns from the voice pattern aggregator 320. The voice traffic forecast generator 306 generates a voice traffic forecast based at least in part on the set of voice traffic patterns. The voice traffic forecast predicts a number of voice traffic requests at the future time slot. The internal structure of the voice traffic forecast generator 306 is further described with reference to FIGS. 5 and 6.
[0067] In some embodiments, the voice traffic forecast generator 306 receives the set of voice traffic patterns from the voice pattern aggregator 320 and the set of hardware telemetry patterns from the hardware telemetry collector 326. The voice traffic forecast generator 306 generates a voice traffic forecast based at least in part on the set of voice traffic patterns and the set of hardware telemetry patterns. The voice traffic forecast predicts a number of voice traffic requests at the future time slot.
[0068] The pre-provisioning manager 308 receives the voice traffic forecast from the voice traffic forecast generator 306. The pre-provisioning manager 308 generates a prepare instruction based at least in part on the voice traffic forecast. The pre-provisioning manager 308 sends the prepare instruction to the orchestrator 118. The internal structure of the pre-provisioning manager 308 is further described with reference to FIG. 5.
[0069] Thus, the system 300 illustrates the internal structure of the pre-provisioning process 116, in which the voice traffic pattern identifier 304 analyzes voice traffic data to identify the set of voice traffic patterns across the temporal distribution, the real-time versus batch characterization, the language distribution, the geographic distribution, and the utterance duration distribution, the voice traffic forecast generator 306 generates a voice traffic forecast based at least in part on the set of voice traffic patterns, and the pre-provisioning manager 308 generates a prepare instruction based at least in part on the voice traffic forecast. By identifying the set of voice traffic patterns from the voice traffic data, the system 300 generates a voice traffic forecast that captures modalities of the voice traffic served by the voice traffic handler 104 and predicts a number of voice traffic requests at a future time slot. The voice traffic forecast generated from the set of voice traffic patterns improves a provisioning accuracy and reduces a provisioning lag time during one or more future time slots relative to pre-provisioning performed without the set of voice traffic patterns. In some embodiments, the system 300 further augments the voice traffic forecast with the hardware-side infrastructure data 324 gathered from the hardware telemetry collector 326, which may further improve the provisioning accuracy and may further reduce the provisioning lag time relative to pre-provisioning performed using the application-side session data 302 alone.
[0070] FIG. 4 is a block diagram of a system 400 illustrating the internal computational state of individual active LLM instances 122, individual provisioning LLM instances 124, and individual pre-provisioned LLM instances 126 in the ready state, according to some embodiments. The system 400 depicts a GPU compute pool 402, a non-volatile memory express (NVMe) storage 404, the routing engine 114, the orchestrator 118, the pre-provisioning process 116, and the voice traffic handler 104. The GPU compute pool 402 provides GPU compute resources to individual LLM instances of the LLM cluster 120. FIG. 4 expands the LLM cluster 120 of FIG. 1 by depicting the computational state of one representative LLM instance from each of the three categories of instantiated LLM instances introduced in FIG. 1.
[0071] The GPU compute pool 402 comprises a set of GPUs on which individual LLM instances of the LLM cluster 120 execute. The GPU compute pool 402 provides GPU compute runtime and GPU memory to individual LLM instances. The orchestrator 118 transitions individual LLM instances from the un-provisioned state, through the pre-provisioning state, and into the ready state by allocating GPU compute runtime and GPU memory from the GPU compute pool 402 to individual LLM instances. The orchestrator 118 initiates each transition based at least in part on the prepare instruction received from the pre-provisioning process 116.
[0072] The NVMe storage 404 stores model weights of individual LLM instances of the LLM cluster 120. The NVMe storage 404 provides the model weights to individual LLM instances during the provisioning state. In some embodiments, the NVMe storage 404 is an NVMe device coupled to the GPU compute pool 402. The orchestrator 118 reads the model weights from the NVMe storage 404 and loads the model weights 418 into the GPU memory 416 of individual provisioning LLM instances 124. The GPU memory 416 is one example of a particular memory location into which the model weights are loaded. In some embodiments, the particular memory location is a particular memory location that is accessible to a GPU of the provisioning LLM instance 124(1). Examples of the particular memory location that is accessible to the GPU include the GPU memory 416, host memory accessible to the GPU over a PCIe bus, host memory accessible to the GPU over NVLink, unified memory shared between the GPU and a CPU, HBM, or any other memory location from which the GPU is configured to read the model weights during inference.
[0073] The active LLM instance 122(1) represents an LLM instance in the active state. The active LLM instance 122(1) includes a GPU compute runtime (active) 406, a GPU memory 408, model weights (loaded) 410, and a KV cache (active) 412. The GPU compute runtime (active) 406 is a GPU compute runtime that is currently processing voice traffic requests routed to the active LLM instance 122(1). The GPU memory 408 is the portion of the GPU compute pool 402 allocated to the active LLM instance 122(1). The model weights (loaded) 410 are the model weights of the active LLM instance 122(1) loaded into the GPU memory 408. The KV cache (active) 412 stores key and value tensors from prior attention computations performed by the active LLM instance 122(1) on voice traffic requests that the active LLM instance 122(1) is currently processing. In some embodiments in which the voice traffic handler 104 is implemented as the voice agent application, the application-side session data 302 is gathered from the voice agent application, and the hardware-side infrastructure data 324 is gathered from the hardware telemetry 322.
[0074] The provisioning LLM instance 124(1) represents an LLM instance in the provisioning state. The orchestrator 118 dispatches the prepare instruction received from the pre-provisioning process 116 to transition an LLM instance from the un-provisioned state into the provisioning state, generating the provisioning LLM instance 124(1). The provisioning LLM instance 124(1) includes a GPU compute runtime (loading) 414, a GPU memory 416, model weights (loading) 418, and a KV cache (pre-warming) 420. The GPU compute runtime (loading) 414 is a GPU compute runtime that is being initialized but has not yet completed initialization. The GPU memory 416 is the portion of the GPU compute pool 402 being allocated to the provisioning LLM instance 124(1). The model weights (loading) 418 are the model weights of the provisioning LLM instance 124(1) being read from the NVMe storage 404 and loaded into the GPU memory 416. The KV cache (pre-warming) 420 is a KV cache that is being populated with key and value tensors during the provisioning state. The provisioning LLM instance 124(1) is not yet configured to process voice traffic requests with substantially reduced cold-start initialization latency.
[0075] The pre-provisioned LLM instance 126(1) represents an LLM instance in the ready state. The pre-provisioned LLM instance 126(1) includes a GPU compute runtime (active; idle) 422, a GPU memory 424, model weights (loaded) 426, and a KV cache (pre-warmed) 428. The GPU compute runtime (active; idle) 422 is a GPU compute runtime that has completed initialization and is idle, awaiting routing of forecasted voice traffic requests. The GPU memory 424 is the portion of the GPU compute pool 402 allocated to the pre-provisioned LLM instance 126(1). The model weights (loaded) 426 are the model weights of the pre-provisioned LLM instance 126(1) loaded into the GPU memory 424. The KV cache (pre-warmed) 428 is a KV cache that has been pre-warmed during the provisioning state and is ready to store key and value tensors from attention computations performed on forecasted voice traffic requests upon arrival.
[0076] The pre-provisioned LLM instance 126(1) is in the ready state after the model weights are loaded into the GPU memory 424, the GPU compute runtime is allocated, and the KV cache is pre-warmed. The pre-provisioned LLM instance 126(1) is configured to process voice traffic requests with substantially reduced cold-start initialization latency. Upon the pre-provisioned LLM instance 126(1) reaching the ready state, the orchestrator 118 issues the ready-state notice to the routing engine 114 identifying the pre-provisioned LLM instance 126(1).
[0077] The pre-provisioning process 116 generates the prepare instruction based at least in part on the voice traffic forecast and sends the prepare instruction to the orchestrator 118 to provision the provisioning LLM instance 124(1) by loading the model weights into the GPU memory 416 prior to receipt of individual voice traffic requests predicted by the voice traffic forecast. The pre-provisioning process 116 also allocates GPU compute resources from the GPU compute pool 402 to the provisioning LLM instance 124(1) and pre-warms the KV cache 420 prior to receipt of the individual voice traffic requests predicted by the voice traffic forecast. Upon completion of the loading of the model weights, the allocation of the GPU compute resources, and the pre-warming of the KV cache, the provisioning LLM instance 124(1) transitions to the ready state and becomes the pre-provisioned LLM instance 126(1).
[0078] Thus, the system 400 illustrates the internal computational state of individual active LLM instances 122, individual provisioning LLM instances 124, and individual pre-provisioned LLM instances 126 in the ready state. The GPU compute pool 402 provides GPU compute resources to individual LLM instances of the LLM cluster 120. The NVMe storage 404 provides the model weights to individual LLM instances during the provisioning state. By depicting the computational state across the provisioning state and the ready state, the system 400 shows that the cold-start work is completed during the provisioning state and prior to receipt of the individual voice traffic requests predicted by the voice traffic forecast. The cold-start work comprises loading the model weights into the GPU memory, allocating the GPU compute resources, and pre-warming the KV cache. Routing of the individual voice traffic requests to individual pre-provisioned LLM instances 126 in the ready state therefore reduces the cold-start latency that the individual voice traffic requests would otherwise incur if routed to individual LLM instances that have not yet completed the cold-start work.
[0079] FIG. 5 is a block diagram of a system 500 illustrating an internal structure of the voice traffic pattern identifier 304, an internal structure of the voice traffic forecast generator 306, and an internal structure of the pre-provisioning manager 308 within the pre-provisioning process 116, according to some embodiments. The voice traffic pattern identifier 304 receives the voice traffic data and outputs the set of voice traffic patterns to the voice traffic forecast generator 306. The voice traffic forecast generator 306 applies a plurality of predictive models to the set of voice traffic patterns to generate the voice traffic forecast across multiple forecast horizons. The pre-provisioning manager 308 generates a pre-provisioning specification based at least in part on the voice traffic forecast and invokes one or more pre-provisioning components to provision individual LLM instances and generate individual pre-provisioned LLM instances in the ready state. FIG. 5 expands the voice traffic forecast generator 306 of FIG. 3 by depicting a time horizon partitioner 502, a short-term LSTM 504, a medium-term ARIMA 506, a long-term seasonal 508, a forecast combiner 510, a scaling recommender 512, and a threshold capacity comparator 514. FIG. 5 expands the pre-provisioning manager 308 of FIG. 3 by depicting a pre-provisioning scheduler 516, a pre-provisioning specification 518, a compute pre-allocator 520, a model weight pre-loader 522, and a KV cache pre-warmer 524.
[0080] The voice traffic pattern identifier 304 receives the voice traffic data from the voice traffic handler 104 and outputs the set of voice traffic patterns to the voice traffic forecast generator 306. The voice traffic pattern identifier 304 includes the temporal analyzer 310, the real-time / batch classifier 312, the language analyzer 314, the geographic analyzer 316, the utterances duration analyzer 318, and the voice pattern aggregator 320, the internal structure of which is described with reference to FIG. 3. The voice pattern aggregator 320 outputs the set of voice traffic patterns to the time horizon partitioner 502 of the voice traffic forecast generator 306. The time horizon partitioner 502 is a downstream entry point of the voice traffic forecast generator 306 not depicted in FIG. 3.
[0081] The voice traffic forecast generator 306 receives the set of voice traffic patterns from the voice pattern aggregator 320. The voice traffic forecast generator 306 generates the voice traffic forecast based at least in part on the set of voice traffic patterns by applying a plurality of predictive models to the set of voice traffic patterns. The plurality of predictive models comprises one or more short-horizon predictive models, one or more medium-horizon predictive models, one or more long-horizon predictive models, or any combination thereof. The plurality of predictive models generates a short-term forecast, a medium-term forecast, a long-term forecast, or any combination thereof.
[0082] The time horizon partitioner 502 receives the set of voice traffic patterns from the voice pattern aggregator 320 and partitions the set of voice traffic patterns by forecast horizon. The time horizon partitioner 502 routes a first portion of the set of voice traffic patterns to the short-term LSTM 504, a second portion of the set of voice traffic patterns to the medium-term ARIMA 506, and a third portion of the set of voice traffic patterns to the long-term seasonal 508. In some embodiments, individual voice traffic patterns are routed to more than one of the short-term LSTM 504, the medium-term ARIMA 506, and the long-term seasonal 508.
[0083] In some embodiments, the voice traffic forecast generator 306 generates the voice traffic forecast by partitioning the set of voice traffic patterns into a plurality of time horizons. The voice traffic forecast generator 306 applies a distinct forecasting model to each time horizon of the plurality of time horizons to generate a corresponding time-horizon forecast. The voice traffic forecast generator 306 combines the corresponding time-horizon forecasts to produce the voice traffic forecast comprising the predicted number of voice traffic requests at the future time slot.
[0084] The short-term LSTM 504 is a long short-term memory (LSTM) neural network that generates the short-term forecast based at least in part on the first portion of the set of voice traffic patterns. The short-term forecast predicts the number of voice traffic requests at the future time slot over a near-future interval during which fine-grained voice traffic variation is expected. In some embodiments, the near-future interval comprises an interval of less than one hour from a current time.
[0085] The medium-term ARIMA 506 is an autoregressive integrated moving average (ARIMA) statistical model that generates the medium-term forecast based at least in part on the second portion of the set of voice traffic patterns. The medium-term forecast predicts the number of voice traffic requests at the future time slot over a longer interval over which aggregate voice traffic volume is predicted. In some embodiments, the longer interval comprises an interval of one or more hours from the current time.
[0086] The long-term seasonal 508 is a seasonal predictive model that generates the long-term forecast based at least in part on the third portion of the set of voice traffic patterns. The long-term forecast predicts the number of voice traffic requests at the future time slot over an interval over which multi-cycle voice traffic variation is expected. In some embodiments, the interval comprises an interval of one or more days from the current time.
[0087] The forecast combiner 510 receives the short-term forecast from the short-term LSTM 504, the medium-term forecast from the medium-term ARIMA 506, and the long-term forecast from the long-term seasonal 508. The forecast combiner 510 combines the short-term forecast, the medium-term forecast, and the long-term forecast into the voice traffic forecast. The voice traffic forecast predicts the number of voice traffic requests at the future time slot.
[0088] The multi-stage process performed by the time horizon partitioner 502, the short-term LSTM 504, the medium-term ARIMA 506, the long-term seasonal 508, and the forecast combiner 510 is a specific technical implementation of voice traffic forecasting. The process operates on concrete machine-readable inputs: the set of voice traffic patterns partitioned by forecast horizon. The time horizon partitioner 502 routes each partition to a distinct computational model. Each distinct model generates a corresponding intermediate forecast output. The forecast combiner 510 combines the intermediate forecast outputs into a unified voice traffic forecast. The voice traffic forecast specifies per-time-slot predicted demand values in a machine-readable format. This machine-readable output is consumed by the threshold capacity comparator 514 to determine whether pre-provisioning is required. In response, the threshold capacity comparator 514 triggers a measurable pre-provisioning action on specific GPU hardware within the LLM cluster 120. The causal chain from the multi-stage forecasting process to the physical pre-provisioning action on specific hardware distinguishes the disclosed technology from abstract demand prediction. The voice traffic forecast is not generated for informational purposes. It is generated to trigger a specific sequence of hardware operations that allocate compute resources, load model weights into GPU memory, and pre-warm key-value caches before the predicted voice traffic requests arrive.
[0089] The short-term LSTM 504, the medium-term ARIMA 506, and the long-term seasonal 508 described herein are non-limiting examples of the one or more short-horizon predictive models, the one or more medium-horizon predictive models, and the one or more long-horizon predictive models, respectively. Other predictive models suitable for short-horizon, medium-horizon, or long-horizon forecasting of voice traffic, including Prophet models, Holt-Winters exponential smoothing models, transformer-based forecasting models, gradient boosting models, ensemble models, hybrid models, or any combination thereof, may be used in place of, or in addition to, the short-term LSTM 504, the medium-term ARIMA 506, and the long-term seasonal 508.
[0090] The threshold capacity comparator 514 receives the voice traffic forecast from the forecast combiner 510. The threshold capacity comparator 514 determines a current serving capacity of active LLM instances 122 at a current time. The threshold capacity comparator 514 compares the number of voice traffic requests predicted by the voice traffic forecast at the future time slot to the current serving capacity of active LLM instances 122 at the current time. The threshold capacity comparator 514 determines whether the current serving capacity of active LLM instances 122 is insufficient to serve the number of voice traffic requests predicted by the voice traffic forecast at the future time slot. The threshold capacity comparator 514 generates a binary trigger signal that indicates whether the predicted number of voice traffic requests at the future time slot exceeds a threshold ratio of the current serving capacity of active LLM instances 122 at the current time. In some embodiments, the threshold ratio is approximately 0.8 of the current serving capacity. Other threshold ratios may be used. The threshold capacity comparator 514 outputs the binary trigger signal as the result of the comparison to the scaling recommender 512.
[0091] Conditioned on the binary trigger signal indicating that current capacity is insufficient, the scaling recommender 512 determines how much capacity to provision at the future time slot. The scaling recommender 512 receives the binary trigger signal as the result of the comparison from the threshold capacity comparator 514. The scaling recommender 512 generates the scaling recommendation conditioned on the binary trigger signal indicating that the predicted number of voice traffic requests exceeds the threshold ratio of the current serving capacity. The scaling recommendation is generated based at least in part on the result of the comparison. The scaling recommender 512 determines a target serving capacity of LLM instances at the future time slot. The target serving capacity is a multiple of the number of voice traffic requests predicted by the voice traffic forecast at the future time slot. The scaling recommendation specifies the target serving capacity determined by the scaling recommender 512. In some embodiments, the multiple is approximately 1.2 of the predicted number of voice traffic requests at the future time slot. The scaling recommender 512 outputs the scaling recommendation to the pre-provisioning manager 308.
[0092] With the voice traffic forecast and the scaling recommendation in hand, the pre-provisioning manager 308 specifies which LLM instances to provision and how many. The pre-provisioning manager 308 receives the voice traffic forecast from the voice traffic forecast generator 306 and the scaling recommendation from the scaling recommender 512. The pre-provisioning manager 308 generates the prepare instruction based at least in part on the voice traffic forecast and the scaling recommendation upon receipt of the scaling recommendation from the scaling recommender 512. The pre-provisioning manager 308 sends the prepare instruction to the orchestrator 118.
[0093] The output of the pre-provisioning manager 308 is the pre-provisioning specification 518. The pre-provisioning specification 518 specifies a particular number of LLM instances sufficient to meet the target serving capacity at the future time slot. The pre-provisioning manager 308 generates the pre-provisioning specification 518 based at least in part on the voice traffic forecast and the scaling recommendation. In some embodiments, the pre-provisioning specification 518 specifies a hardware allocation for individual LLM instances. In some embodiments, the pre-provisioning specification 518 specifies a time prior to receipt of forecasted voice traffic requests at the future time slot at which individual LLM instances reach the ready state.
[0094] The pre-provisioning specification 518 is consumed by the pre-provisioning scheduler 516 to drive the pre-provisioning action. The pre-provisioning scheduler 516 receives the pre-provisioning specification 518 from the pre-provisioning manager 308. The pre-provisioning scheduler 516 schedules a pre-provisioning action prior to receipt of forecasted voice traffic requests at the future time slot. The pre-provisioning scheduler 516 invokes the compute pre-allocator 520, the model weight pre-loader 522, and the KV cache pre-warmer 524 in accordance with the pre-provisioning specification 518.
[0095] The compute pre-allocator 520 allocates GPU compute resources from the GPU compute pool 402 to individual LLM instances identified in the pre-provisioning specification 518, based at least in part on the voice traffic forecast, prior to receipt of the forecasted voice traffic requests. The allocation of the GPU compute resources to individual LLM instances by the compute pre-allocator 520 provisions individual LLM instances and transitions individual LLM instances from the un-provisioned state into the pre-provisioning state.
[0096] The model weight pre-loader 522 loads model weights from the NVMe storage 404 into GPU memory of individual LLM instances identified in the pre-provisioning specification 518, based at least in part on the voice traffic forecast, prior to receipt of the forecasted voice traffic requests. The GPU memory into which the model weight pre-loader 522 loads the model weights is one example of a particular memory location. In some embodiments, the particular memory location is a particular memory location that is accessible to a GPU of individual LLM instances identified in the pre-provisioning specification 518. Examples of the particular memory location that is accessible to the GPU include the GPU memory, host memory accessible to the GPU over a PCIe bus, host memory accessible to the GPU over NVLink, unified memory shared between the GPU and a CPU, HBM, or any other memory location from which the GPU is configured to read the model weights during inference. The loading of the model weights into the GPU memory of individual LLM instances by the model weight pre-loader 522 provisions individual LLM instances. The model weight pre-loader 522 operates concurrently with the compute pre-allocator 520 and the KV cache pre-warmer 524.
[0097] The KV cache pre-warmer 524 pre-warms KV caches of individual LLM instances identified in the pre-provisioning specification 518, based at least in part on the voice traffic forecast, prior to receipt of the forecasted voice traffic requests. The pre-warming of the KV cache of individual LLM instances by the KV cache pre-warmer 524 provisions individual LLM instances. Pre-warming the KV cache comprises populating the KV cache with key and value tensors for an initial portion of attention computations performed by individual LLM instances on forecasted voice traffic requests upon arrival.
[0098] The allocation of the GPU compute resources by the compute pre-allocator 520, the loading of the model weights by the model weight pre-loader 522, and the pre-warming of the KV cache by the KV cache pre-warmer 524 collectively provision individual LLM instances. Upon completion of the allocation of the GPU compute resources, the loading of the model weights, and the pre-warming of the KV cache, individual LLM instances reach the ready state and become individual pre-provisioned LLM instances 126 in the set of pre-provisioned LLM instances. The orchestrator 118 issues the ready-state notice to the routing engine 114 identifying individual pre-provisioned LLM instances 126 in the ready state.
[0099] Thus, the system 500 illustrates the internal structure of the voice traffic pattern identifier 304, the internal structure of the voice traffic forecast generator 306, and the internal structure of the pre-provisioning manager 308. The voice traffic forecast generator 306 applies the plurality of predictive models to the set of voice traffic patterns to generate the short-term forecast, the medium-term forecast, the long-term forecast, or any combination thereof, and combines the short-term forecast, the medium-term forecast, and the long-term forecast into the voice traffic forecast. The pre-provisioning manager 308 generates the pre-provisioning specification 518 based at least in part on the voice traffic forecast and the scaling recommendation, and the pre-provisioning scheduler 516 invokes the compute pre-allocator 520, the model weight pre-loader 522, and the KV cache pre-warmer 524 to provision individual LLM instances and generate individual pre-provisioned LLM instances 126 in the ready state prior to receipt of the forecasted voice traffic requests. By applying the plurality of predictive models across multiple forecast horizons and by provisioning individual LLM instances based at least in part on the voice traffic forecast, the system 500 improves a provisioning accuracy and reduces a provisioning lag time during one or more future time slots relative to pre-provisioning performed without the plurality of predictive models.
[0100] FIG. 6 is a block diagram of a system 600 illustrating a voice traffic forecast 602 generated by the voice traffic forecast generator 306, according to some embodiments. The system 600 depicts the voice traffic pattern identifier 304, the voice traffic forecast generator 306, and the pre-provisioning manager 308 within the pre-provisioning process 116. The system 600 also depicts the forecast combiner 510, the threshold capacity comparator 514, the scaling recommender 512, the pre-provisioning specification 518, and the pre-provisioning scheduler 516 introduced in FIG. 5. FIG. 6 introduces the voice traffic forecast 602 not shown in FIGS. 1-5.
[0101] The voice traffic forecast generator 306 receives the set of voice traffic patterns from the voice pattern aggregator 320 of the voice traffic pattern identifier 304. The voice traffic forecast generator 306 applies the plurality of predictive models to the set of voice traffic patterns to generate the short-term forecast, the medium-term forecast, the long-term forecast, or any combination thereof. The forecast combiner 510 combines the short-term forecast, the medium-term forecast, the long-term forecast, or any combination thereof into the voice traffic forecast 602.
[0102] The voice traffic forecast 602 comprises a set of forecast records. Each forecast record specifies a time slot, a predicted number of voice traffic requests at the future time slot, and a forecast horizon associated with the predicted number of voice traffic requests. The future time slot is a future time slot relative to a current time. The predicted number of voice traffic requests at the future time slot is a number of concurrent voice traffic requests that the voice traffic forecast 602 predicts will arrive at the voice traffic handler 104 during the future time slot. The forecast horizon comprises one or more of a short-term horizon, a medium-term horizon, a long-term horizon, or any combination thereof.
[0103] In some embodiments, the voice traffic forecast 602 specifies a first forecast record for a future time slot at T + 30 minutes (min), the first forecast record specifying a predicted number of 142 concurrent requests and the short-term horizon. In some embodiments, the voice traffic forecast 602 specifies a second forecast record for a future time slot at T + 2 hours (hrs), the second forecast record specifying a predicted number of 198 concurrent requests and the medium-term horizon. In some embodiments, the voice traffic forecast 602 specifies a third forecast record for a future time slot at T + 4 hrs, the third forecast record specifying a predicted number of 87 concurrent requests and the medium-term horizon. In some embodiments, the voice traffic forecast 602 specifies a fourth forecast record for a future time slot at T + 36 hrs, the fourth forecast record specifying a predicted number of 310 concurrent requests and the long-term horizon. T denotes the current time. These forecast records are non-limiting examples of forecast records of the voice traffic forecast 602.
[0104] The threshold capacity comparator 514 receives the voice traffic forecast 602 from the forecast combiner 510. The threshold capacity comparator 514 determines a current serving capacity of active LLM instances 122 at the current time. The threshold capacity comparator 514 compares the predicted number of voice traffic requests specified in individual forecast records of the voice traffic forecast 602 to the current serving capacity of active LLM instances 122 at the current time. The threshold capacity comparator 514 generates a binary trigger signal that indicates whether the predicted number of voice traffic requests at the future time slot exceeds a threshold ratio of the current serving capacity of active LLM instances 122 at the current time. In some embodiments, the threshold ratio is approximately 0.8 of the current serving capacity. Other threshold ratios may be used. The threshold capacity comparator 514 outputs the binary trigger signal as the result of the comparison to the scaling recommender 512.
[0105] The scaling recommender 512 receives the binary trigger signal as the result of the comparison from the threshold capacity comparator 514. The scaling recommender 512 generates the scaling recommendation conditioned on the binary trigger signal indicating that the predicted number of voice traffic requests exceeds the threshold ratio of the current serving capacity. The scaling recommender 512 determines, for individual future time slots specified in the individual forecast records of the voice traffic forecast 602, a target serving capacity of LLM instances at the future time slot. The scaling recommendation specifies the target serving capacity at the individual future time slots. In some embodiments, the target serving capacity at the future time slot is a multiple of the predicted number of voice traffic requests at the future time slot. In some embodiments, the multiple is approximately 1.2 of the predicted number of voice traffic requests. The scaling recommender 512 outputs the scaling recommendation to the pre-provisioning manager 308.
[0106] The pre-provisioning manager 308 receives the voice traffic forecast 602 from the voice traffic forecast generator 306 and the scaling recommendation from the scaling recommender 512. The pre-provisioning manager 308 generates the pre-provisioning specification 518 based at least in part on the voice traffic forecast 602 and the scaling recommendation upon receipt of the scaling recommendation from the scaling recommender 512. The pre-provisioning specification 518 specifies, for individual future time slots specified in the individual forecast records of the voice traffic forecast 602, a particular number of LLM instances sufficient to meet the target serving capacity at the future time slot.
[0107] The pre-provisioning scheduler 516 receives the pre-provisioning specification 518 from the pre-provisioning manager 308. The pre-provisioning scheduler 516 schedules a pre-provisioning action for individual future time slots specified in the individual forecast records of the voice traffic forecast 602. The pre-provisioning scheduler 516 schedules the pre-provisioning action prior to receipt of the forecasted voice traffic requests at the individual future time slots so that individual LLM instances reach the ready state before the forecasted voice traffic requests at the individual future time slots arrive.
[0108] Thus, the system 600 illustrates the voice traffic forecast 602 generated by the voice traffic forecast generator 306, in which individual forecast records specify the future time slot, the predicted number of voice traffic requests at the future time slot, and the forecast horizon associated with the predicted number of voice traffic requests. The threshold capacity comparator 514, the scaling recommender 512, the pre-provisioning manager 308, and the pre-provisioning scheduler 516 consume the voice traffic forecast 602 to generate the pre-provisioning specification 518 and to schedule the pre-provisioning action prior to receipt of the forecasted voice traffic requests at the individual future time slots specified in the individual forecast records. By specifying the predicted number of voice traffic requests across the short-term horizon, the medium-term horizon, and the long-term horizon, the voice traffic forecast 602 enables the pre-provisioning of individual LLM instances at the future time slots specified in the individual forecast records and improves a provisioning accuracy and reduces a provisioning lag time during the individual future time slots relative to pre-provisioning performed without the multiple forecast horizons of the voice traffic forecast 602.
[0109] FIG. 7 is a block diagram of a system 700 illustrating a temporal flow of pre-provisioning, ready-state notification, and routing of a forecasted voice traffic request to a pre-provisioned LLM instance across times 702(1) through 702(5), according to some embodiments. The system 700 depicts the voice traffic handler 104, the routing engine 114, the pre-provisioning process 116, the orchestrator 118, and the LLM cluster 120. The system 700 depicts the temporal sequence in which the pre-provisioning manager 308 sends the prepare instruction to the orchestrator 118, the orchestrator 118 dispatches the prepare instruction to an LLM instance, the LLM instance progresses through states 704, 706, and 708, and the routing engine 114 routes the forecasted voice traffic request to the LLM instance only after the pre-provisioned LLM instance has reached the ready state. FIG. 7 introduces times 702(1) through 702(5) and LLM instance in states 704, 706, and 708 not shown in FIGS. 1-6.
[0110] The times 702(1) through 702(5) are successive time points, where time 702(1) is the earliest time and time 702(5) is the latest time. Time 702(1) is prior to time 702(2), time 702(2) is prior to time 702(3), time 702(3) is prior to time 702(4), and time 702(4) is prior to time 702(5). The time interval between successive time points may be uniform or non-uniform.
[0111] The states 704, 706, and 708 are operational states occupied by an LLM instance in the LLM cluster 120 across the times 702(1) through 702(5). State 704 corresponds to a provisioning state during which the LLM instance is provisioned by allocating compute resources, loading model weights into GPU memory of the LLM instance, and pre-warming a KV cache of the LLM instance. State 706 corresponds to a ready state in which the LLM instance has completed provisioning and is configured to process voice traffic requests with substantially reduced cold-start initialization latency. The LLM instance in state 706 is referred to as a pre-provisioned LLM instance. State 708 corresponds to an active state in which the LLM instance is currently serving a voice traffic request routed to the LLM instance. The LLM instance in state 708 is referred to as an active LLM instance.
[0112] At time 702(1), the voice traffic pattern identifier 304 of the pre-provisioning process 116 receives voice traffic data from the voice traffic handler 104 (not shown), the voice traffic forecast generator 306 generates the voice traffic forecast 602 based at least in part on the set of voice traffic patterns identified by the voice traffic pattern identifier 304, and the pre-provisioning manager 308 generates the prepare instruction based at least in part on the voice traffic forecast 602 prior to receipt of a forecasted voice traffic request predicted by the voice traffic forecast 602. The pre-provisioning manager 308 sends the prepare instruction to the orchestrator 118 at time 702(2).
[0113] At time 702(2), the orchestrator 118 dispatches the prepare instruction to the LLM instance, and the LLM instance enters state 704. During state 704, the LLM instance is provisioned by loading model weights into the GPU memory of the LLM instance, allocating compute resources to the LLM instance, and pre-warming a KV cache of the LLM instance. The GPU memory into which the model weights are loaded during state 704 is one example of a particular memory location. In some embodiments, the particular memory location is a particular memory location that is accessible to a GPU of the LLM instance. Examples of the particular memory location that is accessible to the GPU include the GPU memory, host memory accessible to the GPU over a PCIe bus, host memory accessible to the GPU over NVLink, unified memory shared between the GPU and a CPU, HBM, or any other memory location from which the GPU is configured to read the model weights during inference. The provisioning of the LLM instance during state 704 is performed prior to receipt of the forecasted voice traffic request predicted by the voice traffic forecast 602. The provisioning of the LLM instance during state 704 generates a pre-provisioned LLM instance in the ready state upon completion of the loading of the model weights, the allocating of the compute resources, and the pre-warming of the KV cache.
[0114] At time 702(3), the LLM instance completes the loading of the model weights into the GPU memory, the allocation of the compute resources, and the pre-warming of the KV cache, and the LLM instance transitions from state 704 into state 706. Thereafter, the LLM instance is in the ready state. Next, the orchestrator 118 issues the ready-state notice to the routing engine 114 identifying the LLM instance as being in the ready state.
[0115] At time 702(4), the voice traffic handler 104 sends the forecasted voice traffic request to the routing engine 114. The routing engine 114 routes the forecasted voice traffic request to the LLM instance conditioned on the LLM instance being in the ready state. The routing engine 114 routes the forecasted voice traffic request to the LLM instance based at least in part on the ready-state notice received from the orchestrator 118 at time 702(3).
[0116] At time 702(5), the LLM instance transitions from state 706 into state 708 and serves the forecasted voice traffic request. During state 708, the LLM instance generates a response to the forecasted voice traffic request based at least in part on the model weights loaded into the GPU memory and the KV cache pre-warmed during state 704.
[0117] The temporal flow depicted in FIG. 7 illustrates that the provisioning of the LLM instance during state 704 is completed prior to receipt of the forecasted voice traffic request at time 702(4), and that the routing of the forecasted voice traffic request to the LLM instance at time 702(4) occurs only after the LLM instance has transitioned into state 706 at time 702(3). The forecasted voice traffic request is therefore routed to the LLM instance in the ready state, and the LLM instance serves the forecasted voice traffic request by substantially reducing cold-start initialization latency.
[0118] Thus, the system 700 illustrates the temporal flow of the pre-provisioning and routing of a forecasted voice traffic request. At time 702(1), the pre-provisioning manager 308 sends the prepare instruction to the orchestrator 118 prior to receipt of the forecasted voice traffic request. At time 702(2), the orchestrator 118 dispatches the prepare instruction to the LLM instance. During state 704, the LLM instance is provisioned by loading the model weights, allocating the compute resources, and pre-warming the KV cache. At time 702(3), the LLM instance transitions into state 706 and the orchestrator 118 issues the ready-state notice to the routing engine 114. At time 702(4), the routing engine 114 routes the forecasted voice traffic request to the LLM instance conditioned on the LLM instance being in the ready state. At time 702(5), the LLM instance serves the forecasted voice traffic request. By completing the provisioning of the LLM instance prior to receipt of the forecasted voice traffic request and by routing the forecasted voice traffic request to the LLM instance in the ready state, the system 700 reduces the cold-start latency that the forecasted voice traffic request would otherwise incur if routed to an LLM instance that has not been provisioned. The system 700 also reduces a provisioning lag time during one or more future time slots relative to provisioning performed without the temporal coordination depicted in FIG. 7.
[0119] FIG. 8 is a block diagram of a system 800 illustrating a temporal comparison between a route to an LLM instance that is not pre-provisioned 806 (referred to herein as Route A) and a route to a pre-provisioned LLM in ready state 828 (referred to herein as Route B), according to some embodiments. The system 800 depicts a voice traffic request 804 received at time 802(3), the LLM instance that is not pre-provisioned 806 along Route A, and the pre-provisioned LLM in ready state 828 along Route B. The system 800 illustrates that the same voice traffic request 804 results in a different end-to-end response latency depending on whether the voice traffic request 804 is routed to the LLM instance that is not pre-provisioned 806 along Route A or to the pre-provisioned LLM in ready state 828 along Route B.
[0120] The times 802(1) through 802(5) are successive time points, where time 802(1) is the earliest time and time 802(5) is the latest time. Time 802(1) is prior to time 802(2), time 802(2) is prior to time 802(3), time 802(3) is prior to time 802(4), and time 802(4) is prior to time 802(5).
[0121] At time 802(1), the pre-provisioning process 116 provisions a pre-provisioned LLM instance 830. The provisioning of the pre-provisioned LLM instance 830 occurs prior to receipt of the voice traffic request 804 predicted by the voice traffic forecast 602. The provisioning of the pre-provisioned LLM instance 830 prior to receipt of the voice traffic request 804 (referred to herein as provisioning prior to request receipt 820) comprises allocating compute resources 822 to the pre-provisioned LLM instance 830, loading model weights 824 into GPU memory of the pre-provisioned LLM instance 830, and initializing a KV cache 826 of the pre-provisioned LLM instance 830. The provisioning of the pre-provisioned LLM instance 830 is performed based at least in part on the voice traffic forecast 602.
[0122] At time 802(2), the pre-provisioned LLM instance 830 completes the allocating of the compute resources 822, the loading of the model weights 824, and the initializing of the KV cache 826. The pre-provisioned LLM instance 830 reaches a ready state and becomes the pre-provisioned LLM in ready state 828. The orchestrator 118 issues the ready-state notice to the routing engine 114 identifying the pre-provisioned LLM in ready state 828 as being in the ready state. The pre-provisioned LLM in ready state 828 is configured to process forecasted voice traffic requests predicted by the voice traffic forecast 602 with substantially reduced cold-start initialization latency upon arrival of the forecasted voice traffic requests.
[0123] At time 802(3), the voice traffic handler 104 sends the voice traffic request 804 to the routing engine 114. The voice traffic request 804 is one of the forecasted voice traffic requests predicted by the voice traffic forecast 602.
[0124] The routing engine 114 routes the voice traffic request 804 received at time 802(3) along Route A or along Route B. Route A is a path along which the voice traffic request 804 is routed to the LLM instance that is not pre-provisioned 806. Route B is a path along which the voice traffic request 804 is routed to the pre-provisioned LLM in ready state 828 conditioned on the pre-provisioned LLM in ready state 828 being in the ready state.
[0125] Along Route B at time 802(4), the token generator 832 of the pre-provisioned LLM in ready state 828 emits the first token 834 of a response to the voice traffic request 804. The token generator 832 emits the first token 834 without performing any cold-start work because the allocating of the compute resources 822, the loading of the model weights 824, and the initializing of the KV cache 826 have already been completed during the provisioning prior to request receipt 820. The pre-provisioned LLM in ready state 828 along Route B does not experience the cold-start latency 816.
[0126] Along Route A at time 802(4), the LLM instance that is not pre-provisioned 806 begins a sequence of cold-start work actions before the token generator 814 emits the first token 818 of a response to the voice traffic request 804. The sequence of cold-start work actions comprises allocating compute resources 808, loading model weights 810, and initializing a KV cache 812 of the LLM instance that is not pre-provisioned 806. The sequence of cold-start work actions begins at time 802(4) and ends at time 802(5).
[0127] At time 802(5) along Route A, the token generator 814 of the LLM instance that is not pre-provisioned 806 emits the first token 818 of the response to the voice traffic request 804. The first token 818 along Route A is emitted at time 802(5), which is later than the first token 834 along Route B emitted at time 802(4) by the cold-start latency 816.
[0128] The cold-start latency 816 is the time interval between time 802(4) and time 802(5) along Route A. The cold-start latency 816 corresponds to the time during which the LLM instance that is not pre-provisioned 806 performs the sequence of cold-start work actions before the token generator 814 emits the first token 818. The cold-start latency 816 is reduced when the voice traffic request 804 is routed along Route B to the pre-provisioned LLM in ready state 828.
[0129] In some embodiments, the voice traffic handler 104 is implemented as a voice agent application that conducts a multi-turn session with a patient and the voice traffic request 804 is a voice-agent inference request generated by the voice agent application during the multi-turn session. In such embodiments, routing the voice traffic request 804 along Route B to the pre-provisioned LLM in ready state 828 reduces an end-to-end response latency for the voice agent application and improves a voice experience of the patient during the multi-turn session, relative to routing the voice traffic request 804 along Route A to the LLM instance that is not pre-provisioned 806.
[0130] Thus, the system 800 illustrates the temporal comparison between Route A and Route B for the same voice traffic request 804 received at time 802(3). The pre-provisioning process 116 provisions the pre-provisioned LLM instance 830 prior to time 802(3) by allocating the compute resources 822, loading the model weights 824, and initializing the KV cache 826, and the pre-provisioned LLM instance 830 reaches the ready state at time 802(2) to become the pre-provisioned LLM in ready state 828. Upon receipt of the voice traffic request 804 at time 802(3) along Route B, the token generator 832 of the pre-provisioned LLM in ready state 828 emits the first token 834 at time 802(4) without performing the cold-start work. By contrast, upon receipt of the voice traffic request 804 at time 802(3) along Route A, the LLM instance that is not pre-provisioned 806 performs the sequence of cold-start work actions across times 802(4) through 802(5), and the token generator 814 emits the first token 818 only at time 802(5) after the cold-start latency 816. By routing the voice traffic request 804 to the pre-provisioned LLM in ready state 828 along Route B, the system 800 reduces the cold-start latency 816 and reduces an end-to-end response latency for the voice traffic request 804.
[0131] In the flow diagram of FIG. 9, each block represents one or more operations that can be implemented in hardware, software, or a combination thereof. In the context of software, the blocks represent computer-executable instructions that, when executed by one or more processors, cause the processors to perform the recited operations. The order in which the blocks are described is not intended to be construed as a limitation, and any number of the described operations can be combined in any order or in parallel to implement the process 900. For discussion purposes, the process 900 is described with reference to FIGS. 1-8, although other systems, frameworks, and environments may be used to implement the process 900.
[0132] At step 902, the process 900 analyzes voice traffic data to identify a set of voice traffic patterns. The voice traffic data was observed during a previous time interval. The voice traffic pattern identifier 304 of the pre-provisioning process 116 analyzes the voice traffic data and outputs the set of voice traffic patterns. The set of voice traffic patterns comprises a temporal distribution, a real-time versus batch characterization, a language distribution, a geographic distribution, an utterance duration distribution, or any combination thereof.
[0133] At step 904, the process 900 generates a voice traffic forecast 602 based at least in part on the set of voice traffic patterns. The forecast combiner 510 of the voice traffic forecast generator 306 of the pre-provisioning process 116 generates the voice traffic forecast 602. The voice traffic forecast 602 predicts a number of voice traffic requests at a future time slot.
[0134] At step 906, the process 900 determines a current serving capacity of active LLM instances 122 at a current time. The threshold capacity comparator 514 of the pre-provisioning process 116 determines the current serving capacity of active LLM instances 122.
[0135] At step 908, the process 900 compares the number of voice traffic requests predicted by the voice traffic forecast 602 at the future time slot to a current serving capacity of active LLM instances 122. The threshold capacity comparator 514 compares the number of voice traffic requests predicted at the future time slot to the current serving capacity of active LLM instances 122 at the current time. The threshold capacity comparator 514 outputs a binary trigger signal that indicates whether the current serving capacity of active LLM instances 122 is insufficient to serve the predicted voice traffic requests at the future time slot.
[0136] At step 910, the threshold capacity comparator 514 evaluates the binary trigger signal generated at step 908 to determine whether the current serving capacity of active LLM instances 122 is insufficient to serve the predicted voice traffic requests at the future time slot. If the current serving capacity is insufficient, the process 900 proceeds to step 914. If the current serving capacity is sufficient, the process 900 proceeds to step 912.
[0137] At step 912, the process 900 ends. The pre-provisioning process 116 does not perform a pre-provisioning action because the current serving capacity of active LLM instances 122 is sufficient to serve the predicted voice traffic requests at the future time slot.
[0138] At step 914, the process 900 generates a scaling recommendation specifying a target serving capacity at the future time slot. The scaling recommender 512 generates the scaling recommendation based at least in part on the binary trigger signal received from the threshold capacity comparator 514. The scaling recommender 512 determines the target serving capacity at the future time slot as a multiplier k times the number of voice traffic requests predicted by the voice traffic forecast 602 at the future time slot. The multiplier k is a scalar value greater than or equal to one that provides headroom for voice traffic above the number of voice traffic requests predicted at the future time slot.
[0139] At step 916, the process 900 generates a pre-provisioning specification 518. The pre-provisioning manager 308 generates the pre-provisioning specification 518 based at least in part on the voice traffic forecast 602 and the scaling recommendation. The pre-provisioning specification 518 specifies a particular number of LLM instances sufficient to meet the target serving capacity at the future time slot.
[0140] At step 918, the process 900 schedules a pre-provisioning action prior to receipt of forecasted voice traffic requests at the future time slot. The pre-provisioning scheduler 516 schedules the pre-provisioning action in accordance with the pre-provisioning specification 518.
[0141] At step 920, the process 900 allocates compute resources to one or more LLM instances identified in the pre-provisioning specification 518. The compute pre-allocator 520 allocates the compute resources from the GPU compute pool 402 prior to receipt of the forecasted voice traffic requests at the future time slot. Step 920 is performed in parallel with step 922 and step 924.
[0142] At step 922, the process 900 loads model weights into GPU memory of the one or more LLM instances identified in the pre-provisioning specification 518. The model weight pre-loader 522 loads the model weights from the NVMe storage 404 into the GPU memory prior to receipt of the forecasted voice traffic requests at the future time slot. The GPU memory referenced at step 922 is one example of a particular memory location into which the model weights are loaded. In some embodiments, the particular memory location is a particular memory location that is accessible to a GPU of the one or more LLM instances identified in the pre-provisioning specification 518. Examples of the particular memory location that is accessible to the GPU include the GPU memory, host memory accessible to the GPU over a PCIe bus, host memory accessible to the GPU over NVLink, unified memory shared between the GPU and a CPU, HBM, or any other memory location from which the GPU is configured to read the model weights during inference. Step 922 is performed in parallel with step 920 and step 924.
[0143] At step 924, the process 900 pre-warms KV caches of the one or more LLM instances identified in the pre-provisioning specification 518. The KV cache pre-warmer 524 pre-warms the KV caches prior to receipt of the forecasted voice traffic requests at the future time slot. Pre-warming the KV cache comprises populating the KV cache with key and value tensors for an initial portion of attention computations performed by individual LLM instances on the forecasted voice traffic requests upon arrival. Step 924 is performed in parallel with step 920 and step 922.
[0144] The completion of the allocating of the compute resources at step 920, the loading of the model weights into GPU memory at step 922, and the pre-warming of the KV caches at step 924 collectively pre-provisions the one or more LLM instances and generates individual pre-provisioned LLM instances 126 in a ready state. The pre-provisioning of the one or more LLM instances at steps 916 through 924 is based at least in part on the determination at step 910 that the current serving capacity of active LLM instances 122 is insufficient to serve the predicted voice traffic requests at the future time slot.
[0145] At step 926, the process 900 confirms the LLM instance is in the ready state and sends a ready-state notice to the routing engine 114. The orchestrator 118 confirms that the model weights are loaded into the GPU memory, the compute resources are allocated, and the KV cache is pre-warmed for individual LLM instances. The orchestrator 118 sends the ready-state notice to the routing engine 114 identifying individual pre-provisioned LLM instances 126 in the ready state.
[0146] At step 928, the process 900 routes a forecasted voice traffic request to a pre-provisioned LLM instance 126 conditioned on the pre-provisioned LLM instance 126 being in the ready state. The routing engine 114 routes the forecasted voice traffic request to the pre-provisioned LLM instance 126 upon receipt of the forecasted voice traffic request and based at least in part on the ready-state notice received from the orchestrator 118.
[0147] Thus, the process 900 illustrates the flow of operations in which the pre-provisioning process 116 analyzes voice traffic data to identify the set of voice traffic patterns, generates the voice traffic forecast 602, determines the current serving capacity of active LLM instances 122 at the current time, compares the number of voice traffic requests predicted by the voice traffic forecast 602 at the future time slot to the current serving capacity of active LLM instances 122, generates the scaling recommendation specifying the target serving capacity at the future time slot as a multiplier k times the number of voice traffic requests predicted at the future time slot conditioned on the current serving capacity being insufficient, generates the pre-provisioning specification 518, schedules the pre-provisioning action prior to receipt of the forecasted voice traffic requests, allocates the compute resources, loads the model weights into the GPU memory, and pre-warms the KV caches in parallel, confirms the ready state, sends the ready-state notice to the routing engine 114, and the routing engine 114 routes the forecasted voice traffic request to the pre-provisioned LLM instance 126 conditioned on the pre-provisioned LLM instance 126 being in the ready state. By performing the allocating of the compute resources, the loading of the model weights into the GPU memory, and the pre-warming of the KV caches prior to receipt of the forecasted voice traffic requests, and by routing the forecasted voice traffic request to the pre-provisioned LLM instance 126 in the ready state, the process 900 reduces a cold-start latency that the forecasted voice traffic request would otherwise incur if routed to an LLM instance that has not completed the pre-provisioning, and reduces a provisioning lag time during the future time slot relative to pre-provisioning performed without the voice traffic forecast 602.
[0148] FIG. 10 is a chart 1000 illustrating a target serving capacity 1006 of LLM instances at a future time slot sized as a multiple of a number of voice traffic requests predicted by a voice traffic forecast at the future time slot, according to some embodiments. The chart 1000 depicts a current serving capacity 1002 of active LLM instances 122 at a present time, the predicted voice traffic requests 1004 at the future time slot, the target serving capacity 1006 at the future time slot, and a multiplier k 1008. FIG. 10 introduces the current serving capacity 1002, the predicted voice traffic requests 1004, the target serving capacity 1006, and the multiplier k 1008 not shown in FIGS. 1-9.
[0149] The current serving capacity 1002 is the serving capacity of active LLM instances 122 at the present time. The current serving capacity 1002 is denoted C. The current serving capacity 1002 represents the number of voice traffic requests that the active LLM instances 122 are configured to serve at the present time without pre-provisioning additional LLM instances.
[0150] The predicted voice traffic requests 1004 is the number of voice traffic requests predicted by the voice traffic forecast 602 at the future time slot. The predicted voice traffic requests 1004 is denoted D. The predicted voice traffic requests 1004 corresponds to the number of voice traffic requests that the voice traffic forecast 602 predicts will arrive at the voice traffic handler 104 during the future time slot. The predicted voice traffic requests 1004 represents a capacity demand at the future time slot, with each predicted voice traffic request corresponding to a unit of serving capacity required to serve the voice traffic request.
[0151] The target serving capacity 1006 is the serving capacity of LLM instances at the future time slot to serve the predicted voice traffic requests 1004. The target serving capacity 1006 is denoted k × D, where k is the multiplier k 1008 and D is the predicted voice traffic requests 1004. The target serving capacity 1006 is sized as a multiple of the predicted voice traffic requests 1004 at the future time slot. The target serving capacity 1006 represents a capacity at the future time slot equal to the multiplier k 1008 times the capacity demand corresponding to the predicted voice traffic requests 1004.
[0152] The multiplier k 1008 is a scalar value greater than or equal to one. The multiplier k 1008 sizes the target serving capacity 1006 above the predicted voice traffic requests 1004 to provide headroom for voice traffic above the predicted voice traffic requests 1004. In some embodiments, the multiplier k 1008 is approximately 1.2. In some embodiments, the multiplier k 1008 is in a range of approximately 1.0 to approximately 2.0. Other values of the multiplier k 1008 may be used.
[0153] The threshold capacity comparator 514 of the pre-provisioning process 116 compares the predicted voice traffic requests 1004 to the current serving capacity 1002 at the present time. In response to the predicted voice traffic requests 1004 exceeding the current serving capacity 1002 at the present time, the threshold capacity comparator 514 outputs a binary trigger signal indicating that the current serving capacity 1002 is insufficient to serve the predicted voice traffic requests 1004 at the future time slot.
[0154] The scaling recommender 512 of the pre-provisioning process 116 receives the binary trigger signal from the threshold capacity comparator 514. The scaling recommender 512 generates a scaling recommendation conditioned on the binary trigger signal indicating that the current serving capacity 1002 is insufficient. The scaling recommendation specifies the target serving capacity 1006 at the future time slot as the multiplier k 1008 times the predicted voice traffic requests 1004. The scaling recommender 512 outputs the scaling recommendation to the pre-provisioning manager 308.
[0155] The pre-provisioning manager 308 generates the pre-provisioning specification 518 based at least in part on the voice traffic forecast 602 and the scaling recommendation. The pre-provisioning specification 518 specifies a particular number of LLM instances sufficient to meet the target serving capacity 1006 at the future time slot. The pre-provisioning scheduler 516 schedules a pre-provisioning action prior to receipt of the predicted voice traffic requests 1004 at the future time slot to provision the particular number of LLM instances and generate individual pre-provisioned LLM instances 126 sufficient to meet the target serving capacity 1006.
[0156] Thus, the chart 1000 illustrates the relationship among the current serving capacity 1002 at the present time, the predicted voice traffic requests 1004 at the future time slot, the target serving capacity 1006 at the future time slot, and the multiplier k 1008. The current serving capacity 1002 is the baseline against which the predicted voice traffic requests 1004 are compared to determine that the current serving capacity 1002 is insufficient to serve the predicted voice traffic requests 1004 at the future time slot. The target serving capacity 1006 is sized as the multiplier k 1008 times the predicted voice traffic requests 1004 to provide headroom for voice traffic above the predicted voice traffic requests 1004. By sizing the target serving capacity 1006 as a multiple of the predicted voice traffic requests 1004 and pre-provisioning a particular number of LLM instances sufficient to meet the target serving capacity 1006, the chart 1000 illustrates an improvement in stability of resource utilization across a voice traffic lifecycle relative to pre-provisioning performed without the multiplier k 1008.
[0157] FIG. 11 is example software code 1100 illustrating an implementation of the voice traffic pattern identifier 304 that analyzes voice traffic data to identify a set of voice traffic patterns, according to some embodiments. The example software code 1100 implements a class named VoiceTrafficAnalyzer that exposes a method analyze_voice_patterns. The analyze_voice_patterns method takes voice traffic data as input and returns the set of voice traffic patterns.
[0158] The example software code 1100 is an embodiment of the voice traffic pattern identifier 304 of FIGS. 3 and 5. The VoiceTrafficAnalyzer class implements the functionality of the temporal analyzer 310, the real-time / batch classifier 312, the language analyzer 314, the geographic analyzer 316, the utterances duration analyzer 318, and the voice pattern aggregator 320.
[0159] The analyze_voice_patterns method receives the voice traffic data as a parameter named traffic_data. The voice traffic data was observed during a previous time interval and was emitted by the voice traffic handler 104 to the pre-provisioning process 116. The analyze_voice_patterns method analyzes the voice traffic data and constructs a patterns dictionary that comprises the set of voice traffic patterns.
[0160] The patterns dictionary specifies five keys, each associated with a value generated by a corresponding method of the VoiceTrafficAnalyzer class. The speech_duration_distribution key is associated with the utterance duration distribution of the voice traffic, generated by an analyze_speech_lengths method that is an embodiment of the utterances duration analyzer 318. The language_distribution key is associated with the language distribution of the voice traffic, generated by an identify_languages method that is an embodiment of the language analyzer 314. The real_time_ratio key is associated with the real-time versus batch characterization of the voice traffic, generated by a calculate_realtime_percentage method that is an embodiment of the real-time / batch classifier 312. The peak_traffic_periods key is associated with the temporal distribution of the voice traffic, generated by an identify_peak_periods method that is an embodiment of the temporal analyzer 310. The geographic_distribution key is associated with the geographic distribution of the voice traffic, generated by an analyze_geographic_patterns method that is an embodiment of the geographic analyzer 316.
[0161] The analyze_voice_patterns method calls a generate_voice_routing_strategy method on the patterns dictionary and returns the result. The generate_voice_routing_strategy method generates a voice routing strategy based at least in part on the set of voice traffic patterns. In some embodiments, the voice routing strategy is provided as input to the voice traffic forecast generator 306 to inform generation of the voice traffic forecast 602.
[0162] The example software code 1100 is a non-limiting example of an implementation of the voice traffic pattern identifier 304. Other software implementations using different programming languages, class structures, method names, return types, or any combination thereof, may be used in place of, or in addition to, the example software code 1100. The categories of voice traffic patterns identified in FIG. 11 are non-limiting examples of categories of voice traffic patterns that the voice traffic pattern identifier 304 identifies in the voice traffic data. Other categories of voice traffic patterns may be identified in the voice traffic data in place of, or in addition to, the categories depicted in FIG. 11.
[0163] Thus, the example software code 1100 illustrates a software embodiment of the voice traffic pattern identifier 304 that analyzes voice traffic data to identify the set of voice traffic patterns. The set of voice traffic patterns comprises an utterance duration distribution, a language distribution, a real-time versus batch characterization, a temporal distribution, and a geographic distribution. By implementing the voice traffic pattern identifier 304 as the example software code 1100, the system identifies the set of voice traffic patterns and feeds the set of voice traffic patterns to the voice traffic forecast generator 306 to generate the voice traffic forecast 602 used by the pre-provisioning process 116.
[0164] FIG. 12 is a chart 1200 illustrating concurrent voice traffic across four categories of voice traffic over an observation window, according to some embodiments. The chart 1200 plots a number of concurrent voice traffic requests on a vertical axis and a time on a horizontal axis. The chart 1200 depicts four categories of voice traffic: a production active category, a production connect category, an evaluation active category, and an evaluation connect category.
[0165] The vertical axis of the chart 1200 represents a number of concurrent voice traffic requests ranging from approximately zero to approximately two hundred. The horizontal axis of the chart 1200 represents time and spans from approximately 18:35 to approximately 19:00, representing a twenty-five-minute observation window across which the voice traffic pattern identifier 304 analyzes voice traffic data. The vertical axis values and the horizontal axis values are non-limiting examples.
[0166] The production active category represents voice traffic requests that are currently being processed by active LLM instances 122 in a production deployment. The production connect category represents voice traffic requests that have established a voice session with the voice traffic handler 104 in the production deployment. The evaluation active category represents voice traffic requests that are currently being processed by active LLM instances 122 in an evaluation deployment. The evaluation connect category represents voice traffic requests that have established a voice session with the voice traffic handler 104 in the evaluation deployment.
[0167] The chart 1200 illustrates that the number of concurrent voice traffic requests in the production active category exceeds the number of concurrent voice traffic requests in the production connect category, the evaluation active category, and the evaluation connect category across the observation window. The chart 1200 illustrates a temporal variation in the number of concurrent voice traffic requests in the production active category, with a peak of approximately two hundred concurrent voice traffic requests at approximately 18:40 and a minimum of approximately forty concurrent voice traffic requests at approximately 18:58. The temporal variation is one of the temporal patterns identified by the temporal analyzer 310 of the voice traffic pattern identifier 304.
[0168] In some embodiments, the voice traffic pattern identifier 304 receives the voice traffic data depicted in the chart 1200 from the voice traffic handler 104. The temporal analyzer 310 analyzes the voice traffic data to identify a temporal distribution of the voice traffic. The voice pattern aggregator 320 aggregates the temporal distribution into the set of voice traffic patterns and outputs the set of voice traffic patterns to the voice traffic forecast generator 306. The voice traffic forecast generator 306 generates the voice traffic forecast 602 based at least in part on the set of voice traffic patterns to predict a number of voice traffic requests at a future time slot.
[0169] The threshold capacity comparator 514 determines, based at least in part on the predicted number of voice traffic requests, whether a current serving capacity of active LLM instances 122 at a present time is insufficient to serve the predicted number of voice traffic requests at the future time slot.
[0170] Thus, the chart 1200 illustrates the temporal variation in the number of concurrent voice traffic requests across the four categories of voice traffic over the observation window. By analyzing the voice traffic data depicted in the chart 1200 to identify the temporal variation and by generating the voice traffic forecast 602 based at least in part on the temporal variation, the pre-provisioning process 116 generates the prepare instruction prior to receipt of voice traffic requests at the future time slot, provisions individual LLM instances based at least in part on the voice traffic forecast 602, and generates individual pre-provisioned LLM instances 126 in the ready state to serve the voice traffic requests at the future time slot.
[0171] FIG. 13 is a chart 1300 illustrating zero error counts across a plurality of LLM instances during a spike window of voice traffic, according to some embodiments. The zero error counts evidence that the pre-provisioning process 116 has provisioned a sufficient number of pre-provisioned LLM instances 126 in the ready state to serve voice traffic predicted by the voice traffic forecast 602 at a future time slot. The chart 1300 plots a number of error counts on a vertical axis and a time on a horizontal axis. The chart 1300 also depicts a table that lists individual LLM instances and a maximum error count for individual LLM instances during the spike window.
[0172] The vertical axis of the chart 1300 represents a number of error counts ranging from zero to approximately one hundred. The horizontal axis spans from approximately 18:35 to approximately 19:00, representing a twenty-five-minute spike window of voice traffic that corresponds to the observation window depicted in FIG. 12. The vertical axis values and the horizontal axis values are non-limiting examples.
[0173] The error counts depicted in the chart 1300 comprise client error counts and unauthorized error counts. The client error counts correspond to error counts arising from voice traffic requests that the LLM instances are unable to process. The unauthorized error counts correspond to error counts arising from voice traffic requests that fail authorization at the LLM instances. The error counts are zero across the spike window for individual LLM instances depicted in the table.
[0174] The table depicts a plurality of LLM instance identifiers and a maximum error count for individual LLM instance identifiers during the spike window. The plurality of LLM instance identifiers comprises prod-i60:400, prod-kf3:400, prod-ld6:400, prod-mrx:400, prod-pe2:400, prod-emotivox:401, prod-i60:401, prod-l3:401, prod-l405b:401, prod-l405s:401, and prod-md2:401. The maximum error count for each of the eleven LLM instance identifiers during the spike window is zero. The plurality of LLM instance identifiers is a non-limiting example of LLM instances of the LLM cluster 120 of FIG. 1.
[0175] In some embodiments, the spike window depicted in the chart 1300 corresponds to a peak in the number of concurrent voice traffic requests in the production active category depicted in FIG. 12. The pre-provisioning process 116 has generated the voice traffic forecast 602 prior to the spike window and has provisioned individual LLM instances 126 in the ready state prior to onset of the spike window.
[0176] The zero error counts indicate that the target serving capacity at the future time slot was correctly determined and that the particular number of LLM instances pre-provisioned by the pre-provisioning process 116 was sufficient to serve the forecasted voice traffic requests during the spike window without saturation. Without the pre-provisioning, individual LLM instances of the LLM cluster 120 would have incurred the cold-start latency upon arrival of the forecasted voice traffic requests, which would have resulted in delayed processing of the forecasted voice traffic requests and an increase in the number of error counts during the spike window. The zero error counts therefore validate that the pre-provisioning process 116 generated the voice traffic forecast 602 with sufficient accuracy and provisioned individual LLM instances 126 with sufficient capacity to absorb the spike in voice traffic.
[0177] Thus, the chart 1300 illustrates the zero error counts across the plurality of LLM instances during the spike window. By pre-provisioning individual LLM instances 126 prior to receipt of the forecasted voice traffic requests and routing the forecasted voice traffic requests to individual pre-provisioned LLM instances 126 in the ready state, the system improves a pre-provisioning accuracy and reduces a pre-provisioning lag time during the spike window relative to pre-provisioning performed after onset of the spike window.
[0178] FIG. 14 is a chart 1400 illustrating active instance counts of pre-provisioned LLM instances 126 across a plurality of LLM models during a spike window of voice traffic, according to some embodiments. The flat lines depicted in the chart 1400 evidence that the pre-provisioning process 116 has provisioned a sufficient number of pre-provisioned LLM instances 126 in the ready state to handle the voice traffic predicted by the voice traffic forecast 602 at a future time slot, without reactive scale-up of LLM instances during the spike window. The chart 1400 plots a number of active instances on a vertical axis and a time on a horizontal axis. The chart 1400 also depicts a table that lists individual LLM models and a current active instance count for individual LLM models during the spike window.
[0179] The vertical axis of the chart 1400 represents a number of active instances. The horizontal axis spans approximately 18:35 to approximately 19:00, representing a twenty-five-minute spike window of voice traffic that corresponds to the observation window depicted in FIG. 12. The horizontal axis values are non-limiting examples of the spike window during which the pre-provisioning process 116 has provisioned individual pre-provisioned LLM instances 126 sufficient to meet a target serving capacity at the future time slot.
[0180] The chart 1400 illustrates a plurality of horizontal lines. Each horizontal line corresponds to a number of active instances of a respective LLM model across the spike window. The horizontal lines are flat across the spike window, indicating that the number of active instances of individual LLM models is constant across the spike window.
[0181] The table depicts a plurality of LLM model identifiers and a current active instance count for individual LLM model identifiers during the spike window. The plurality of LLM model identifiers comprises sm4, l405b, i60, ff2, l70v33, s17, ced3, dsr1a, i60l300b, and kd7. The current active instance counts for the respective LLM model identifiers are ten, eight, six, four, four, three, two, two, two, and two. The plurality of LLM model identifiers and the current active instance counts are non-limiting examples of LLM models and active instance counts of the LLM cluster 120 of FIG. 1.
[0182] The flat horizontal lines across the spike window indicate that the particular number of LLM instances pre-provisioned by the pre-provisioning process 116 was sufficient to serve the forecasted voice traffic requests during the spike window without requiring reactive scale-up of additional LLM instances. Without the pre-provisioning, the LLM cluster 120 would have responded to the spike in voice traffic by reactively scaling up the number of LLM instances after onset of the spike window, which would have introduced cold-start latency for the forecasted voice traffic requests arriving during the cold-start period and would have caused the active instance count lines to slope upward rather than remain flat. The flat lines therefore validate that the pre-provisioning process 116 generated the voice traffic forecast 602 with sufficient accuracy and provisioned individual LLM instances 126 in the ready state in advance of the spike window.
[0183] Thus, the chart 1400 illustrates the active instance counts of individual pre-provisioned LLM instances 126 across the plurality of LLM models during the spike window. By provisioning individual pre-provisioned LLM instances 126 prior to onset of the spike window, the pre-provisioning process 116 improves a provisioning accuracy and reduces a provisioning lag time during the spike window relative to provisioning performed reactively after onset of the spike window.
[0184] FIG. 15 is a chart 1500 illustrating utilized capacity and available capacity per LLM instance across a plurality of LLM instances, according to some embodiments. The chart 1500 plots a percentage of capacity on a vertical axis and a plurality of LLM instances on a horizontal axis. Each bar of the chart 1500 represents an LLM instance and is divided into a utilized capacity portion and an available capacity portion. A full bar represents one hundred percent capacity of an LLM instance.
[0185] The vertical axis of the chart 1500 represents a percentage of capacity, with values ranging from approximately zero percent to approximately one hundred percent. The horizontal axis of the chart 1500 represents the plurality of LLM instances per time sample. The vertical axis values illustrated in the chart 1500 are non-limiting examples of the percentage of capacity per LLM instance.
[0186] The utilized capacity portion of an individual bar represents the portion of the capacity of the LLM instance currently consumed by voice traffic requests being processed by the LLM instance. The available capacity portion of an individual bar represents the portion of the capacity of the LLM instance not consumed by voice traffic requests and available to serve additional voice traffic requests upon arrival.
[0187] The chart 1500 illustrates that individual LLM instances have an available capacity portion in addition to a utilized capacity portion. The available capacity portion across the plurality of LLM instances evidences that the pre-provisioning process 116 has provisioned a particular number of LLM instances sufficient to meet the target serving capacity at the future time slot, where the target serving capacity is a multiple of the number of voice traffic requests predicted by the voice traffic forecast 602 at the future time slot. The available capacity portion corresponds to capacity above the actual voice traffic requests being processed at the time of observation and is consistent with the target serving capacity being sized as the multiplier k 1008 times the predicted voice traffic requests, as introduced in FIG. 10.
[0188] In some embodiments, the available capacity portion across the plurality of LLM instances represents headroom for voice traffic requests that arrive in addition to the predicted voice traffic requests at the future time slot. The headroom enables the LLM instances to serve voice traffic requests that exceed the predicted voice traffic requests without saturating the utilized capacity of the LLM instances.
[0189] Thus, the chart 1500 illustrates that the plurality of LLM instances has available capacity in addition to utilized capacity across the plurality of LLM instances. The available capacity evidences that the pre-provisioning process 116 has provisioned the particular number of LLM instances sufficient to meet the target serving capacity at the future time slot, where the target serving capacity is sized as a multiple of the predicted voice traffic requests. By sizing the target serving capacity as a multiple of the predicted voice traffic requests and provisioning the particular number of LLM instances accordingly, the chart 1500 illustrates an improvement in stability of resource utilization across a voice traffic lifecycle relative to provisioning performed without the multiple of the predicted voice traffic requests.
[0190] In the flow diagram of FIG. 16, each block represents one or more operations that can be implemented in hardware, software, or a combination thereof. In the context of software, the blocks represent computer-executable instructions that, when executed by one or more processors, cause the processors to perform the recited operations. The order in which the blocks are described is not intended to be construed as a limitation, and any number of the described operations can be combined in any order or in parallel to implement the process 1600. For discussion purposes, the process 1600 is described with reference to FIGS. 1-15, although other systems, frameworks, and environments may be used to implement the process 1600.
[0191] At step 1602, the process 1600 analyzes voice traffic data to identify individual voice traffic patterns in a set of voice traffic patterns. The voice traffic data was observed during a previous time interval. The voice traffic pattern identifier 304 of the pre-provisioning process 116 analyzes the voice traffic data and outputs the set of voice traffic patterns.
[0192] At step 1604, the process 1600 generates a voice traffic forecast based at least in part on the set of voice traffic patterns. The voice traffic forecast predicts a number of voice traffic requests at a future time slot. The voice traffic forecast generator 306 of the pre-provisioning process 116 generates the voice traffic forecast.
[0193] At step 1606, prior to receipt of individual voice traffic requests in a set of voice traffic requests predicted by the voice traffic forecast, the process 1600 pre-provisions one or more LLM instances based at least in part on the voice traffic forecast. The pre-provisioning of the one or more LLM instances generates individual pre-provisioned LLM instances 126 in a set of pre-provisioned LLM instances.
[0194] At step 1608, the process 1600 routes individual forecasted voice traffic requests to individual pre-provisioned LLM instances 126 conditioned on individual pre-provisioned LLM instances 126 being in a ready state. The routing engine 114 routes the individual forecasted voice traffic requests to the individual pre-provisioned LLM instances 126. The ready state of individual pre-provisioned LLM instances 126 comprises model weights loaded into a particular memory location, compute resources allocated, and key-value caches pre-warmed. In some embodiments, the routing engine 114 routes individual forecasted voice traffic requests to individual pre-provisioned LLM instances 126 conditioned on receipt of a ready-state notice from an orchestrator, wherein the orchestrator transmits the ready-state notice in response to a readiness signal received from each of the individual pre-provisioned LLM instances 126 upon completion of provisioning.
[0195] Thus, the process 1600 illustrates four operations. First, the process 1600 analyzes the voice traffic data to identify the set of voice traffic patterns. Second, the process 1600 generates the voice traffic forecast based at least in part on the set of voice traffic patterns. Third, the process 1600 pre-provisions one or more LLM instances based at least in part on the voice traffic forecast, prior to receipt of individual voice traffic requests predicted by the voice traffic forecast. Fourth, the process 1600 routes individual forecasted voice traffic requests to individual pre-provisioned LLM instances 126 conditioned on individual pre-provisioned LLM instances 126 being in the ready state. By pre-provisioning the one or more LLM instances prior to receipt of individual voice traffic requests predicted by the voice traffic forecast and by routing individual forecasted voice traffic requests to individual pre-provisioned LLM instances 126 in the ready state, the process 1600 reduces a cold-start latency for individual forecasted voice traffic requests routed to individual pre-provisioned LLM instances 126.
[0196] FIG. 17 is a timing diagram 1700 of a multi-turn session of a voice agent application. A multi-turn session is a sequence of two or more turns of voice conversation between the human and the voice agent application, in which each turn comprises one or more voice traffic requests originating from the human and one or more responses generated by an invoked LLM instance. The multi-turn session comprises a sequence of invoked LLM instances. Individual invoked LLM instances in the sequence handle one or more turns of the multi-turn session. The pre-provisioning process 116 analyzes voice traffic patterns of one or more preceding turns to drive a voice traffic forecast. The voice traffic forecast pre-provisions a subsequently invoked LLM instance prior to receipt of voice traffic requests of a subsequent turn. The pre-provisioning reduces a cold-start delay that the user would otherwise experience between sequential turns of the multi-turn session.
[0197] The horizontal axis of the timing diagram 1700 represents time and includes time 1702(1) through time 1702(5). Turn 11704(1) begins at time 1702(1). Turn 21704(2) begins at time 1702(3). Turn 31704(3) begins at time 1702(5).
[0198] The sequence of invoked LLM instances includes pre-provisioned LLM instance A 1706(1), pre-provisioned LLM instance B 1706(2), and pre-provisioned LLM instance C 1706(3). Pre-provisioned LLM instance A 1706(1) handles turn 11704(1). Pre-provisioned LLM instance B 1706(2) handles turn 21704(2). Pre-provisioned LLM instance C 1706(3) handles turn 31704(3). The routing engine 114 routes voice traffic requests of each turn to the corresponding pre-provisioned LLM instance conditioned on the corresponding pre-provisioned LLM instance being in a ready state.
[0199] The pre-provisioning process 116 analyzes voice traffic data observed during one or more preceding turns of the multi-turn session to identify voice traffic patterns. The pre-provisioning process 116 identifies patterns 1708(1) by analyzing voice traffic data observed during turn 11704(1). The pre-provisioning process 116 identifies patterns 1708(2) by analyzing voice traffic data observed during turn 21704(2). In some cases, the pre-provisioning process 116 identifies the voice traffic patterns by analyzing voice traffic data observed across two or more preceding turns of the multi-turn session.
[0200] The pre-provisioning process 116 generates a voice traffic forecast based at least in part on the voice traffic patterns of the one or more preceding turns. The pre-provisioning process 116 generates forecast 1710(1) based at least in part on patterns 1708(1). The forecast 1710(1) predicts a number of voice traffic requests to be generated by pre-provisioned LLM instance B 1706(2) at a future time slot. The pre-provisioning process 116 generates forecast 1710(2) based at least in part on patterns 1708(1) or patterns 1708(2) (not all connections are depicted). Forecast 1710(2) predicts a number of voice traffic requests to be generated by pre-provisioned LLM instance C 1706(3) at a future time slot.
[0201] The pre-provisioning process 116 provisions one or more LLM instances based at least in part on the voice traffic forecast prior to receipt of individual voice traffic requests in a set of voice traffic requests predicted by the voice traffic forecast. Pre-provisioned LLM instance A 1706(1) is in the ready state for handling turn 11704(1) at time 1702(1). Provisioning LLM instance 1712(1) places pre-provisioned LLM instance B 1706(2) in the ready state for handling turn 21704(2) prior to time 1702(3). Provisioning LLM instance 1712(2) places pre-provisioned LLM instance C 1706(3) in the ready state for handling turn 31704(3) prior to time 1702(5).
[0202] The orchestrator 118 transmits a ready state notification to the routing engine 114 upon completion of each pre-provisioning operation. The orchestrator 118 transmits a first ready state notification to the routing engine 114 upon completion of provisioning LLM instance 1712(1). The first ready state notification indicates that pre-provisioned LLM instance B 1706(2) is in the ready state. The orchestrator 118 transmits a second ready state notification to the routing engine 114 upon completion of provisioning LLM instance 1712(2). The second ready state notification indicates that pre-provisioned LLM instance C 1706(3) is in the ready state. The routing engine 114 routes individual forecasted voice traffic requests of the subsequent turn to the subsequently invoked LLM instance conditioned on the subsequently invoked LLM instance being in the ready state.
[0203] FIG. 18 illustrates an example configuration of a server 1800 that can be used to implement the systems and techniques described herein. The server 1800 may be a server or a set of servers used to host one or more of the components described herein. In some embodiments, the systems and techniques described herein are implemented as an application programming interface (API), a plugin, or another type of implementation.
[0204] The server 1800 includes one or more processors 1802, a memory 1804, one or more communication interfaces 1806, a display device 1808, one or more other input / output (I / O) devices 1810, and one or more mass storage devices 1812. The processors 1802, the memory 1804, the communication interfaces 1806, the display device 1808, the other I / O devices 1810, and the mass storage devices 1812 communicate with each other via one or more system buses 1814 or other suitable connections. While a single system bus 1814 is illustrated for ease of understanding, the system bus 1814 may include multiple buses, such as a memory device bus, a storage device bus including a serial ATA (SATA) bus, a data bus including a universal serial bus (USB), a video signal bus including a digital video interface (DVI) bus or a high definition media interface (HDMI) bus, and a power bus.
[0205] The processors 1802 are one or more hardware devices that include a single processing unit or a plurality of processing units. The processors 1802 include one or more CPUs, one or more GPUs, or any combination thereof. The processors 1802 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, graphics processing units, state machines, logic circuitries, or any other devices that manipulate signals based on operational instructions. The processors 1802 are configured to fetch and execute computer-readable instructions stored in the memory 1804, the mass storage devices 1812, or other computer-readable media.
[0206] The memory 1804 and the mass storage devices 1812 are examples of computer storage media for storing instructions that are executed by the processors 1802 to perform the various functions described herein. The memory 1804 includes volatile memory, non-volatile memory, or any combination thereof, including random access memory (RAM), read only memory (ROM), or any other memory type. The mass storage devices 1812 include hard disk drives, solid-state drives, removable media, external drives, removable drives, memory cards, flash memory, optical disks, a storage array, a network attached storage (NAS), a storage area network (SAN), or any combination thereof. The memory 1804 and the mass storage devices 1812 are non-transitory media capable of storing computer-readable, processor-executable program instructions as computer program code that is executed by the processors 1802 to carry out the operations and functions described herein.
[0207] The communication interfaces 1806 exchange data via the networks 106. The communication interfaces 1806 facilitate communications within wired networks including Ethernet, Data Over Cable Service Interface Specification (DOCSIS), digital subscriber line (DSL), Fiber, or USB, and within wireless networks including wireless local area network (WLAN), global system for mobile (GSM), code division multiple access (CDMA), 802.11, Bluetooth, Wireless USB, ZigBee, cellular, or satellite. The communication interfaces 1806 also provide communication with external storage including a storage array, network attached storage, a storage area network, or cloud storage.
[0208] The display device 1808 displays content including information and images to users. The other I / O devices 1810 receive inputs from a user and provide outputs to the user. The other I / O devices 1810 include a keyboard, a touchpad, a mouse, a gaming controller, a printer, audio input / output devices, or any combination thereof.
[0209] The memory 1804 stores other software 1816 and other data 1818. The memory 1804 also stores the voice traffic handler 104, the routing engine 114, the orchestrator 118, and the pre-provisioning process 116 of FIG. 1. The pre-provisioning process 116 stored in the memory 1804 includes the voice traffic pattern identifier 304, the voice traffic forecast generator 306, and the pre-provisioning manager 308 of FIGS. 3 and 5. The processors 1802 fetch and execute the computer-readable instructions of the voice traffic handler 104, the routing engine 114, the orchestrator 118, and the pre-provisioning process 116 to perform the operations described herein.
[0210] The server 1800 communicates over the networks 106 with the device 102 of the human 108. The device 102 sends utterances 112 over the networks 106 to the voice traffic handler 104 stored in the memory 1804. The voice traffic handler 104 returns audio data 110 over the networks 106 to the device 102. The voice traffic handler 104, the routing engine 114, the orchestrator 118, and the pre-provisioning process 116 cooperate to analyze voice traffic data, generate a voice traffic forecast 602, provision one or more LLM instances based at least in part on the voice traffic forecast 602 prior to receipt of forecasted voice traffic requests, and route the forecasted voice traffic requests to individual pre-provisioned LLM instances 126 conditioned on individual pre-provisioned LLM instances 126 being in a ready state.
[0211] Thus, the server 1800 illustrates an example configuration of a server that hosts the voice traffic handler 104, the routing engine 114, the orchestrator 118, and the pre-provisioning process 116 in the memory 1804 and that executes the corresponding computer-readable instructions on the processors 1802. By executing the voice traffic handler 104, the routing engine 114, the orchestrator 118, and the pre-provisioning process 116 on the server 1800, the systems and techniques described herein reduce a cold-start latency for individual voice traffic requests routed to individual pre-provisioned LLM instances 126 in the ready state.
[0212] The computer storage media, such as memory 1804 and mass storage devices 1812, may be used to store any of the software and data described herein.
[0213] The example systems and computing devices described herein are merely examples suitable for some implementations and are not intended to suggest any limitation as to the scope of use or functionality of the environments, architectures and frameworks that can implement the processes, components and features described herein. Thus, implementations herein are operational with numerous environments or architectures, and may be implemented in general purpose and special-purpose computing systems, or other devices having processing capability. Generally, any of the functions described with reference to the figures can be implemented using software, hardware (e.g., fixed logic circuitry) or a combination of these implementations. The term “module,”“mechanism” or “component” as used herein generally represents software, hardware, or a combination of software and hardware that can be configured to implement prescribed functions. For instance, in the case of a software implementation, the term “module,”“mechanism” or “component” can represent program code (and / or declarative-type instructions) that performs specified tasks or operations when executed on a processing device or devices (e.g., CPUs or processors). The program code can be stored in one or more computer-readable memory devices or other computer storage devices. Thus, the processes, components and modules described herein may be implemented by a computer program product.
[0214] Furthermore, this disclosure provides various example implementations, as described and as illustrated in the drawings. However, this disclosure is not limited to the implementations described and illustrated herein, but can extend to other implementations, as would be known or as would become known to those skilled in the art. Reference in the specification to “one implementation,”“this implementation,”“these implementations” or “some implementations” means that a particular feature, structure, or characteristic described is included in at least one implementation, and the appearances of these phrases in various places in the specification are not necessarily all referring to the same implementation.
[0215] Although the present invention has been described in connection with several embodiments, the invention is not intended to be limited to the specific forms set forth herein. On the contrary, it is intended to cover such alternatives, modifications, and equivalents as can be reasonably included within the scope of the invention as defined by the appended claims.
Claims
1. A computer-implemented method, the method comprising:analyzing voice traffic data to identify individual voice traffic patterns in a set of voice trafficpatterns, wherein the voice traffic data was observed during a previous time interval;generating a voice traffic forecast based at least in part on the set of voice traffic patterns, wherein the voice traffic forecast predicts a number of voice traffic requests at a future time slot;prior to receipt of individual voice traffic requests in a set of voice traffic requests that are predicted by the voice traffic forecast, provisioning one or more large language model (LLM) instances, based at least in part on the voice traffic forecast, to generate individual pre-provisioned LLM instances in a set of pre-provisioned LLM instances; androuting individual voice traffic requests to individual pre-provisioned LLM instances conditioned on individual pre-provisioned LLM instances being in a ready state, wherein the ready state comprises model weights loaded into a particular memory location, compute resources allocated, and key-value caches pre-warmed.
2. The method of claim 1, wherein routing individual voice traffic requests to individual pre-provisioned LLM instances in the ready state reduces a cold-start latency for individual voice traffic requests that are routed relative to routing to LLM instances that are not pre-provisioned.
3. The method of claim 1, wherein provisioning the one or more LLM instances comprises loading model weights into a particular memory location prior to receipt of the individual voice traffic requests.
4. The method of claim 1, wherein routing individual voice traffic requests to individual pre-provisioned LLM instances conditioned on individual pre-provisioned LLM instances being in the ready state comprises:receiving, by an orchestrator, a readiness signal from each of the individual pre-provisioned LLM instances upon completion of provisioning; andtransmitting, by the orchestrator, a ready-state notice to a routing engine in response to the readiness signal, wherein routing is conditioned on receipt of the ready-state notice.
5. The method of claim 1, wherein the voice traffic data that was observed during the previous time interval is voice traffic data that comprises:temporal data,real-time data,batch data,language-specific data,geographic data,utterance duration data, orany combination thereof.
6. The method of claim 1, wherein the set of voice traffic patterns comprises:a temporal distribution,a real-time versus batch characterization,a language distribution,a geographic distribution,an utterance duration distribution, orany combination thereof.
7. The method of claim 1, further comprising:collecting application-side session data; andcollecting hardware-side infrastructure data,wherein generating the voice traffic forecast is based at least in part on the application-side session datagathered from a voice agent application and the hardware-side infrastructure data gathered from hardware telemetry.
8. The method of claim 7, wherein the hardware-side infrastructure data comprises one or more of:compute utilization,memory utilization,cache state, orcontext window utilization of one or more LLM instances.
9. A server comprising:one or more processors; andone or more non-transitory computer readable media storing instructions executable by the one or more processors to perform operations comprising:analyzing voice traffic data to identify individual voice traffic patterns in a set of voice traffic patterns, wherein the voice traffic data was observed during a previous time interval;generating a voice traffic forecast based at least in part on the set of voice traffic patterns, wherein the voice traffic forecast predicts a number of voice traffic requests at a future time slot;prior to receipt of individual voice traffic requests in a set of voice traffic requests that are predicted by the voice traffic forecast, provisioning one or more large language model (LLM) instances, based at least in part on the voice traffic forecast, to generate individual pre-provisioned LLM instances in a set of pre-provisioned LLM instances; androuting individual voice traffic requests to individual pre-provisioned LLM instances conditioned on individual pre-provisioned LLM instances being in a ready state, wherein the ready state comprises model weights loaded into a particular memory location, compute resources allocated, and key-value caches pre-warmed.
10. The server of claim 9, wherein generating the voice traffic forecast comprises applying a plurality of predictive models to the set of voice traffic patterns to generate:a short-term forecast,a medium-term forecast,a long-term forecast, orany combination thereof.
11. The server of claim 10, wherein provisioning the one or more LLM instances is based at least in part on:the short-term forecast,the medium-term forecast,the long-term forecast, orany combination thereof; andprovisioning the one or more LLM instances prior to receipt of the individual voice traffic requests improves a pre-provisioning accuracy and reduces a pre-provisioning lag time during one or more future time slots.
12. The server of claim 9, wherein:at least one or more individual voice traffic requests are individual voice-agent inference requests, androuting individual voice-agent inference requests to individual pre-provisioned LLM instances improves throughput of a voice agent application corresponding to individual voice-agent inference requests.
13. The server of claim 9, generating the voice traffic forecast comprises:partitioning the individual identified voice traffic patterns into a plurality of time horizons;applying a distinct forecasting model to each time horizon of the plurality of time horizons to generate a corresponding time-horizon forecast; andcombining the corresponding time-horizon forecasts to produce the voice traffic forecast comprising the predicted number of voice traffic requests at the future time slot.
14. The server of claim 9, the operations further comprising:determining that a serving capacity of active LLM instances is insufficient to serve the number ofvoice traffic requests predicted by the voice traffic forecast at the future time slot; andprovisioning the one or more LLM instances based at least in part on the determining.
15. The server of claim 14, the operations further comprising:determining a target serving capacity of LLM instances at the future time slot to serve the number of voice traffic requests predicted by the voice traffic forecast at the future time slot; andprovisioning the one or more LLM instances to generate a particular number of pre-provisionedLLM instances that are sufficient to meet the target serving capacity.
16. The server of claim 15, wherein:the target serving capacity is a multiple of the number of voice traffic requests predicted by thevoice traffic forecast at the future time slot; andsizing the target serving capacity as the multiple improves stability of resource utilization across a voice traffic lifecycle.
17. A non-transitory memory device to store instructions executable by one or more processors to perform operations comprising:analyzing voice traffic data to identify individual voice traffic patterns in a set of voice traffic patterns, wherein the voice traffic data was observed during a previous time interval;generating a voice traffic forecast based at least in part on the set of voice traffic patterns, wherein the voice traffic forecast predicts a number of voice traffic requests at a future time slot;prior to receipt of individual voice traffic requests in a set of voice traffic requests that are predicted by the voice traffic forecast, provisioning one or more large language model (LLM) instances, based at least in part on the voice traffic forecast, to generate individual pre-provisioned LLM instances in a set of pre-provisioned LLM instances; androuting individual voice traffic requests to individual pre-provisioned LLM instances conditioned on individual pre-provisioned LLM instances being in a ready state, wherein the ready state comprises model weights loaded into a particular memory location, compute resources allocated, and key-value caches pre-warmed.
18. The non-transitory memory device of claim 17, wherein:the voice traffic data is associated with a multi-turn session of a voice agent application;the multi-turn session comprising a sequence of invoked LLM instances;individual invoked LLM instances in the sequence of invoked LLM instances handle one or more turns of a sequence of turns of the multi-turn session;analyzing the voice traffic data includes identifying voice traffic patterns across the one or more turns of the multi-turn session; andthe voice traffic forecast predicts traffic to be generated by a subsequently invoked LLM instance based at least in part on the voice traffic patterns of one or more preceding turns of the multi-turn session.
19. The non-transitory memory device of claim 18, wherein routing individual voice traffic requests to individual pre-provisioned LLM instances based on the voice traffic forecast reduces inter-turn latency experienced by a user of a voice agent application between sequential turns of the multi-turn session.
20. The non-transitory memory device of claim 17, wherein routing individual voice traffic requests to individual pre-provisioned LLM instances in the ready state reduces end-to-end response latency of a voice agent application, thereby reducing inter-turn latency experienced by a patient during a voice agent call.
