Skip to content

Commit d3e5a21

Browse files
committed
Created using Colab
1 parent 405d2af commit d3e5a21

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

bulk_chain_tutorial.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"metadata": {
55
"colab": {
66
"provenance": [],
7-
"authorship_tag": "ABX9TyOtPzH5Tep8aYNvVg1MzW0e",
87
"include_colab_link": true
98
},
109
"kernelspec": {
@@ -94,7 +93,12 @@
9493
{
9594
"cell_type": "code",
9695
"source": [
97-
"!python -m bulk_chain.infer --model \"dynamic:flan_t5.py:FlanT5\" --schema \"default.json\" --device \"cpu\" --temp 0.1 --max-length 512"
96+
"!python -m bulk_chain.infer \\\n",
97+
" --schema \"default.json\" \\\n",
98+
" --adapter \"dynamic:flan_t5.py:FlanT5\" \\\n",
99+
" %% \\\n",
100+
" --device \"cpu\" \\\n",
101+
" --temp 0.1"
98102
],
99103
"metadata": {
100104
"id": "YwmlDzeG0N7r"
@@ -114,8 +118,13 @@
114118
{
115119
"cell_type": "code",
116120
"source": [
117-
"!python -m bulk_chain.infer --model \"dynamic:flan_t5.py:FlanT5\" --schema \"default.json\" --device \"cpu\" --temp 0.1 --max-length 512 \\\n",
118-
" --src \"INPUT_CSV_FILE.CSV\""
121+
"!python -m bulk_chain.infer \\\n",
122+
" --src \"INPUT_CSV_FILE.csv\" \\\n",
123+
" --schema \"default.json\" \\\n",
124+
" --adapter \"dynamic:flan_t5.py:FlanT5\" \\\n",
125+
" %% \\\n",
126+
" --device \"cpu\" \\\n",
127+
" --temp 0.1"
119128
],
120129
"metadata": {
121130
"id": "T5Ylxyp7-HwR"

0 commit comments

Comments
 (0)