question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to make `HF_ENDPOINT` endpoint overridable in environment variable ?

See original GitHub issue

Is your feature request related to a problem? Please describe.

We want to update the endpoint for this library (actually for datasets) for hub reasons. AFAIK, it’s actually also necessary for China.

Describe the solution you’d like

Something like in transformers : https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L110 Having the same defaults, just make it overridable with an env variable (other mecanisms are fine, just seems env variable are consistent and easy)

Also ENDPOINT and HUGGINGFACE_CO_URL_HOME seem to be duplicate names.

Describe alternatives you’ve considered

Current fix, is by monkey patching the relevant variables from external code, which is not ideal for maintenance reasons.

@LysandreJik @osanseviero ?

This could be a good opportunity to use the same variables across HF libraries in datasets, I rechecked and it’s using HF_ENDPOINT actually.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
LysandreJikcommented, Mar 31, 2022

Version v0.5.0 should drop in the coming days, hopefully by next Wednesday.

[Delayed] Aiming for a release early next week (early April)

0reactions
LysandreJikcommented, Apr 4, 2022

Makes sense to me to align the variable names, indeed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add environment variable to override endpoint_url (#2099) by ...
In latest localstack, it has an improved feature to combine all endpoint url with one port (it used to be different ports for...
Read more >
Is it possible to parameterize 'Endpoint' in Environment setting?
Hello, currently we are getting endpoints, environmental variables and other test inputs from a flat file called "Config File".
Read more >
Environment variables to configure the AWS CLI
If defined, this environment variable overrides the value for the profile setting region . You can override this environment variable by using the...
Read more >
Overriding configuration with environment vars - KrakenD
Through environment variables, you can override some of its values. There are two different ways of injecting environment vars.
Read more >
Change endpoint route on environment stage - Stack Overflow
Is there a way to catch this on the endpoint level itself? Like a fallback? app.UseEndpoints(endpoints => { endpoints.MapRazorPages(); endpoints ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found