Connection Error while Finetuning Phi-4 Model on Azure AI Foundry

Nuhu Ibrahim 0 Reputation points
2025-04-23T09:11:40.2633333+00:00

I get the connection below when fine-tuning Phi-4 model on Azure AI Foundry:

Note: I am using Managed Compute

Execution failed. User process 'Rank 0' exited with status code 1. Please check log file 'user_logs/std_log_process_0.txt' for error details. Error: [rank0]:   File "/azureml-envs/default/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
[rank0]:     r = adapter.send(request, **kwargs)
[rank0]:   File "/azureml-envs/default/lib/python3.10/site-packages/requests/adapters.py", line 700, in send
[rank0]:     raise ConnectionError(e, request=request)
[rank0]: exceptions.PredictException: PredictException:
[rank0]: 	Message: Model Prediction failed due to [ConnectionError(MaxRetryError("HTTPConnectionPool(host='0.0.0.0', port=8000): Max retries exceeded with url: /generate (Caused by NewConnectionError('
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,449 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nuhu Ibrahim 0 Reputation points
    2025-04-25T16:37:21.31+00:00

    Hi all, thanks so much for your response. I tried to finetune the model again on managed compute but it shows same error. Also, I couldn't do any error tracing further because it is managed compute - which means I don't have access to the infrastructure. I was only able to fill in the parameters through the interface and the entire training process is handled my azure ai foundry in the background.

    As I couldn't get it fixed, I resolved to other serverless models. However, it would be nice to know how to solve issues like these in the future considering cases may come when particular models are only available on managed compute and not on serverless.

    Thanks,
    Nuhu

    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.