Skip to content

Commit

Permalink
Created using Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Sep 29, 2024
1 parent 405d2af commit d3e5a21
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions bulk_chain_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyOtPzH5Tep8aYNvVg1MzW0e",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -94,7 +93,12 @@
{
"cell_type": "code",
"source": [
"!python -m bulk_chain.infer --model \"dynamic:flan_t5.py:FlanT5\" --schema \"default.json\" --device \"cpu\" --temp 0.1 --max-length 512"
"!python -m bulk_chain.infer \\\n",
" --schema \"default.json\" \\\n",
" --adapter \"dynamic:flan_t5.py:FlanT5\" \\\n",
" %% \\\n",
" --device \"cpu\" \\\n",
" --temp 0.1"
],
"metadata": {
"id": "YwmlDzeG0N7r"
Expand All @@ -114,8 +118,13 @@
{
"cell_type": "code",
"source": [
"!python -m bulk_chain.infer --model \"dynamic:flan_t5.py:FlanT5\" --schema \"default.json\" --device \"cpu\" --temp 0.1 --max-length 512 \\\n",
" --src \"INPUT_CSV_FILE.CSV\""
"!python -m bulk_chain.infer \\\n",
" --src \"INPUT_CSV_FILE.csv\" \\\n",
" --schema \"default.json\" \\\n",
" --adapter \"dynamic:flan_t5.py:FlanT5\" \\\n",
" %% \\\n",
" --device \"cpu\" \\\n",
" --temp 0.1"
],
"metadata": {
"id": "T5Ylxyp7-HwR"
Expand Down

0 comments on commit d3e5a21

Please sign in to comment.