Skip to content

Commit cce515b

Browse files
committed
remove stable for base image
1 parent 02263cd commit cce515b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

articles/machine-learning/prompt-flow/how-to-customize-environment-runtime.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ Mopidy-Dirble ~= 1.1 # Compatible release. Same as >= 1.1, == 1.*
5252

5353
For more information about structuring the `requirements.txt` file, see [Requirements file format](https://pip.pypa.io/en/stable/reference/requirements-file-format/) in the pip documentation.
5454

55+
> [!NOTE]
56+
> Don't pin the version of `promptflow` and `promptflow-tools` in `requirements.txt`, because we already include them in the runtime base image.
57+
5558
#### Define the `Dockerfile`
5659

5760
Create a `Dockerfile` and add the following content, then save the file:
@@ -65,7 +68,7 @@ RUN pip install -r requirements.txt
6568
> [!NOTE]
6669
> This docker image should be built from prompt flow base image that is `mcr.microsoft.com/azureml/promptflow/promptflow-runtime:<newest_version>`. If possible use the [latest version of the base image](https://mcr.microsoft.com/v2/azureml/promptflow/promptflow-runtime/tags/list).
6770
68-
### Step 2: Create custom Azure Machine Learning environment
71+
### Step 2: Create custom Azure Machine Learning environment
6972

7073
#### Define your environment in `environment.yaml`
7174

@@ -118,7 +121,7 @@ To learn more about environment CLI, see [Manage environments](../how-to-manage-
118121
## Customize environment with flow folder for automatic runtime (preview)
119122

120123
In `flow.dag.yaml` file in prompt flow folder, you can use `environment` section we can define the environment for the flow. It includes two parts:
121-
- image: which is the base image for the flow, if omitted, it uses the latest version of prompt flow base image `mcr.microsoft.com/azureml/promptflow/promptflow-runtime-stable:<newest_version>`. If you want to customize the environment, you can use the image you created in previous section.
124+
- image: which is the base image for the flow, if omitted, it uses the latest version of prompt flow base image `mcr.microsoft.com/azureml/promptflow/promptflow-runtime:<newest_version>`. If you want to customize the environment, you can use the image you created in previous section.
122125
- You can also specify packages `requirements.txt`, Both automatic runtime and flow deployment from UI will use the environment defined in `flow.dag.yaml` file.
123126

124127
:::image type="content" source="./media/how-to-customize-environment-runtime/runtime-creation-automatic-image-flow-dag.png" alt-text="Screenshot of customize environment for automatic runtime on flow page. " lightbox = "./media/how-to-customize-environment-runtime/runtime-creation-automatic-image-flow-dag.png":::
@@ -153,7 +156,7 @@ except Exception as ex:
153156

154157
ml_client = MLClient.from_config(credential=credential)
155158

156-
image = ImageSettings(reference='mcr.microsoft.com/azureml/promptflow/promptflow-runtime-stable:<newest_version>')
159+
image = ImageSettings(reference='mcr.microsoft.com/azureml/promptflow/promptflow-runtime:<newest_version>')
157160
endpoints = [EndpointsSettings(published=8081, target=8080)]
158161

159162
app = CustomApplications(name='promptflow-runtime',endpoints=endpoints,bind_mounts=[],image=image,environment_variables={})

0 commit comments

Comments
 (0)