OpenAI Batch API ends with only 5% lines completed

D-ENGRAVER 25 Reputation points
2025-03-14T08:50:34.08+00:00

I create a batch job (model: gpt-4o-mini) with 6868 lines input. After around 10 minutes, the batch completed, with only 307 lines ouput. There is no information in error file (it's just empty). I also tried previously succeded batch file, it also gives me only 300-400 lines of output.

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

1 answer

Sort by: Most helpful
  1. Saideep Anchuri 9,425 Reputation points Microsoft External Staff Moderator
    2025-03-18T08:18:17.7733333+00:00

    Hi D-ENGRAVER

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Ask: OpenAI Batch API ends with only 5% lines completed

    Solution: The issue is resolved. That you tried to upload a small batch (with 200 lines), this time it works well. I think as the problem is there, the compromise is to split batch into small batches (200 lines) and use code to control the batch lifecycle (after the previous batch completed, upload a new batch). Try to increase TPM limit.

    kindly refer below link: quotas-limits

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

     

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank You.


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.