Skip to content

Commit 3eb5043

Browse files
committed
fix syntax
1 parent 18ea88e commit 3eb5043

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

articles/ai-studio/how-to/create-manage-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ If you want to use a private feed in Azure DevOps, follow these steps:
144144
145145
By default, we use the latest prompt flow image as the base image. If you want to use a different base image, you need build your own base image, this docker image should be built from prompt flow base image that is `mcr.microsoft.com/azureml/promptflow/promptflow-runtime-stable:<newest_version>`. If possible use the [latest version of the base image](https://mcr.microsoft.com/v2/azureml/promptflow/promptflow-runtime-stable/tags/list). To use the new base image, you need to reset the runtime via the `reset` command. This process takes several minutes as it pulls the new base image and reinstalls packages.
146146
147-
:::image type="content" source="../media/prompt-flow/how-to-create-manage-runtime/runtime-creation-automatic-image-flow-dag.png" alt-text="Screenshot of actions for customizing an base image for an automatic runtime on a flow page." lightbox = "../media/prompt-flow/how-to-create-manage-runtime/runtime-creation-automatic-image-flow-dag.png":::
147+
:::image type="content" source="../media/prompt-flow/how-to-create-manage-runtime/runtime-creation-automatic-image-flow-dag.png" alt-text="Screenshot of actions for customizing a base image for an automatic runtime on a flow page." lightbox = "../media/prompt-flow/how-to-create-manage-runtime/runtime-creation-automatic-image-flow-dag.png":::
148148
149149
```yaml
150150
environment:

articles/machine-learning/prompt-flow/how-to-create-manage-runtime.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Same as authoring UI, you can also specify the runtime in CLI/SDK when you submi
128128

129129
# [Azure CLI](#tab/cli)
130130

131-
In you `run.yml` you can specify the runtime name or use the automatic runtime. If you specify the runtime name, it will use the runtime with the name you specified. If you specify automatic, it will use the automatic runtime. If you don't specify the runtime, it will use the automatic runtime by default.
131+
In your `run.yml` you can specify the runtime name or use the automatic runtime. If you specify the runtime name, it uses the runtime with the name you specified. If you specify automatic, it uses the automatic runtime. If you don't specify the runtime, it uses the automatic runtime by default.
132132

133133
In automatic runtime case, you can also specify the instance type, if you don't specify the instance type, Azure Machine Learning chooses an instance type (VM size) based on factors like quota, cost, performance and disk size, learn more about [serverless compute](../how-to-use-serverless-compute.md)
134134

@@ -183,10 +183,10 @@ base_run = pf.run(
183183
print(base_run)
184184
```
185185

186-
Learn full e2e code first example: [Integrate prompt flow with LLM-based application DevOps](./how-to-integrate-with-llm-app-devops.md)
186+
Learn full end to end code first example: [Integrate prompt flow with LLM-based application DevOps](./how-to-integrate-with-llm-app-devops.md)
187187

188-
### Referencing files outside of the flow folder - automatic runtime only
189-
Sometimes, you may want to reference a `requirements.txt` file that is outside of the flow folder. For example, you may want have big project which include multiple flows, and they share the same `requirements.txt` file. To do this, You can add this field `additional_includes` into the `flow.dag.yaml`. The value of this field is a list of the relative file/folder path to the flow folder. For example, if requirements.txt is in the parent folder of the flow folder, you can add `../requirements.txt` to the `additional_includes` field.
188+
### Reference files outside of the flow folder - automatic runtime only
189+
Sometimes, you might want to reference a `requirements.txt` file that is outside of the flow folder. For example, you might have complex project that includes multiple flows, and they share the same `requirements.txt` file. To do this, You can add this field `additional_includes` into the `flow.dag.yaml`. The value of this field is a list of the relative file/folder path to the flow folder. For example, if requirements.txt is in the parent folder of the flow folder, you can add `../requirements.txt` to the `additional_includes` field.
190190

191191
```yaml
192192
inputs:
@@ -203,7 +203,7 @@ additional_includes:
203203
...
204204
```
205205

206-
When you submit flow run using automatic runtime, the `requirements.txt` file will be copied to the flow folder, and use it to start your automatic runtime.
206+
When you submit flow run using automatic runtime, the `requirements.txt` file is copied to the flow folder, and use it to start your automatic runtime.
207207

208208
## Update a runtime on the UI
209209

@@ -281,11 +281,11 @@ If you select **Use customized environment**, you first need to rebuild the envi
281281

282282
## Relationship between runtime, compute resource, flow and user.
283283

284-
- One single user can have multiple compute resource (serverless or compute instance). Base on customer different need, we allow single user to have multiple compute resource. For example, one user can have multiple compute resource with different VM size. You can find
285-
- One compute resource can only used by single user. Compute resource is model as private dev box of single user, so we didn't allow multiple user share same compute resource. In AI studio case, different user can join different project and data and other asset need to be isolated, so we didn't allow multiple user share same compute resource.
286-
- One compute resource can host multiple runtimes. Runtime is container running on underling compute resource, as in common case, prompt flow authoring didn't need too many compute resource, we allow single compute resource to host multiple runtimes from same user.
287-
- One runtime will only belongs to single compute resource in same time. But you can delete or stop runtime and reallocate it to other compute resource.
288-
- In automatic runtime, one flow will only have one runtime, as we expect each flow is self contained it defined the base image and required python packge in flow folder. In compute instance runtime, you can run different flow on same compute instance runtime, but you need make sure the packages and image is compatible.
284+
- One single user can have multiple compute resources (serverless or compute instance). Base on customer different need, we allow single user to have multiple compute resources. For example, one user can have multiple compute resources with different VM size. You can find
285+
- One compute resource can only be used by single user. Compute resource is model as private dev box of single user, so we didn't allow multiple user share same compute resources. In AI studio case, different user can join different project and data and other asset need to be isolated, so we didn't allow multiple user share same compute resources.
286+
- One compute resource can host multiple runtimes. Runtime is container running on underlying compute resource, as in common case, prompt flow authoring didn't need too many compute resources, we allow single compute resource to host multiple runtimes from same user.
287+
- One runtime only belongs to single compute resource in same time. But you can delete or stop runtime and reallocate it to other compute resource.
288+
- In automatic runtime, one flow only have one runtime, as we expect each flow is self contained it defined the base image and required python package in flow folder. In compute instance runtime, you can run different flow on same compute instance runtime, but you need make sure the packages and image is compatible.
289289

290290
## Next steps
291291

0 commit comments

Comments
 (0)