hottub.patents
US 12,809,641 B2#3064811 Most CitedActiveUnited States (USPTO)Utility

Selecting optimal hardware configurations

0Forward Citations (#3064811 Global)
0.0/yrCitation Velocity (#3064811 Global)
0.00Citation PageRank (#3064811 Global)
8Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A data processing service builds a container for a customer to run a trained large language model (LLM). The data processing service receives a trained LLM and a desired configuration from a user of a client device. Based on the desired configuration, the data processing service selects a hardware configuration and structures weights of the trained LLM based on the hardware configuration. The data processing service generates a container image reflecting the hardware configuration, registers the container image to a container registry, and generates a container from the container image as well as an application programming interface (API) endpoint for the container. The data processing service deploys the trained LLM in the API endpoint using the container such that the trained LLM is accessible through API calls.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method of building a container for a client to run a trained large language model (LLM) comprising: receiving the trained LLM and a desired configuration from a client device, the trained LLM including a set of weights, and the desired configuration including a cost threshold and an indication of whether a hardware configuration should be batch optimized or latency optimized; selecting the hardware configuration based on the desired configuration from a set of hardware configurations; structuring the set of weights of the trained LLM based on the hardware configuration by splitting the set of weights into a plurality of weight files corresponding to a plurality of graphics processing units (GPUs) of the hardware configuration, wherein each weight file of the plurality of weight files is individually loadable into a respective GPU of the plurality of GPUs; generating a container image reflecting the hardware configuration, the container image configured to allocate the plurality of GP

  2. Claim 2Depends on #1

    The method of claim 1, wherein structuring the set of weights of the trained LLM comprises splitting the weights using tensor parallelism.

  3. Claim 3Depends on #1

    The method of claim 1, wherein selecting the hardware configuration comprises selecting the hardware configuration based on a queries per second (QPS) of the trained LLM.

  4. Claim 4Depends on #1

    The method of claim 1, further comprising selecting a batching configuration for the trained LLM.

  5. Claim 5Depends on #1

    The method of claim 1, further comprising quantizing the trained LLM.

  6. Claim 6Depends on #1

    The method of claim 1, wherein selecting the hardware configuration comprises: determining a particular hardware configuration in a hardware configuration table that has a highest throughput for a model type of the trained LLM; computing an expected price per hour of the determined particular hardware configuration; and comparing the expected price per hour to a cost threshold.

  7. Claim 7Depends on #1

    The method of claim 1, wherein selecting the hardware configuration comprises determining a particular hardware configuration in a hardware configuration table that has a lowest latency for a model type of the trained LLM and has an expected price per hour that does not exceed a cost threshold.

  8. Claim 8Depends on #7

    The method of claim 7, wherein determining the hardware configuration in the hardware configuration table that has the lowest latency for the model type of the trained LLM comprises simulating an expected latency of at least one hardware configuration.

Technical Overview & Description

TECHNICAL FIELD The disclosed configuration relates generally to deploying large language models, and more particularly to selecting hardware configurations for processing large language models. BACKGROUND Open-source large language models (OSS LLMs) are desirable options when it comes to performing language processing tasks. OSS LLMs allow users to fine-tune pre-existing models with their own data, saving both time and cost associated with developing and training a model from scratch while also tailoring models to specific use-cases. However, running OSS LLMs can be time-intensive. Moreover, optimizing the hardware configurations that run OSS LLMs is often a difficult manual process that requires technical expertise. SUMMARY A data processing service automatically builds an executable software container for a user to run a trained large language model (LLM) with an optimized hardware configuration. The data processing service receives a trained LLM and a desired configuration from a user of a client device. Based on the desired configuration, the data processing service selects a hardware configuration and structures weights of the trained LLM based on the hardware configuration. The data processing service generates an image for a container (or container image) that reflects the hardware configuration. The container image is registered in a container registry. The data processing service generates a container from the container image in addition to an application programming interface (API) endpoint for the container. The data processing service deploys the trained LLM in the API endpoint using the container such that the trained LLM is accessible through API calls. BRIEF DESCRIPTION OF THE DRAWINGS The disclosed embodiments have other advantages and features which will be more readily apparent from the detailed description, the appended claims, and the accompanying figures (or drawings). A brief introduction of the figures is below. Figure (FIG.) 1 is a high-leve

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.