Machinelearningnotebooks: BUG: source_directory in InferenceConfig ignores .amlignore

Created on 22 Jan 2020  路  6Comments  路  Source: Azure/MachineLearningNotebooks

When deploying an inference script, before the Model.Deploy() step, the following snippet ignores the .amlignore file:

InferenceConfig(entry_script='code/infer.py',
                                   source_directory='.',
                                   environment=environment)

It takes all files in the root directory ('.' = root of the repository), even the files that are added to the .gitignore or .amlignore. In my case the problem is a folder that is +2GB in size. This reduces the speed of the deployment drastically and causes timeout errors.

Inference assigned-to-author awaiting-product-team-response product-issue triaged

All 6 comments

@maknotavailable
Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

It seems that .git/ folder is not ignored unless explicitly added to the .amlignore file. Any chance this can be re-visited? The current .git folder I am working with is >300MB, and was causing the issues stated above.

Any update on this issue ? I am facing a similar issue. I am using an .amlignore when deploying my scripts to an ACI but it seems like the the service doesn't take into account the amlignore when creating the instance

It seems that for training deployments, the .amlignore or .gitignore is taken into account. But not for deploying a service...This is filling up the container registry and resulting in very slow deployments. Any update on this issue?

Hi, I just found this ticket as I am experiencing the same issue. Have you been able to find a solution for this, @YutongTie-MSFT ? Already checked back with @maknotavailable
Thanks!

Hi, this issue still exists. A tracking backlog item has been created, but not yet been scheduled.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmwoloso picture jmwoloso  路  4Comments

jarandaf picture jarandaf  路  4Comments

shankarpandala picture shankarpandala  路  3Comments

wagenrace picture wagenrace  路  3Comments

lefaivre picture lefaivre  路  5Comments