Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Samples]update compute to fix failed samples CI #848

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cloud/azureai/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pf = PFClient(
# load flow
flow = "web-classification"
data = "web-classification/data.jsonl"
runtime = "demo-mir" # assume you have existing runtime with this name provisioned
runtime = "example-runtime-ci" # assume you have existing runtime with this name provisioned
# runtime = None # un-comment use automatic runtime

# create run
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 @@ -101,5 +101,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 --stream --runtime example-runtime-ci
```
4 changes: 2 additions & 2 deletions examples/flows/standard/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ 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}' --stream --runtime example-runtime-ci
# run using yaml file
pfazure run create --file run.yml --stream --runtime demo-mir
pfazure run create --file run.yml --stream --runtime example-runtime-ci
```

- List and show run meta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ 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 --runtime example-runtime-ci
# pfazure run create --flow . --data ./data.jsonl --stream # automatic runtime
pfazure run create --file run.yml --runtime demo-mir
pfazure run create --file run.yml --runtime example-runtime-ci
# 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 @@ -75,13 +75,13 @@ pf run create --file run.yml --stream

``` 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 --runtime example-runtime-ci --subscription <your_subscription_id> -g <your_resource_group_name> -w <your_workspace_name>
# pfazure run create --flow . --data ./data.jsonl --stream # automatic runtime

# set default workspace
az account set -s <your_subscription_id>
az configure --defaults group=<your_resource_group_name> workspace=<your_workspace_name>

pfazure run create --file run.yml --runtime demo-mir --stream
pfazure run create --file run.yml --runtime example-runtime-ci --stream
# pfazure run create --file run.yml --stream # automatic runtime
```
8 changes: 4 additions & 4 deletions examples/flows/standard/web-classification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ 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 --runtime example-runtime-ci
# pfazure run create --flow . --data ./data.jsonl --stream # automatic runtime

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

# create run using yaml file, --name is optional
pfazure run create --file run.yml --runtime demo-mir --name $run_name
pfazure run create --file run.yml --runtime example-runtime-ci --name $run_name
# pfazure run create --file run.yml --stream --name $run_name # automatic runtime


Expand All @@ -117,8 +117,8 @@ prev_run_name=$run_name
run_name="classification_accuracy_"$(openssl rand -hex 12)

# create evaluation run, --name is optional
pfazure run create --flow ../../evaluation/eval-classification-accuracy --data ./data.jsonl --column-mapping groundtruth='${data.answer}' prediction='${run.outputs.category}' --run $prev_run_name --runtime demo-mir
pfazure run create --file run_evaluation.yml --run $prev_run_name --stream --name $run_name --runtime demo-mir
pfazure run create --flow ../../evaluation/eval-classification-accuracy --data ./data.jsonl --column-mapping groundtruth='${data.answer}' prediction='${run.outputs.category}' --run $prev_run_name --runtime example-runtime-ci
pfazure run create --file run_evaluation.yml --run $prev_run_name --stream --name $run_name --runtime example-runtime-ci

pfazure run stream --name $run_name
pfazure run show --name $run_name
Expand Down
Loading