mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-01 02:09:39 +00:00
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:
parent
4ed2b90bca
commit
f2a3f95ab6
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user