# US 2026/0094057 A1 · Asynchronous, scalable and customizable model serving over pipes

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

- Number: US 2026/0094057 A1
- Document ID: US20260094057A1
- Status: Published application
- Kind: A1
- Application number: 18/903,479
- Filed: 2024-10-01
- Published: 2026-04-02
- Earliest claimed: 2024-10-01
- Assignees: Freshworks Inc.
- Applicants: Freshworks Inc.
- Inventors: Arrman Anicket SAHA
- Web page: https://patentgrep.com/patent/US20260094057A1

## CPC

- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for serving machine learning (ML) model over at least two pipes includes defining a function that receives at least two process pipes as arguments, and defining another class. The other class is used for creating and storing future objects and setting the result from another thread. The method also includes releasing a semaphore to avoid overloading of a second pipe once the data is sent to the other thread, and writing an asynchronous function to a first pipe or an input pipe in order to send the data to the other thread.

## Claims

### Claim 1

A computer-implemented method for serving machine learning (ML) model over at least two pipes, the method comprising:
defining a function that receives at least two process pipes as arguments;
defining another class, wherein the other class is used for creating and storing future objects and setting the result from another thread.
releasing a semaphore to avoid overloading of a second pipe once the data is sent to the other thread; and
writing an asynchronous function to a first pipe or an input pipe in order to send the data to the other thread.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
launching a separate process, wherein the separate process comprises
running a defined function at application startup and communicating with the defined function over a plurality of pipes in two threads to execute the ML model.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the function comprises a first part and a second part,
the first part comprises a library for performing importing of a model and loading of the model, and
the second part comprises
executing a true loop where one or more inputs are received from the first pipe,
executing one or more ML models loaded during the first part, and
sending an output from the execution of the one or more ML models to a second pipe.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
sending a request function through a semaphore prior to running ML model; and
creating a future object for the semaphore to prevent overloading of the second pipe.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising:
creating a data structure and adding a future from the data structure to a double ended queue, wherein
the data structure contains a list of a plurality of futures.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising:
sending the future to more than one model.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
receiving a batch size of items prior to running the more than one model;
running the more than one model in a batch; and
returning data from the batching of the more than one model back to the other thread.

### Claim 8 (depends on 4)

The computer-implemented method of claim 4, further comprising:
receiving data at a second process from the first process, wherein the first process and the second process are configured to run concurrently; and
receiving a plurality of inputs corresponding to different models.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, further comprising:
batching the data and sending the batch data to a corresponding one of a plurality of pipelines;

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the sending of the data comprising
sending pipeline number in addition to text associated with the data to the corresponding one of the plurality of the pipelines.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, further comprising:
executing the corresponding ones of the plurality of pipelines and a thread pool for the batched data.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, further comprising:
sending a final result from the corresponding one of the plurality of pipelines to the other thread.

### Claim 13

A computer-implemented method for processing batched data using a plurality of pipelines, comprising:
receiving, from a first process, data comprising a plurality of text, each of which corresponding to one of a plurality of models;
batching, at a second process, the data;
sending, at the second process, the batched data to a corresponding one of a plurality of pipelines;
executing, at the second process, each of the corresponding ones of the plurality of pipelines for the batch data; and
returning, from the second process, to the first process a final result from the executed corresponding ones of the plurality of the pipelines.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein the sending of the batched data comprises
sending text associated with the batch data to the corresponding one of a plurality of pipelines.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, wherein the sending of the batched data comprises
sending common pipeline numbers to the corresponding one of the plurality of pipelines.

### Claim 16 (depends on 13)

The computer-implemented method of claim 13, further comprising:
identifying the corresponding one of the plurality of pipelines based on text associated with a corresponding model; and
selecting the identified corresponding one of the plurality of the pipelines.

### Claim 17 (depends on 13)

The computer-implemented method of claim 13, wherein each of the corresponding one of the plurality of pipelines comprises one or more ML models.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein the one or more ML models comprises a sentence transformer model, a SKLearn classifier model, or both.

### Claim 19 (depends on 13)

The computer-implemented method of claim 13, further comprising:
releasing a semaphore when the final result is sent to a second thread running within the first process.

### Claim 20 (depends on 19)

The computer-implemented method of claim 19, further comprising:
receiving the final result from the second process at a second thread; and
sending, from the second thread, to a main thread the final result.
