You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Jsonformer_example.ipynb
+55-29Lines changed: 55 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@
3
3
{
4
4
"cell_type": "markdown",
5
5
"metadata": {
6
-
"id": "view-in-github",
7
-
"colab_type": "text"
6
+
"colab_type": "text",
7
+
"id": "view-in-github"
8
8
},
9
9
"source": [
10
10
"<a href=\"https://colab.research.google.com/github/1rgs/jsonformer/blob/main/Jsonformer_example.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
@@ -22,8 +22,8 @@
22
22
},
23
23
"outputs": [
24
24
{
25
-
"output_type": "stream",
26
25
"name": "stdout",
26
+
"output_type": "stream",
27
27
"text": [
28
28
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
29
29
"Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (4.28.1)\n",
@@ -64,7 +64,7 @@
64
64
},
65
65
{
66
66
"cell_type": "code",
67
-
"execution_count": 2,
67
+
"execution_count": 1,
68
68
"metadata": {
69
69
"colab": {
70
70
"base_uri": "https://localhost:8080/"
@@ -74,8 +74,17 @@
74
74
},
75
75
"outputs": [
76
76
{
77
+
"name": "stderr",
77
78
"output_type": "stream",
79
+
"text": [
80
+
"/Users/calebcourier/Projects/jsonformer/.venv/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
81
+
" from .autonotebook import tqdm as notebook_tqdm\n",
82
+
"W0915 16:52:21.949000 36819 torch/distributed/elastic/multiprocessing/redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs.\n"
83
+
]
84
+
},
85
+
{
78
86
"name": "stdout",
87
+
"output_type": "stream",
79
88
"text": [
80
89
"Loading model and tokenizer...\n",
81
90
"Loaded model and tokenizer\n"
@@ -94,7 +103,7 @@
94
103
},
95
104
{
96
105
"cell_type": "code",
97
-
"execution_count": 6,
106
+
"execution_count": 2,
98
107
"metadata": {
99
108
"colab": {
100
109
"base_uri": "https://localhost:8080/"
@@ -104,40 +113,47 @@
104
113
},
105
114
"outputs": [
106
115
{
116
+
"name": "stderr",
107
117
"output_type": "stream",
118
+
"text": [
119
+
"The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\n"
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,3 +121,4 @@ poetry run python -m jsonformer.example
121
121
## License
122
122
123
123
Jsonformer is released under the MIT License. You are free to use, modify, and distribute this software for any purpose, commercial or non-commercial, as long as the original copyright and license notice are included.
0 commit comments