Skip to content

Commit 5c9bef3

Browse files
authored
Update machine-learning-service-inference-config.md
removing non environment way from defining an inference config
1 parent e41a9e2 commit 5c9bef3

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

includes/machine-learning-service-inference-config.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,9 @@ The entries in the `inferenceconfig.json` document map to the parameters for the
1111
| JSON entity | Method parameter | Description |
1212
| ----- | ----- | ----- |
1313
| `entryScript` | `entry_script` | Path to a local file that contains the code to run for the image. |
14-
| `runtime` | `runtime` | Optional. Which runtime to use for the image. Supported runtimes are `spark-py` and `python`. If `environment` is set, this entry is ignored. |
15-
| `condaFile` | `conda_file` | Optional. Path to a local file that contains a Conda environment definition to use for the image. If `environment` is set, this entry is ignored. |
16-
| `extraDockerFileSteps` | `extra_docker_file_steps` | Optional. Path to a local file that contains additional Docker steps to run when setting up the image. If `environment` is set, this entry is ignored.|
1714
| `sourceDirectory` | `source_directory` | Optional. Path to folders that contain all files to create the image, which makes it easy to access any files within this folder or subfolder. You can upload an entire folder from your local machine as dependencies for the Webservice. Note: your entry_script, conda_file, and extra_docker_file_steps paths are relative paths to the source_directory path. |
18-
| `enableGpu` | `enable_gpu` | Optional. Whether to enable GPU support in the image. The GPU image must be used on an Azure service, like Azure Container Instances. For example, Azure Machine Learning Compute, Azure Virtual Machines, and Azure Kubernetes Service. The default is False. If `environment` is set, this entry is ignored.|
19-
| `baseImage` | `base_image` | Optional. Custom image to be used as a base image. If no base image is provided, the image will be based on the provided runtime parameter. If `environment` is set, this entry is ignored. |
20-
| `baseImageRegistry` | `base_image_registry` | Optional. Image registry that contains the base image. If `environment` is set, this entry is ignored.|
21-
| `cudaVersion` | `cuda_version` | Optional. Version of CUDA to install for images that need GPU support. The GPU image must be used on an Azure service. For example, Azure Container Instances, Azure Machine Learning Compute, Azure Virtual Machines, and Azure Kubernetes Service. Supported versions are 9.0, 9.1, and 10.0. If `enable_gpu` is set, the default is 9.1. If `environment` is set, this entry is ignored. |
22-
| `description` | `description` | A description for the image. If `environment` is set, this entry is ignored. |
2315
| `environment` | `environment` | Optional. Azure Machine Learning [environment](https://docs.microsoft.com/python/api/azureml-core/azureml.core.environment.environment?view=azure-ml-py).|
2416

25-
The following JSON is an example inference configuration for use with the CLI:
26-
27-
```json
28-
{
29-
"entryScript": "score.py",
30-
"runtime": "python",
31-
"condaFile": "myenv.yml",
32-
"extraDockerfileSteps": null,
33-
"sourceDirectory": null,
34-
"enableGpu": false,
35-
"baseImage": null,
36-
"baseImageRegistry": null
37-
}
38-
```
39-
4017
You can include full specifications of an Azure Machine Learning [environment](https://docs.microsoft.com/python/api/azureml-core/azureml.core.environment.environment?view=azure-ml-py) in the inference configuration file. If this environment doesn't exist in your workspace, Azure Machine Learning will create it. Otherwise, Azure Machine Learning will update the environment if necessary. The following JSON is an example:
4118

4219
```json

0 commit comments

Comments
 (0)