Open michalmar opened 3 years ago
The official docs for ParallelRunConfig still show that keyword argument: azureml.pipeline.steps.ParallelRunConfig
.
I wonder if you're using the stale one — azureml.contrib.pipeline.steps.parallel_run_config.ParallelRunConfig
?
@dkmiller how can I check the stale one?
Look in your script to see from where you are importing the ParallelRunConfig
.
Also, suggest you make sure to pull the latest version of this repo.
I am using official not staled repo:
from azureml.pipeline.steps import ParallelRunConfig
repo cloned couple days ago - so not sure where the problem comes from..
I could not reproduce this. Try this "clean" Dockerfile:
FROM python:3.8
RUN pip install azureml-pipeline-steps==1.22.0 azureml-pipeline-core==1.22.0
RUN python -c "from azureml.pipeline.steps import ParallelRunConfig; cfg = ParallelRunConfig(allowed_failed_count=1,entry_script='hi.py',environment='foo',error_threshold=1,output_action='append_row',compute_target='cluster',node_count=1)"
Docker build fails with:
ValueError: Parameter environment must be an instance of azureml.core.Environment. The actual value is foo.
which means that there is no problem with the keyword allowed_failed_count
. I'd suggest re-creating your Python environment.
@dkmiller I am running on AML CI - should I create new conda env?
Yes, I'd suggest creating a new Conda environment from scratch. Follow this article to expose that Conda environment as a Jupyter kernel: https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084 .
when I try run the example
Custom_Script/02_CustomScript_Training_Pipeline.ipynb
I cannot createParallelRunConfig
it gives error:
I have updated to latest SDK (pipeline):
when I downgrade to
1.20.0
it works:so fix is: