Skip to content

Commit

Permalink
Added install command for local examples notebook (#141)
Browse files Browse the repository at this point in the history
* Add features page placeholder

* Update docs/source/contents/about/features/index.md

Co-authored-by: Alex Rakowski <[email protected]>

* Added install command for local examples notebook

Co-authored-by: cliveseldon <[email protected]>
Co-authored-by: Alex Rakowski <[email protected]>
  • Loading branch information
3 people authored Apr 7, 2022
1 parent ff900dd commit 3bf3e96
Showing 1 changed file with 13 additions and 82 deletions.
95 changes: 13 additions & 82 deletions samples/local-examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,16 @@
"\n",
"\n",
" * Build if needed and place `seldon` binary in your path\n",
" * Install seldon locally "
" * run `make build-seldon` from operator folder and add bin folder to `PATH`\n",
" * Run Seldon V2 `make deploy-local` from top level folder"
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "modular-digest",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/clive/work/scv2/seldon-core-v2/operator/bin/seldon\r\n"
]
}
],
"outputs": [],
"source": [
"!which seldon"
]
Expand All @@ -40,58 +33,20 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "8b4be911",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"apiVersion: mlops.seldon.io/v1alpha1\r\n",
"kind: Model\r\n",
"metadata:\r\n",
" name: iris\r\n",
" namespace: seldon-mesh\r\n",
"spec:\r\n",
" storageUri: \"gs://seldon-models/mlserver/iris\"\r\n",
" requirements:\r\n",
" - sklearn\r\n"
]
}
],
"outputs": [],
"source": [
"!cat ./models/sklearn-iris-gs.yaml"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "checked-cream",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Error: rpc error: code = FailedPrecondition desc = failed to schedule model iris\r\n",
"Usage:\r\n",
" app model load [flags]\r\n",
"\r\n",
"Flags:\r\n",
" -f, --file-path string model file to load\r\n",
" -h, --help help for load\r\n",
" --scheduler-host string seldon scheduler host (default \"0.0.0.0\")\r\n",
" --scheduler-port int seldon scheduler port (default 9004)\r\n",
"\r\n",
"Global Flags:\r\n",
" -r, --show-request show request\r\n",
" -s, --show-response show response (default true)\r\n",
"\r\n",
"rpc error: code = FailedPrecondition desc = failed to schedule model iris\r\n"
]
}
],
"outputs": [],
"source": [
"!seldon model load -f ./models/sklearn-iris-gs.yaml"
]
Expand Down Expand Up @@ -130,18 +85,10 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "ceramic-illness",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{}\r\n"
]
}
],
"outputs": [],
"source": [
"!seldon model unload --model-name iris"
]
Expand Down Expand Up @@ -268,26 +215,10 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "0f2ab2a3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"apiVersion: mlops.seldon.io/v1alpha1\r\n",
"kind: Model\r\n",
"metadata:\r\n",
" name: iris\r\n",
" namespace: seldon-mesh\r\n",
"spec:\r\n",
" storageUri: \"gs://seldon-models/mlserver/iris\"\r\n",
" requirements:\r\n",
" - sklearn\r\n"
]
}
],
"outputs": [],
"source": [
"!cat ./models/sklearn-iris-gs.yaml"
]
Expand Down Expand Up @@ -419,7 +350,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
"version": "3.8.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3bf3e96

Please sign in to comment.