Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run the model on Google Colab? #7

Open
toniju98 opened this issue Nov 22, 2020 · 7 comments
Open

Is it possible to run the model on Google Colab? #7

toniju98 opened this issue Nov 22, 2020 · 7 comments

Comments

@toniju98
Copy link

Hey, I wanted to ask if it's possible to run your model on Google Colab too. I don't have a Nvidia GPU, but still would like to test it. The problem is that Google Colab doesn't have Python 3.7. Is there a solution for it?

@daniel-ziegler
Copy link
Contributor

We don't rely heavily on Python 3.7 so my guess is that with a few tweaks you'll be able to run on Python 3.6 in Colab. The one thing that comes to mind is you'll need to install the dataclasses package.

If you try it, let us know how it goes!

@toniju98
Copy link
Author

Error_TextSumm

I think the problem is the blobfile package. I can't install blobfile 0.17.2 on Google Colab. It seems like it's just possible to install versions up to 0.11.0. If I try to run it with blobfile 0.11.0, I get this error.

@Eurosome
Copy link

Any success?

@Wild3d
Copy link

Wild3d commented Apr 13, 2021

Hi,
I also tried to make it run in colab but not with much success. I did not have any issues with the blobfile but with the mpi4py package. I got the following error when running the sample.py file.

CalledProcessError: Command '['mpiexec', '-n', '1', 'python', '-c', 'import sys; import pickle; pickle.loads(open("/tmp/pickle_fn", "rb").read())()']' returned non-zero exit status 1.

a link to my workbook is here:
Colab

@Eurosome
Copy link

thanks for the link, after fixing the paths and importing pipenv I got this:

Traceback (most recent call last):
File "/content/summarize-from-feedback/exps/sample.py", line 3, in
import fire
ModuleNotFoundError: No module named 'fire'

Hi,
I also tried to make it run in colab but not with much success. I did not have any issues with the blobfile but with the mpi4py package. I got the following error when running the sample.py file.

CalledProcessError: Command '['mpiexec', '-n', '1', 'python', '-c', 'import sys; import pickle; pickle.loads(open("/tmp/pickle_fn", "rb").read())()']' returned non-zero exit status 1.

a link to my workbook is here:
Colab

@eryk-mazus
Copy link

Is this an issue specific to google colab, or will it occur if I try to run it locally?

@Pooja-1410
Copy link

Is the issue resolved? I get the issue that package are not getting installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants