Make Tutorials Work on Colab GPUs (#322)

* Add pip install torch+cu
This commit is contained in:
Branden Chan 2020-08-19 14:52:50 +02:00 committed by GitHub
parent f388ca025c
commit a54d6a5bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 11 deletions

View File

@ -26,8 +26,12 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"! pip install git+https://github.com/deepset-ai/haystack.git\n", "# Install the latest release of Haystack in your own environment \n",
"#! pip install farm-haystack" "#! pip install farm-haystack\n",
"\n",
"# Install the latest master of Haystack and install the version of torch that works with the colab GPUs\n",
"!pip install git+https://github.com/deepset-ai/haystack.git\n",
"!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html"
] ]
}, },
{ {

View File

@ -19,7 +19,12 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"! pip install git+https://github.com/deepset-ai/haystack.git" "# Install the latest release of Haystack in your own environment \n",
"#! pip install farm-haystack\n",
"\n",
"# Install the latest master of Haystack and install the version of torch that works with the colab GPUs\n",
"!pip install git+https://github.com/deepset-ai/haystack.git\n",
"!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html"
] ]
}, },
{ {

View File

@ -19,8 +19,12 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"! pip install git+https://github.com/deepset-ai/haystack.git\n", "# Install the latest release of Haystack in your own environment \n",
"#! pip install farm-haystack" "#! pip install farm-haystack\n",
"\n",
"# Install the latest master of Haystack and install the version of torch that works with the colab GPUs\n",
"!pip install git+https://github.com/deepset-ai/haystack.git\n",
"!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html"
] ]
}, },
{ {

View File

@ -27,9 +27,12 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"#TODO\n", "# Install the latest release of Haystack in your own environment \n",
"! pip install git+https://github.com/deepset-ai/haystack.git\n", "#! pip install farm-haystack\n",
"#! pip install farm-haystack" "\n",
"# Install the latest master of Haystack and install the version of torch that works with the colab GPUs\n",
"!pip install git+https://github.com/deepset-ai/haystack.git\n",
"!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html"
] ]
}, },
{ {

View File

@ -1538,8 +1538,12 @@
"colab": {} "colab": {}
}, },
"source": [ "source": [
"# Recommended: Start Elasticsearch using Docker\n", "# Install the latest release of Haystack in your own environment \n",
"#! docker run -d -p 9200:9200 -e \"discovery.type=single-node\" elasticsearch:7.6.2" "#! pip install farm-haystack\n",
"\n",
"# Install the latest master of Haystack and install the version of torch that works with the colab GPUs\n",
"!pip install git+https://github.com/deepset-ai/haystack.git\n",
"!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html"
], ],
"execution_count": 0, "execution_count": 0,
"outputs": [] "outputs": []

View File

@ -79,7 +79,12 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"! pip install git+https://github.com/deepset-ai/haystack.git" "# Install the latest release of Haystack in your own environment \n",
"#! pip install farm-haystack\n",
"\n",
"# Install the latest master of Haystack and install the version of torch that works with the colab GPUs\n",
"!pip install git+https://github.com/deepset-ai/haystack.git\n",
"!pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html"
] ]
}, },
{ {