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

Use hub-ci locally #774

Merged
merged 2 commits into from
Feb 6, 2023
Merged

Use hub-ci locally #774

merged 2 commits into from
Feb 6, 2023

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Feb 6, 2023

I switched the HF endpoint to the hub-ci one and added the corresponding tokens, and fixed the docker-compose to use the right base.
Now the local dev environment from make dev-start works correctly.

Close #765

@lhoestq lhoestq requested a review from severo February 6, 2023 11:29
@HuggingFaceDocBuilder
Copy link
Collaborator

HuggingFaceDocBuilder commented Feb 6, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Collaborator

@severo severo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

I will let you define what to do with the comment about accessing the env vars.

@@ -97,6 +98,8 @@ def sleep(self) -> None:
time.sleep(duration)

def loop(self) -> None:
if os.environ.get("HF_ENDPOINT"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't access the os environment variables outside of the config.py files. Do you think it's possible to keep on with this practice and move the log there?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept the logging here and got the endpoint value from worker_factory.app_config.common

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@lhoestq lhoestq merged commit 2e920f6 into main Feb 6, 2023
@lhoestq lhoestq deleted the use-hub-ci-locally branch February 6, 2023 13:56
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

Successfully merging this pull request may close these issues.

/sizes doesn't work in local dev env
3 participants