Share via

Can't setting the scoring script when creating batch endpoint job

Yicong Cui 20 Reputation points Microsoft Employee
2025-03-07T09:00:40.0266667+00:00

I have a deployment in the Azure Machine Learning batch endpoint. In this deployment, I set a custom scoring script batch_driver.py. (see below picture)

azure_ml_job

However, when I try creating new job, the scoring name still is driver/amlbi_main.py. Is it a bug?

azure_ml_job2

Azure Machine Learning

Answer accepted by question author

Manas Mohanty 16,840 Reputation points Microsoft External Staff Moderator
2025-03-07T16:06:09.73+00:00

Hi Yicong Cui

Issue seems to be in scoring script. Normally driver/amlbi_main.py issues point towards missing environment packages or runtime issue in loading model etc.

You can debug it by adding try catch blocks in crucial steps like model/data loading, saving to storage location etc.

First point of debugging should be in endpoint logs.

If you could share endpoint and environment logs in private message, we can debug further.

Attached Troubleshoot guide for batch endpoint for reference

Thank you.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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