Skip to content

Commit

Permalink
update pfazure run create
Browse files Browse the repository at this point in the history
  • Loading branch information
D-W- committed Oct 18, 2023
1 parent a6e452d commit 9081053
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/reference/pfazure-command-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Inputs column mapping, use `${data.xx}` to refer to data file columns, use `${ru

`--run`

Referenced flow run name. For example, you can run an evaluation flow against an existing run. For example, "pfazure run create --flow evaluation_flow_dir --run existing_bulk_run".
Referenced flow run name. For example, you can run an evaluation flow against an existing run. For example, "pfazure run create --flow evaluation_flow_dir --run existing_bulk_run --column-mapping url='${data.url}'".

`--variant`

Expand Down
2 changes: 1 addition & 1 deletion examples/flows/standard/basic-with-connection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ Run flow with connection `open_ai_connection`.
az account set -s <your_subscription_id>
az configure --defaults group=<your_resource_group_name> workspace=<your_workspace_name>

pfazure run create --flow . --data ./data.jsonl --connections llm.connection=open_ai_connection --stream --runtime demo-mir
pfazure run create --flow . --data ./data.jsonl --connections llm.connection=open_ai_connection --column-mapping text='${data.text}' --stream --runtime demo-mir
```
2 changes: 1 addition & 1 deletion examples/flows/standard/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ az configure --defaults group=<your_resource_group_name> workspace=<your_workspa
- Create run
```bash
# run with environment variable reference connection in azureml workspace
pfazure run create --flow . --data ./data.jsonl --environment-variables AZURE_OPENAI_API_KEY='${open_ai_connection.api_key}' AZURE_OPENAI_API_BASE='${open_ai_connection.api_base}' --stream --runtime demo-mir
pfazure run create --flow . --data ./data.jsonl --environment-variables AZURE_OPENAI_API_KEY='${open_ai_connection.api_key}' AZURE_OPENAI_API_BASE='${open_ai_connection.api_base}' --column-mapping text='${data.text}' --stream --runtime demo-mir
# run using yaml file
pfazure run create --file run.yml --stream --runtime demo-mir
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ az configure --defaults group=<your_resource_group_name> workspace=<your_workspa

``` bash
# create run
pfazure run create --flow . --data ./data.jsonl --stream --runtime demo-mir
# pfazure run create --flow . --data ./data.jsonl --stream # automatic runtime
pfazure run create --flow . --data ./data.jsonl --column-mapping url='${data.url}' --stream --runtime demo-mir
# pfazure run create --flow . --data ./data.jsonl --column-mapping url='${data.url}' --stream # automatic runtime
pfazure run create --file run.yml --runtime demo-mir
# pfazure run create --file run.yml --stream # automatic runtime
```
Expand Down
4 changes: 2 additions & 2 deletions examples/flows/standard/flow-with-symlinks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Reference [here](../../../../docs/how-to-guides/use-column-mapping.md) for defau

``` bash
# create run
pfazure run create --flow . --data ./data.jsonl --stream --runtime demo-mir --subscription <your_subscription_id> -g <your_resource_group_name> -w <your_workspace_name>
# pfazure run create --flow . --data ./data.jsonl --stream # automatic runtime
pfazure run create --flow . --data ./data.jsonl --column-mapping url='${data.url}' --stream --runtime demo-mir --subscription <your_subscription_id> -g <your_resource_group_name> -w <your_workspace_name>
# pfazure run create --flow . --data ./data.jsonl --column-mapping url='${data.url}' --stream # automatic runtime

# set default workspace
az account set -s <your_subscription_id>
Expand Down
4 changes: 2 additions & 2 deletions examples/flows/standard/web-classification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ az account set -s <your_subscription_id>
az configure --defaults group=<your_resource_group_name> workspace=<your_workspace_name>

# create run
pfazure run create --flow . --data ./data.jsonl --stream --runtime demo-mir
# pfazure run create --flow . --data ./data.jsonl --stream # automatic runtime
pfazure run create --flow . --data ./data.jsonl --column-mapping url='${data.url}' --stream --runtime demo-mir
# pfazure run create --flow . --data ./data.jsonl --column-mapping url='${data.url}' --stream # automatic runtime

# (Optional) create a new random run name for further use
run_name="web_classification_"$(openssl rand -hex 12)
Expand Down

0 comments on commit 9081053

Please sign in to comment.