GPL tutorial - add GPU header and open in colab button#2736
GPL tutorial - add GPU header and open in colab button#2736vblagoje merged 3 commits intodeepset-ai:masterfrom vblagoje:gpl_tutorial_header
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
Any idea why this PR fails now @ZanSara @bogdankostic and it passed before (2-3 weeks ago)? |
|
The tutorial might just need a |
How would you add it @julian-risch I thought adding it in the setup cells of the notebook (the very top) is enough. |
|
@vblagoje for the tests of the tutorials, we need it here as well: https://github.com/deepset-ai/haystack/blob/master/.github/workflows/tutorials.yml and here: https://github.com/deepset-ai/haystack/blob/master/.github/workflows/tutorials_nightly.yml or add it here Line 212 in 8d65bc5 What fails is the execution of https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial18_GPL.py if I am not mistaken. |
|
Btw, here you can see how the tutorial tests are executed: https://github.com/deepset-ai/haystack/blob/master/.github/utils/tutorials.sh |
|
To add to @julian-risch answer, if GLP needs additional dependencies it should have its own dependency group. So we should add something like: in |
|
Thanks @julian-risch @ZanSara Tutorial 18 takes about 20-25 mins to run. Is that ok or should we add it to the no-run list? |
|
I think 25 minutes is still manageable 👍 Nightly runs can take as long as 6 hours and the current one takes less than two, so we have plenty of room still. The no-run list is for tutorials that can't possibly run on GH, for example the ones that that take several hours on CPU, or need too much ram. |
Oh, I thought we have a GPU for these nightly runs. Then there is no chance for this tutorial to finish. Training alone takes 15 min on GPU. |
|
Thanks a bunch @ZanSara @julian-risch for your assistance! I think it should be gtg now. |
|
LGTM! 👍 I tried it out on Google colab and it worked. I was just surprised that the installation command is slightly different than in our other tutorials. Here it is |
Thanks for trying it out @julian-risch I wanted to see the bare minimum of deps that would work and it seems that it stuck - the raw repo. Not sure tbh what is the best option here... |
I am very happy if we can remove the |
Ok I thought 20-25 minutes was the time on CPU! Ok then it goes in the no-run list for now. We should spin up some self-hosted runners for these 4 tutorials anyway... |
|
@ZanSara Ok, in that case, I should undo the last commit of this PR which changes setup.cfg and add a commit of adding this tutorial to no-run list. WDYT? |
* GPL tutorial - add GPU header and open in colab button * Add GPL tutorial to run exclusion list
Related Issue(s): #2632, tutorial update
Proposed changes:
-Adds Colab GPU setup header and "open in colab" button to GPL tutorial