Huggingface-hub

Latest version: v0.23.4

Safety actively analyzes 640072 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 14

0.2.1

Not secure
This is a patch release fixing an issue with the notebook login.

https://github.com/huggingface/huggingface_hub/commit/5e2da9bae95ed4c99683e9572ecc32c9e0da5e15#diff-fb1696cbcf008dd89dde5e8c1da9d4be5a8f7d809bc32f07d4453caba40df15f

0.2.0

Not secure
![image](https://user-images.githubusercontent.com/30755778/151221853-5f77d1d1-7e5d-412a-8ab8-43c4d717d978.png)

The notebook login is adapted to work with the access tokens.

Skipping large files

The `Repository` class now has an additional parameter, `skip_lfs_files`, which allows cloning the repository while skipping the large file download.

https://github.com/huggingface/huggingface_hub/pull/472

Local files only for `snapshot_download`

The `snapshot_download` method can now take `local_files_only` as a parameter to enable leveraging previously downloaded files.

https://github.com/huggingface/huggingface_hub/pull/505

0.1.2

Not secure
What's Changed

* clean_ok should be True by default by LysandreJik in https://github.com/huggingface/huggingface_hub/pull/462


**Full Changelog**: https://github.com/huggingface/huggingface_hub/compare/v0.1.1...v0.1.2

0.1.1

Not secure
What's Changed

* Fix typing-extensions minimum version by lhoestq in https://github.com/huggingface/huggingface_hub/pull/453
* Fix argument order in `create_repo` for `Repository.clone_from` by sgugger in https://github.com/huggingface/huggingface_hub/pull/459


**Full Changelog**: https://github.com/huggingface/huggingface_hub/compare/v0.1.0...v0.1.1

0.1.0

Not secure
What's Changed

Version v0.1.0 is the first minor release of the `huggingface_hub` package, which promises better stability for the incoming versions. This update comes with big quality of life improvements.

Make token optional in all HfApi methods. by sgugger in https://github.com/huggingface/huggingface_hub/pull/379

Previously, most methods of the `HfApi` class required the token to be explicitly passed. This is changed in this version, where it defaults to the token stored in the cache. This results in a re-ordering of arguments, but backward compatibility is preserved in most cases. Where it is not preserved, an explicit error is thrown.

Root methods instead of `HfApi` by LysandreJik in https://github.com/huggingface/huggingface_hub/pull/388

The `HfApi` class now exposes its methods through the `hf_api` file, reducing the friction to access these helpers. See the example below:

py
Previously
from huggingface_hub import HfApi

api = HfApi()
user = api.whoami()

Now
from huggingface_hub.hf_api import whoami

user = whoami()


The `HfApi` can still be imported and works as before for backward compatibility.

Add `list_repo_files` util by sgugger in https://github.com/huggingface/huggingface_hub/pull/395

Offers a `list_repo_files` to ... list the repo files! Supports both model repositories and dataset repositories

Add helper to generate an eval result `model-index`, with proper typing by julien-c in https://github.com/huggingface/huggingface_hub/pull/382

Offers a `metadata_eval_result` in order to generate a YAML block to put in model cards according to evaluation results.

Add metrics to API by mariosasko in https://github.com/huggingface/huggingface_hub/pull/429

Adds a list_metrics method to HfApi!

Git prune by LysandreJik in https://github.com/huggingface/huggingface_hub/pull/450

Adds a `git_prune` method to the `Repository` class. This prunes local files which are unneeded as already pushed to a remote.
It adds the argument `auto_lfs_prune` to `git_push` and the `commit` context-manager for simpler handling.

Bug fixes
* Fix HfApi.create_repo when repo_type is 'space' by nateraw in https://github.com/huggingface/huggingface_hub/pull/394
* Last fixes for `datasets`' `push_to_hub` method by LysandreJik in https://github.com/huggingface/huggingface_hub/pull/415


**Full Changelog**: https://github.com/huggingface/huggingface_hub/compare/v0.0.19...v0.1.0

0.0.18

Not secure
Repository metadata (julien-c)

The version v0.0.18 of the `huggingface_hub` includes tools to manage repository metadata. The following example reads metadata from a repository:

python
from huggingface_hub import Repository

repo = Repository("xxx", clone_from="yyy")
data = repo.repocard_metadata_load()


The following example completes that metadata before writing it to the repository locally.

python
data["license"] = "apache-2.0"
repo.repocard_metadata_save(data)


- Repo metadata load and save 339 (julien-c)

Git tags (AngledLuffa)

Tag management is now available! Add, check, delete tags locally or remotely directly from the `Repository` utility.

- Tags 323 (AngledLuffa)

Revisited Keras support (nateraw)

The Keras mixin has been revisited:
- It now saves models as `SavedModel` objects rather than `.h5` files.
- It now offers methods that can be leveraged simply as a functional API, instead of having to use the Mixin as an actual mixin.

Improvements and bug fixes

- Better error message for bad token. 362 (sgugger)
- Add utility to get repo name 364 (sgugger)
- Improve save and load repocard metadata 355 (elishowk)
- Update Keras Mixin 284 (nateraw)
- Add timeout to dataset_info 373 (lhoestq)

Page 10 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.