Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Running inside Google Colab #373
I'm attempting to get SLM-Lab working inside a Google Colab instance. I can't get the getting started example working because of a torch error.
Traceback (most recent call last): File "run_lab.py", line 77, in <module> mp.set_start_method('spawn') # for distributed pytorch to work File "/usr/lib/python3.6/multiprocessing/context.py", line 242, in set_start_method raise RuntimeError('context has already been set') RuntimeError: context has already been set
I think the solution is to add some exception handling around the
We've never ran it on colab notebook, thanks for trying this out! Seem like the runtime is different than when running from a plain bash shell. I'll push a patch for this
btw, a way to use the optimized conda environment inside colab is to install following the SLM Lab README and run the conda and python command in one line: