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

[FEATURE] Add dependencies to support dev mode on HF Spaces #4867

Open
jfcalvo opened this issue May 22, 2024 · 5 comments
Open

[FEATURE] Add dependencies to support dev mode on HF Spaces #4867

jfcalvo opened this issue May 22, 2024 · 5 comments
Assignees
Labels
status: stale Indicates that there is no activity on an issue or pull request

Comments

@jfcalvo
Copy link
Member

jfcalvo commented May 22, 2024

Hugging Face recently added support for dev mode. Enabling some features like connecting to the space through SSH or enabling a VS Code server so remote changes can be done easily.

Right now dev mode can't be enabled on Argilla because some dependencies are missing. We should modify our Argilla template to add these dependencies.

More information about the new dev mode can be found here: https://huggingface.co/dev-mode-explorers

cc @MoritzLaurer

@jfcalvo jfcalvo self-assigned this May 22, 2024
@jfcalvo
Copy link
Member Author

jfcalvo commented May 22, 2024

Some insights after a quick exploration:

  • A pro account is needed on HF to enable dev mode. This means that someone with a pro account should check that everything is working as expected after the changes.
  • Is not so easy as modifying the Argilla Space template Dockerfile. Further changes are required because the application is expected to be at /app (is not the case for our docker images) and the owner of the folder must be the user with uid 1000.

With this in mind we can discuss if it's good idea to create a new Argilla Dockerfile specific to be used on HF.

@jfcalvo
Copy link
Member Author

jfcalvo commented May 23, 2024

Another important aspect is that HF dev mode is useful to play with changes in the source code of the application. We don't have right now any Docker image including the source code of Argilla and using a dev server. Maybe we need to think about a "dev" image including the Argilla source code.

@jfcalvo
Copy link
Member Author

jfcalvo commented May 23, 2024

I have defined here an Argilla space template with changes to its Dockerfile supporting dev mode.

I will check if it's working as expected once my user is PRO.

@MoritzLaurer
Copy link
Contributor

Thanks for working on this @jfcalvo! For anyone else who wants to test this: you can request to join this HF organization to get access to dev mode without a pro account: https://huggingface.co/dev-mode-explorers

Copy link

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

@github-actions github-actions bot added the status: stale Indicates that there is no activity on an issue or pull request label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: stale Indicates that there is no activity on an issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants