Skip to content

Commit

Permalink
update nb
Browse files Browse the repository at this point in the history
  • Loading branch information
Manikandan Sivanesan committed Oct 12, 2023
1 parent 6595247 commit b22c76d
Showing 1 changed file with 101 additions and 40 deletions.
141 changes: 101 additions & 40 deletions 021_caikit_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,19 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Python 3.9.18\n"
]
}
],
"source": [
"!python --version"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip show protobuf"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip show py-to-proto"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip show grpcio"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -118,7 +99,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting requirements-caikit.txt\n"
]
}
],
"source": [
"%%writefile requirements-caikit.txt\n",
"\n",
Expand Down Expand Up @@ -153,7 +142,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./text_sentiment/data_model/classification.py\n"
]
}
],
"source": [
"%%writefile ./text_sentiment/data_model/classification.py\n",
"\n",
Expand All @@ -176,7 +173,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./text_sentiment/data_model/__init__.py\n"
]
}
],
"source": [
"%%writefile ./text_sentiment/data_model/__init__.py\n",
"\n",
Expand All @@ -203,7 +208,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./text_sentiment/runtime_model/hf_module.py\n"
]
}
],
"source": [
"%%writefile ./text_sentiment/runtime_model/hf_module.py\n",
"\n",
Expand Down Expand Up @@ -252,7 +265,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./text_sentiment/runtime_model/__init__.py\n"
]
}
],
"source": [
"%%writefile ./text_sentiment/runtime_model/__init__.py\n",
"\n",
Expand All @@ -270,7 +291,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./text_sentiment/config.yml\n"
]
}
],
"source": [
"%%writefile ./text_sentiment/config.yml\n",
"\n",
Expand All @@ -291,7 +320,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./models/text_sentiment/config.yml\n"
]
}
],
"source": [
"%%writefile ./models/text_sentiment/config.yml\n",
"\n",
Expand Down Expand Up @@ -330,7 +367,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting start_runtime.py\n"
]
}
],
"source": [
"%%writefile start_runtime.py\n",
"\n",
Expand All @@ -357,7 +402,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./text_sentiment/__init__.py\n"
]
}
],
"source": [
"%%writefile ./text_sentiment/__init__.py\n",
"\n",
Expand All @@ -380,7 +433,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting ./client.py\n"
]
}
],
"source": [
"%%writefile ./client.py\n",
"\n",
Expand Down Expand Up @@ -446,7 +507,7 @@
"outputs": [],
"source": [
"# Running the caikit runtime\n",
"!python start_runtime.py"
"# !python start_runtime.py"
]
},
{
Expand All @@ -463,7 +524,7 @@
"outputs": [],
"source": [
"from caikit.config.config import get_config\n",
"get_config()"
"# get_config()"
]
},
{
Expand Down

0 comments on commit b22c76d

Please sign in to comment.