add note on gpu runtime to tutorial 13 (#1614)

* add note on gpu runtime to tutorial 13

* Add latest docstring and tutorial changes

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Julian Risch 2021-10-20 09:55:56 +02:00 committed by GitHub
parent 4ed2b90bca
commit f2a3f95ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View File

@ -14,6 +14,14 @@ id: "tutorial13md"
This is a bare bones tutorial showing what is possible with the QuestionGenerator Nodes and Pipelines which automatically
generate questions which the question generation model thinks can be answered by a given document.
### Prepare environment
#### Colab: Enable the GPU runtime
Make sure you enable the GPU runtime to experience decent speed in this tutorial.
**Runtime -> Change Runtime type -> Hardware accelerator -> GPU**
<img src="https://raw.githubusercontent.com/deepset-ai/haystack/master/docs/_src/img/colab_gpu_runtime.jpg">
```python
# Install needed libraries

View File

@ -17,6 +17,24 @@
"generate questions which the question generation model thinks can be answered by a given document."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "yaaKv3_ZN-gb",
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"### Prepare environment\n",
"\n",
"#### Colab: Enable the GPU runtime\n",
"Make sure you enable the GPU runtime to experience decent speed in this tutorial. \n",
"**Runtime -> Change Runtime type -> Hardware accelerator -> GPU**\n",
"\n",
"<img src=\"https://raw.githubusercontent.com/deepset-ai/haystack/master/docs/_src/img/colab_gpu_runtime.jpg\">"
]
},
{
"cell_type": "code",
"execution_count": null,
@ -294,4 +312,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}