azure machine learning - environment - add conda dependancies by sdk for training on a compute instance

nabil ouddane 11 Reputation points
2022-02-23T14:04:55.433+00:00

hello guys, i m a bit confused

i need to add joblib package to a tensorflow 2.7 environment so as to load the needed datas during the train on the compute instance

1) i start by making an environnment clone:

env = Environment.get(workspace=ws, name="AzureML-tensorflow-2.7-ubuntu20.04-py38-cuda11-gpu")
curated_clone = env.clone("customize_curated")

2) i add conda dependancies at the python key (like the MS example)

conda_dep = CondaDependencies()
conda_dep.add_pip_package("joblib==1.0.1")
curated_clone.python.conda_dependencies=conda_dep

3) registration

curated_clone.register(workspace=ws)

i meet an error when i train the model by using the registred environment caus joblib is missing

but if i modify the dockerfile of the environmment by adding joblib directly on studio, everything is ok
could you please explain me what i m doing wrong with the sdk

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,915 questions
{count} votes

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.