allenai / cached_path

A file utility for accessing both local and remote files through a unified interface.
https://cached-path.readthedocs.io/
Apache License 2.0
35 stars 11 forks source link

Update huggingface-hub requirement from <0.12.0,>=0.8.1 to >=0.8.1,<0.13.0 #147

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on huggingface-hub to permit the latest version.

Release notes

Sourced from huggingface-hub's releases.

v0.12.0: Spaces on steroids 🚀, extended HfApi, documentation, modelcards and more

Spaces on steroids 🚀

Spaces support has been substantially enhanced. You can now:

  • Request hardware for your Space !
  • Configure your Space secrets
  • Get runtime information about your Space
# Assign hardware when creating the Space
api.create_repo(repo_id=repo_id, repo_type="space", space_sdk="gradio", space_hardware="cpu-upgrade")

Configure some secrets

api.add_space_secret(repo_id=repo_id, key="HF_TOKEN", value="hf_api_***")

Request hardware on the fly

api.request_space_hardware(repo_id=repo_id, hardware="t4-medium")

Get Space runtime (state, hardware, sdk,...)

api.get_space_runtime(repo_id=repo_id)

Visit the docs for more details.

And in bonus: Spaces now support Dockerfile natively !

api.create_repo(repo_id=repo_id, repo_type="space", space_sdk="docker")

Check out the docs for more details.

New features and improvements for HfApi

List all branches and tags from a repo

It's now possible to list branches/tags from a repo, getting exact ref and target_commit. More details in the docs.

>>> api.list_repo_refs("bigcode/the-stack", repo_type='dataset')
GitRefs(
    branches=[
        GitRefInfo(name='main', ref='refs/heads/main', target_commit='18edc1591d9ce72aa82f56c4431b3c969b210ae3'),
        GitRefInfo(name='v1.1.a1', ref='refs/heads/v1.1.a1', target_commit='f9826b862d1567f3822d3d25649b0d6d22ace714')],
    converts=[],
</tr></table> 

... (truncated)

Commits
  • e8f0676 Bump version to 0.12.0
  • 165a9ec Merge branch 'main' into v0.12-release
  • d1bf4c0 Revisit "search the hub" page (+HfApi reference page) (#1303)
  • 39a1d55 Fix caching error when offline and no refs dir (#1307)
  • c06efc3 Document .no_exist folder (#1308)
  • bdb9d06 fix: use cache for snapshots even if refs does not exist (#1306)
  • 1f0f925 Release: v0.12.0.rc0
  • 5a12851 Make tests more robust (no pre-existing repo on staging Hub) (#1302)
  • 6d360e3 Make ModelSearchArguments and DatasetSearchArguments more robust (#1300)
  • 070d5d6 Add windows machine for CI (#1112)
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)