Skip to content

Commit 5886534

Browse files
committed
Add datasets dependency to transformers doc notebooks
1 parent 3a3918a commit 5886534

28 files changed

+572
-144
lines changed

transformers_doc/benchmarks.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]
@@ -486,7 +486,9 @@
486486
"available [here](https://docs.google.com/spreadsheets/d/1sryqufw2D0XlUH4sq3e9Wnxu5EAQkaohzrJbd5HdQ_w/edit?usp=sharing).\n",
487487
"\n",
488488
"With the new *benchmark* tools, it is easier than ever to share your benchmark results with the community\n",
489-
":prefix_link:*here <examples/benchmarking/README.md>*."
489+
"\n",
490+
"- :prefix_link:*PyTorch Benchmarking Results<examples/pytorch/benchmarking/README.md>*.\n",
491+
"- :prefix_link:*TensorFlow Benchmarking Results<examples/tensorflow/benchmarking/README.md>*."
490492
]
491493
}
492494
],

transformers_doc/custom_datasets.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]

transformers_doc/multilingual.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]

transformers_doc/perplexity.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]

transformers_doc/preprocessing.ipynb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]
@@ -67,6 +67,15 @@
6767
"## Base use"
6868
]
6969
},
70+
{
71+
"cell_type": "markdown",
72+
"metadata": {},
73+
"source": [
74+
"> **RAW HTML:** <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Yffk5aydLzg\" title=\"YouTube video player\"\n",
75+
"> frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;\n",
76+
"> picture-in-picture\" allowfullscreen></iframe>"
77+
]
78+
},
7079
{
7180
"cell_type": "markdown",
7281
"metadata": {},
@@ -276,6 +285,15 @@
276285
"## Preprocessing pairs of sentences"
277286
]
278287
},
288+
{
289+
"cell_type": "markdown",
290+
"metadata": {},
291+
"source": [
292+
"> **RAW HTML:** <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/0u3ioSwev3s\" title=\"YouTube video player\"\n",
293+
"> frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;\n",
294+
"> picture-in-picture\" allowfullscreen></iframe>"
295+
]
296+
},
279297
{
280298
"cell_type": "markdown",
281299
"metadata": {},

transformers_doc/pytorch/benchmarks.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]
@@ -317,7 +317,9 @@
317317
"available [here](https://docs.google.com/spreadsheets/d/1sryqufw2D0XlUH4sq3e9Wnxu5EAQkaohzrJbd5HdQ_w/edit?usp=sharing).\n",
318318
"\n",
319319
"With the new *benchmark* tools, it is easier than ever to share your benchmark results with the community\n",
320-
":prefix_link:*here <examples/benchmarking/README.md>*."
320+
"\n",
321+
"- :prefix_link:*PyTorch Benchmarking Results<examples/pytorch/benchmarking/README.md>*.\n",
322+
"- :prefix_link:*TensorFlow Benchmarking Results<examples/tensorflow/benchmarking/README.md>*."
321323
]
322324
}
323325
],

transformers_doc/pytorch/custom_datasets.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]

transformers_doc/pytorch/multilingual.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]

transformers_doc/pytorch/perplexity.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]

transformers_doc/pytorch/preprocessing.ipynb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"# Transformers installation\n",
10-
"! pip install transformers\n",
10+
"! pip install transformers datasets\n",
1111
"# To install from source instead of the last release, comment the command above and uncomment the following one.\n",
1212
"# ! pip install git+https://github.com/huggingface/transformers.git\n"
1313
]
@@ -67,6 +67,15 @@
6767
"## Base use"
6868
]
6969
},
70+
{
71+
"cell_type": "markdown",
72+
"metadata": {},
73+
"source": [
74+
"> **RAW HTML:** <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Yffk5aydLzg\" title=\"YouTube video player\"\n",
75+
"> frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;\n",
76+
"> picture-in-picture\" allowfullscreen></iframe>"
77+
]
78+
},
7079
{
7180
"cell_type": "markdown",
7281
"metadata": {},
@@ -245,6 +254,15 @@
245254
"## Preprocessing pairs of sentences"
246255
]
247256
},
257+
{
258+
"cell_type": "markdown",
259+
"metadata": {},
260+
"source": [
261+
"> **RAW HTML:** <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/0u3ioSwev3s\" title=\"YouTube video player\"\n",
262+
"> frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;\n",
263+
"> picture-in-picture\" allowfullscreen></iframe>"
264+
]
265+
},
248266
{
249267
"cell_type": "markdown",
250268
"metadata": {},

0 commit comments

Comments
 (0)