Merge pull request #1771 from Azure/release_update/Release-146

update samples from Release-146 as a part of  SDK release
This commit is contained in:
Harneet Virk
2022-06-20 14:31:06 -07:00
committed by GitHub
12 changed files with 24 additions and 42 deletions

View File

@@ -9,9 +9,11 @@ dependencies:
- PyJWT < 2.0.0
- numpy==1.18.5
- pywin32==227
- cryptography<37.0.0
- pip:
# Required packages for AzureML execution, history, and data preparation.
- azure-mgmt-core==1.3.0
- azure-core==1.21.1
- azure-identity==1.7.0
- azureml-defaults

View File

@@ -11,9 +11,11 @@ dependencies:
- urllib3==1.26.7
- PyJWT < 2.0.0
- numpy==1.19.5
- cryptography<37.0.0
- pip:
# Required packages for AzureML execution, history, and data preparation.
- azure-mgmt-core==1.3.0
- azure-core==1.21.1
- azure-identity==1.7.0
- azureml-defaults

View File

@@ -513,17 +513,7 @@
"conda_run_config.environment.docker.enabled = True\n",
"\n",
"# specify CondaDependencies obj\n",
"conda_run_config.environment.python.conda_dependencies = (\n",
" automl_run.get_environment().python.conda_dependencies\n",
")\n",
"\n",
"conda_run_config.environment.python.conda_dependencies.add_pip_package(\n",
" \"dotnetcore2==2.1.23\"\n",
")\n",
"\n",
"conda_run_config.environment.python.conda_dependencies.add_pip_package(\n",
" \"protobuf==3.20.1\"\n",
")"
"conda_run_config.environment = automl_run.get_environment()"
]
},
{
@@ -652,28 +642,6 @@
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Create the conda dependencies for setting up the service\n",
"We need to create the conda dependencies comprising of the *azureml* packages using the training environment from the *automl_run*."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"conda_dep = conda_run_config.environment.python.conda_dependencies\n",
"\n",
"with open(\"myenv.yml\", \"w\") as f:\n",
" f.write(conda_dep.serialize_to_string())\n",
"with open(\"myenv.yml\", \"r\") as f:\n",
" print(f.read())"
]
},
{
"cell_type": "markdown",
"metadata": {},
@@ -696,7 +664,7 @@
"metadata": {},
"source": [
"### Deploy the service\n",
"In the cell below, we deploy the service using the conda file and the scoring file from the previous steps. "
"In the cell below, we deploy the service using the automl training environment and the scoring file from the previous steps. "
]
},
{
@@ -718,7 +686,7 @@
" description=\"Get local explanations for Machine test data\",\n",
")\n",
"\n",
"myenv = Environment.from_conda_specification(name=\"myenv\", file_path=\"myenv.yml\")\n",
"myenv = automl_run.get_environment()\n",
"inference_config = InferenceConfig(entry_script=\"score_explain.py\", environment=myenv)\n",
"\n",
"# Use configs and models generated above\n",

View File

@@ -11,6 +11,8 @@ RUN pip install azureml-core
RUN pip install ray==0.8.7
RUN pip install ray[rllib,tune,serve]==0.8.7
RUN pip install tensorflow==1.14.0
RUN pip install 'msrest<0.7.0'
RUN pip install protobuf==3.20.0
RUN apt-get update
RUN apt-get install -y jq

View File

@@ -69,6 +69,9 @@ RUN pip install --no-cache-dir \
# This is required for ray 0.8.7
RUN pip install -U aiohttp==3.7.4
RUN pip install 'msrest<0.7.0'
RUN pip install protobuf==3.20.0
# This is needed for mpi to locate libpython
ENV LD_LIBRARY_PATH $AZUREML_CONDA_ENVIRONMENT_PATH/lib:$LD_LIBRARY_PATH

View File

@@ -93,11 +93,11 @@
"source": [
"%matplotlib inline\n",
"\n",
"# Azure Machine Learning Core imports\n",
"# Azure Machine Learning core imports\n",
"import azureml.core\n",
"\n",
"# Check core SDK version number\n",
"print(\"Azure Machine Learning SDK Version: \", azureml.core.VERSION)"
"print(\"Azure Machine Learning SDK version: \", azureml.core.VERSION)"
]
},
{

View File

@@ -90,7 +90,7 @@
"outputs": [],
"source": [
"import azureml.core\n",
"print(\"Azure Machine Learning SDK Version:\", azureml.core.VERSION)"
"print(\"Azure Machine Learning SDK version:\", azureml.core.VERSION)"
]
},
{

View File

@@ -12,6 +12,7 @@ RUN pip install azureml-dataset-runtime
RUN pip install ray==0.8.7
RUN pip install ray[rllib,tune,serve]==0.8.7
RUN pip install tensorflow==1.14.0
RUN pip install 'msrest<0.7.0'
RUN apt-get update
RUN apt-get install -y jq

View File

@@ -91,7 +91,7 @@
"source": [
"import azureml.core\n",
"\n",
"print(\"Azure Machine Learning SDK Version:\", azureml.core.VERSION)"
"print(\"Azure Machine Learning SDK version:\", azureml.core.VERSION)"
]
},
{

View File

@@ -33,4 +33,6 @@ RUN pip install ray-on-aml==0.1.6 & \
RUN pip install protobuf==3.20.0
RUN pip install --upgrade ray==0.8.3 \
ray[rllib,dashboard,tune]==0.8.3
ray[rllib,dashboard,tune]==0.8.3
RUN pip install 'msrest<0.7.0'

View File

@@ -33,4 +33,6 @@ RUN pip install protobuf==3.20.0
RUN pip3 install --upgrade \
ray==0.8.7 \
ray[rllib]==0.8.7 \
ray[tune]==0.8.7
ray[tune]==0.8.7
RUN pip install 'msrest<0.7.0'

View File

@@ -85,7 +85,7 @@
"outputs": [],
"source": [
"import azureml.core\n",
"print('Azure Machine Learning SDK Version: ', azureml.core.VERSION)"
"print('Azure Machine Learning SDK version: ', azureml.core.VERSION)"
]
},
{