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

Dependencies management #114

Open
pskl opened this issue Feb 16, 2024 · 4 comments
Open

Dependencies management #114

pskl opened this issue Feb 16, 2024 · 4 comments

Comments

@pskl
Copy link

pskl commented Feb 16, 2024

Since libraries are installed in the persistent storage space, is there a way to not have to redownload every dependency on each VM creation because its by far the slowest step. Talking about the "Install requirements and download repositories" step here.

Maybe an additional new code step used for "rebooting a previous environment with the persisted libraries and spin up Gradio" in one cell would be useful?

@Cyberes
Copy link
Collaborator

Cyberes commented Feb 17, 2024

I played around with that and found it was simpler to just re-download everything rather than deal with the complexity of Jupyter kernels and venvs.

The pip_cache_dir option accomplishes half of your suggestion, though. This makes pip cache the downloads so you only have to re-install, not re-download and re-install.

@Cyberes Cyberes closed this as completed Feb 17, 2024
@pskl
Copy link
Author

pskl commented Feb 20, 2024

Why is this closed?

@Cyberes
Copy link
Collaborator

Cyberes commented Feb 20, 2024

Would you rather leave it open?

@Cyberes Cyberes reopened this Feb 20, 2024
@pskl
Copy link
Author

pskl commented Apr 5, 2024

Hmmm, ah sorry at the time of my last comment I somehow didnt see your response, my bad.

And btw I'm a big fan of your work in general! Great stuff!

Maybe just to bounce ideas around lets keep it open: please detail what you have tried so far and whether you think its work investigating further.

I might give it a go because it would speed up my pipeline dramatically (this is the most time consuming step right now).

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

2 participants