How to config Azure OpenAI batch analysis?

Elahe Dorani 21 Reputation points
2025-03-10T08:23:21.8033333+00:00

I need to analyze a large amount of documents with gpt-4o model, but I found that the batch models are more efficient in cost.
I used the Azure Openai batch deployments explained in this page:

*https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/batch?tabs=global-batch%2Cstandard-input%2Cpython-secure&pivots=rest-api
*
In this page it is explained how to config the file and the curl commands. I converted the curl commands to C# syntax.

First, I generated 2 item jsonl file but it took about 10 minutes to get the response file.

Then I created a 1000 item jsonl file to send to model, it failed! I have exactly set the operation window to 24h.
I want to know is there any extra config to get the responses in a suitable time?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,784 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 4,280 Reputation points Microsoft External Staff
    2025-03-11T19:59:51.6366667+00:00

    Hi Elahe Dorani,
    To optimize the response time and ensure successful processing of a larger file, here are a few suggestions:

    • Ensure that you are not exceeding the batch size limits set by Azure OpenAI for processing. If the 1000-item jsonl file is too large for a single batch, consider splitting it into smaller batches and processing them sequentially.
    • Make sure that the jsonl file format is optimized for processing efficiency. Check if there are any unnecessary elements or formatting that could be impacting the processing time.
    • Double-check the configuration of your batch endpoint to ensure that it is optimized for handling larger batch sizes. You may need to adjust settings related to parallelization, resource allocation, or other parameters based on the size of the input data.

    I hope this information helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.