Is it possible to make `HF_ENDPOINT` endpoint overridable in environment variable ?
See original GitHub issueIs 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.
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:
- Created a year ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
Version v0.5.0 should drop in the coming days, hopefully by next Wednesday.
[Delayed] Aiming for a release early next week (early April)
Makes sense to me to align the variable names, indeed.