Skip to content

Releases: huggingface/huggingface_hub

v0.0.7: Networking improvements + PyTorch mixin

18 Mar 17:54

Choose a tag to compare

Example usage:

from huggingface_hub import ModelHubMixin

class MyModel(nn.Module, ModelHubMixin):
   def __init__(self, **kwargs):
      super().__init__()
      self.config = kwargs.pop("config", None)
      self.layer = ...
   def forward(self, ...):
      return ...

model = MyModel()

# saving model to local directory & pushing to hub
model.save_pretrained("mymodel", push_to_hub=True, config={"act": "gelu"})

# initiatizing model & loading it from trained-weights
model = MyModel.from_pretrained("username/mymodel@main")

Thanks a ton for your contributions ♥️

v0.0.6

02 Mar 15:03

Choose a tag to compare

[Repository] Strip basic auth info

Repository class + other tweaks

02 Mar 14:41

Choose a tag to compare

Repository class

02 Mar 14:31
35418de

Choose a tag to compare

Repository helper class to interact with git/git-lfs programmatically

02 Mar 14:29
35418de

Choose a tag to compare

  • [Repository] more forgiving lfs_track

  • added stderr and exceptions (#19)

    • added stderr and exceptions

    • added log to push and check for commit error

    • fixed quality

    • doc improvements + small tweaks

    • [git_add] actually take input pattern

    • less brittle test if local_dir is an actual git repo

    Co-authored-by: Julien Chaumond [email protected]

  • v0.0.3

Repository helper class to interact with git/git-lfs programmatically

23 Feb 19:43

Choose a tag to compare

v0.0.3rc2

v0.0.3rc2

v0.0.3rc1

20 Feb 19:32

Choose a tag to compare

v0.0.3rc1 Pre-release
Pre-release
v0.0.3rc1

Support for dataset repos and other improvements

12 Feb 18:59

Choose a tag to compare

Dummy release to check that everything works

23 Dec 09:21
9cd113b

Choose a tag to compare

v0.0.1

Update python-release.yml