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

Make llm-vm such that we can install on google colab #152

Open
INF800 opened this issue Aug 25, 2023 · 10 comments · May be fixed by #417
Open

Make llm-vm such that we can install on google colab #152

INF800 opened this issue Aug 25, 2023 · 10 comments · May be fixed by #417
Assignees
Labels
feat/enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@INF800
Copy link
Contributor

INF800 commented Aug 25, 2023

!pip install llm-vm

causes

ERROR: Cannot uninstall 'blinker'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
@INF800
Copy link
Contributor Author

INF800 commented Aug 28, 2023

Note that colab uses Python 3.10.12

@mmirman mmirman changed the title cannot install llm-vm in colaboratory Make llm-vm such that we can install on google colab Aug 28, 2023
@mmirman mmirman added $200 feat/enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers and removed $200 labels Aug 28, 2023
@INF800
Copy link
Contributor Author

INF800 commented Aug 28, 2023

Trying to manually comment out the packages and see which is causing the issue.

@bilal-aamer
Copy link
Contributor

Hey @mmirman @INF800, would like to work on this could you assign me this issue.

@INF800
Copy link
Contributor Author

INF800 commented Aug 28, 2023

Trying to manually comment out the packages and see which is causing the issue.

Found out the issue. It is due to flask package

"flask>=2.3.2",

It is causing

ERROR: Cannot uninstall 'blinker'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Replacing it with "flask>=2.0" does the job but we need to restart the session to be able to run import llm_vm, need to figure out the reason behind it.

@fedegr
Copy link
Contributor

fedegr commented Aug 29, 2023

To be able to properly run LLM-VM on jupyter notebooks (also colab) it would be necessary to refactor the way the arguments are parsed.

I created a story for that #176

@dafinley
Copy link

I wanted to get this done but wasnt able to finish. So if anyone wants to finish trying to make anarchy usable in google colab maybe this helps

https://colab.research.google.com/drive/1LGBspWILLrpedJ3GRBSnr4G1_pFV88om

@bilal-aamer
Copy link
Contributor

@dafinley will take a shot at it

@bilal-aamer
Copy link
Contributor

Trying to manually comment out the packages and see which is causing the issue.

Found out the issue. It is due to flask package

"flask>=2.3.2",

It is causing

ERROR: Cannot uninstall 'blinker'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Replacing it with "flask>=2.0" does the job but we need to restart the session to be able to run import llm_vm, need to figure out the reason behind it.

This was mentioned by @INF800 last month the task is to get it done without the need for restarting the session.

@dafinley
Copy link

Ahh. At least we have a path forward now.

@fedegr
Copy link
Contributor

fedegr commented Sep 27, 2023

With the downgrade of flask + #176 it is working properly in colab, but the proper solution would be #177

To be able to properly run LLM-VM on jupyter notebooks (also colab) it would be necessary to refactor the way the arguments are parsed.

I created a story for that #176

There is a link to a colab notebook to test it

@bilal-aamer bilal-aamer linked a pull request Dec 9, 2023 that will close this issue
@mmirman mmirman removed the $200 label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
5 participants