Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to also support newer HF cache format #1

Open
thesephist opened this issue Oct 10, 2022 · 0 comments
Open

Update to also support newer HF cache format #1

thesephist opened this issue Oct 10, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@thesephist
Copy link
Owner

Huggingface Transformers has a new cache format that looks like this:

$ ls ~/.cache/huggingface/hub/
/Users/thesephist/.cache/huggingface/hub/
├── models--EleutherAI--gpt-j-6B
│   ├── blobs
│   │   ├── 22fabbdda08346a6dfb95b1782a4efb6f876f2c2
│   │   ├── 47ffebc226205cbdaf3d3047c0b7f64b67620deb
│   │   ├── 6636bda4a1fd7a63653dffb22683b8162c8de956
│   │   ├── 84ef7fb594b5c0979e48bdeddb60a0adef33df0b
│   │   ├── a9d7d93cc226c6364c7e1c58b3a56de9327080cb
│   │   └── b5c42538c02dc5dfcfaf783388d7922e78a28730
│   ├── refs
│   │   └── main
│   └── snapshots
│       └── 918ad376364058dee23512629bc385380c98e57d
│           ├── added_tokens.json -> ../../blobs/a9d7d93cc226c6364c7e1c58b3a56de9327080cb
│           ├── merges.txt -> ../../blobs/6636bda4a1fd7a63653dffb22683b8162c8de956
│           ├── special_tokens_map.json -> ../../blobs/22fabbdda08346a6dfb95b1782a4efb6f876f2c2
│           ├── tokenizer.json -> ../../blobs/47ffebc226205cbdaf3d3047c0b7f64b67620deb
│           ├── tokenizer_config.json -> ../../blobs/b5c42538c02dc5dfcfaf783388d7922e78a28730
│           └── vocab.json -> ../../blobs/84ef7fb594b5c0979e48bdeddb60a0adef33df0b

This is more sophisticated than just a flat list of files, so we probably can't support this format fully, but we should at least be able to see and manage all the cached models (and maybe model snapshots?), and the space they are taking up.

@thesephist thesephist added the enhancement New feature or request label Oct 10, 2022
@thesephist thesephist self-assigned this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant