Skip to content

Commit 055a7cd

Browse files
xanwalUbuntu
and
Ubuntu
authored
Dan's Triton and Triton Custom Container Samples (Azure#1643)
* taking other commit * workflow + readme * adding packages * triton-cc * Initial commit * Initial merge * Fix triton auth and img * Complete e2e test * Add cell tags * Apply black * Apply black and update readme * Fix endpoint/deployment * Add package installation to non-cc * Add single-model dir * Add single-model dir and rename triton-cc to triton * Added description for packages * Added peacock link * Format and fix model path in cc * Added user agent to dowlnoad image content * Added User-Agent * Remove model image and add archive model * Format black * Remove dev string * Clear output * Edits Co-authored-by: Ubuntu <amluser@hostnc24rsv3-1.zzzqpxhttcsuvnpjuyx4d4x4aa.xx.internal.cloudapp.net>
1 parent a3b6341 commit 055a7cd

9 files changed

+2289
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: sdk-endpoints-online-custom-container-triton-online-endpoints-triton-cc
2+
# This file is created by sdk/readme.py.
3+
# Please do not edit directly.
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 */8 * * *"
8+
pull_request:
9+
branches:
10+
- main
11+
paths:
12+
- sdk/endpoints/online/custom-container/triton/**
13+
- .github/workflows/sdk-endpoints-online-custom-container-triton-online-endpoints-triton-cc.yml
14+
- sdk/dev-requirements.txt
15+
- sdk/setup.sh
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: check out repo
21+
uses: actions/checkout@v2
22+
- name: setup python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: "3.8"
26+
- name: pip install notebook reqs
27+
run: pip install -r sdk/dev-requirements.txt
28+
- name: azure login
29+
uses: azure/login@v1
30+
with:
31+
creds: ${{secrets.AZ_CREDS}}
32+
- name: setup SDK
33+
run: bash setup.sh
34+
working-directory: sdk
35+
continue-on-error: true
36+
- name: setup CLI
37+
run: bash setup.sh
38+
working-directory: cli
39+
continue-on-error: true
40+
- name: run endpoints/online/custom-container/triton/online-endpoints-triton-cc.ipynb
41+
run: |
42+
sed -i -e "s/<SUBSCRIPTION_ID>/6560575d-fa06-4e7d-95fb-f962e74efd7a/g" online-endpoints-triton-cc.ipynb
43+
sed -i -e "s/<RESOURCE_GROUP>/azureml-examples/g" online-endpoints-triton-cc.ipynb
44+
sed -i -e "s/<AML_WORKSPACE_NAME>/main/g" online-endpoints-triton-cc.ipynb
45+
sed -i -e "s/DefaultAzureCredential/AzureCliCredential/g" online-endpoints-triton-cc.ipynb
46+
47+
papermill -k python online-endpoints-triton-cc.ipynb online-endpoints-triton-cc.output.ipynb
48+
working-directory: sdk/endpoints/online/custom-container/triton
49+
- name: upload notebook's working folder as an artifact
50+
if: ${{ always() }}
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: online-endpoints-triton-cc
54+
path: sdk/endpoints/online/custom-container/triton
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: sdk-endpoints-online-triton-single-model-online-endpoints-triton
2+
# This file is created by sdk/readme.py.
3+
# Please do not edit directly.
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 */8 * * *"
8+
pull_request:
9+
branches:
10+
- main
11+
paths:
12+
- sdk/endpoints/online/triton/single-model/**
13+
- .github/workflows/sdk-endpoints-online-triton-single-model-online-endpoints-triton.yml
14+
- sdk/dev-requirements.txt
15+
- sdk/setup.sh
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: check out repo
21+
uses: actions/checkout@v2
22+
- name: setup python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: "3.8"
26+
- name: pip install notebook reqs
27+
run: pip install -r sdk/dev-requirements.txt
28+
- name: azure login
29+
uses: azure/login@v1
30+
with:
31+
creds: ${{secrets.AZ_CREDS}}
32+
- name: setup SDK
33+
run: bash setup.sh
34+
working-directory: sdk
35+
continue-on-error: true
36+
- name: setup CLI
37+
run: bash setup.sh
38+
working-directory: cli
39+
continue-on-error: true
40+
- name: run endpoints/online/triton/single-model/online-endpoints-triton.ipynb
41+
run: |
42+
sed -i -e "s/<SUBSCRIPTION_ID>/6560575d-fa06-4e7d-95fb-f962e74efd7a/g" online-endpoints-triton.ipynb
43+
sed -i -e "s/<RESOURCE_GROUP>/azureml-examples/g" online-endpoints-triton.ipynb
44+
sed -i -e "s/<AML_WORKSPACE_NAME>/main/g" online-endpoints-triton.ipynb
45+
sed -i -e "s/DefaultAzureCredential/AzureCliCredential/g" online-endpoints-triton.ipynb
46+
47+
papermill -k python online-endpoints-triton.ipynb online-endpoints-triton.output.ipynb
48+
working-directory: sdk/endpoints/online/triton/single-model
49+
- name: upload notebook's working folder as an artifact
50+
if: ${{ always() }}
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: online-endpoints-triton
54+
path: sdk/endpoints/online/triton/single-model

sdk/README.md

+3-4
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)