huggingface_hub icon indicating copy to clipboard operation
huggingface_hub copied to clipboard

The official Python client for the Huggingface Hub.

Results 265 huggingface_hub issues
Sort by recently updated
recently updated
newest added

This PR simply adds a better error message for the following use case: ```python from huggingface_hub import Repository repo = Repository(local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=TOKEN) ``` where `TOKEN` is an org token

Related to https://github.com/huggingface/huggingface_hub/issues/977. Draft mode since it's not close to be reviewed :D

## What this PR does? This PR aims to make the `__repr__`s in `hf_api.py` easier to view on a narrow screen i.e. to favour a longer `__repr__` for a class...

This draft PR proposes a refactor of both mixins, `ModelHubMixin` and `push_to_hub_keras`, so that they do not leverage `git` under the hood. It is the continuation of https://github.com/huggingface/huggingface_hub/pull/321. This PR...

Following issue https://github.com/huggingface/huggingface_hub/issues/972. This is a draft of what the scan of the cache directory could look like. At the moment there is only a `scan_cache` method that returns structured...

help wanted
discussion

In Transformers, we very often try to download files that do not exist: this is because each tokenizer has a list of optional files so we try to download them...

Related to https://github.com/huggingface/huggingface_hub/issues/970. Draft mode since it's not close to be reviewed :D

Following up on PR https://github.com/huggingface/huggingface_hub/pull/976 that disables the coverage in tests. It would be good to re-enable and fix it properly. Potential fixes have been mentioned [here (internal url)](https://huggingface.slack.com/archives/C02V5EA0A95/p1657176912893549?thread_ts=1657099388.126399&cid=C02V5EA0A95) and...

Github CI for `huggingface_hub` is doing a lot of good things but I feel tests speed could be improved to get a shorter feedback loop on PRs. An idea to...

### Describe the bug push_to_hub_keras(model,"stufuf333") and the error I get Traceback (most recent call last): File "/run/aistuff/ai_thing2.py", line 215, in push_to_hub_keras(model,"sneedger") File "/home/ori/.local/lib/python3.10/site-packages/huggingface_hub/keras_mixin.py", line 373, in push_to_hub_keras repo = Repository(...

bug