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

Change pip version in submission space #35

Closed
mh0797 opened this issue Aug 23, 2024 · 12 comments
Closed

Change pip version in submission space #35

mh0797 opened this issue Aug 23, 2024 · 12 comments
Labels

Comments

@mh0797
Copy link

mh0797 commented Aug 23, 2024

Hi,
Is there a way to change the pip version (and maybe also the python version) for the submission spaces of the competition?
I don't mean the actual competition space; instead, I mean the space that is created upon submission (named "comp-").

@abhishekkrthakur
Copy link
Member

pip version can be updated for all. no problem. python cannot. which python version do you prefer and why? :)

@mh0797
Copy link
Author

mh0797 commented Aug 23, 2024

How exactly can I update the pip version?
Changing the Python version is not a priority for now, I was just curious about this :D

@abhishekkrthakur
Copy link
Member

we can update pip to latest by rebuilding the docker

@abhishekkrthakur
Copy link
Member

you can also install custom packages by creating a requirements.txt file in the competition config repo. so, thats another way :)

@mh0797
Copy link
Author

mh0797 commented Aug 23, 2024

I actually want to downgrade it from 24.2 to 24.0 because one dependency in the requirements file cannot be installed with the latest version.

Unfortunately, I cannot simply add another pip version to the requirements.txt as this will not prevent the error because then pip 24.2 will install all dependencies (including pip 24.0).

I need an option to make sure that a different pip version is already installed before the requirements are installed.

@abhishekkrthakur
Copy link
Member

could you please share which dependency doesn't work?

@mh0797
Copy link
Author

mh0797 commented Aug 23, 2024

We cannot install omegaconf==2.1.0rc1 (see here) which is a dependency of hydra-core==1.1.0rc1

@JacobLinCool
Copy link
Contributor

JacobLinCool commented Aug 27, 2024

You can upgrade pip using pre-requirements.txt. (Not sure if competition is shared the same way as normal space)
ref: https://huggingface.co/docs/hub/spaces-dependencies#adding-your-own-dependencies

Copy link

This issue is stale because it has been open for 15 days with no activity.

@github-actions github-actions bot added the stale label Sep 12, 2024
@mh0797
Copy link
Author

mh0797 commented Sep 15, 2024

Unfortunately the pre-requirements file only affects the leaderboard space but not the individual spaces created to run submissions.

In the meantime we were able to remove this dependency.
Still, I believe for future it would be great to add the feature to control the pip version also of the submission spaces.

we can close this for now.

@mh0797 mh0797 closed this as completed Sep 15, 2024
@abhishekkrthakur
Copy link
Member

Thank you.

Once you are done setting up the competition, please let me know and we can put it on the competitions page and share on socials.

@mh0797
Copy link
Author

mh0797 commented Sep 15, 2024

Great, here’s the link:
https://huggingface.co/spaces/AGC2024-P/e2e-driving-navsim

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

No branches or pull requests

3 participants