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

include size of the files when searching for models to download #22

Open
prabirshrestha opened this issue Apr 23, 2024 · 3 comments
Open

Comments

@prabirshrestha
Copy link

No description provided.

@cztomsik
Copy link
Owner

AFAIK it is not part of the huggingface api, what we are calling is this:

https://huggingface.co/api/models?search=gguf&full=true&sort=downloads&direction=-1&limit=15

@prabirshrestha
Copy link
Author

Seems like you might need to make another request once the repo is selected with ?blobs=true.

huggingface/huggingface_hub#1158

https://huggingface.co/api/models/TheBloke/Mixtral-8x7B-Instruct-v0.1-GGUF?blobs=true.

{
"siblings": [
        {
            "rfilename": ".gitattributes",
            "blobId": "51285d1d0a5e763be7f9756c11fd524b841e3a4d",
            "size": 2109
        },
        {
            "rfilename": "README.md",
            "blobId": "0e4ea04dd8a4df836a2479dda21c05bb0fda3a39",
            "size": 22232
        },
        {
            "rfilename": "config.json",
            "blobId": "c2dc548a36b1b154d6d92107c2ee091dd5b592e4",
            "size": 31
        },
        {
            "rfilename": "mixtral-8x7b-instruct-v0.1.Q2_K.gguf",
            "blobId": "8b30ad5ba1105ce133477e5ef483d9d4eb24ce41",
            "size": 15644035008,
            "lfs": {
                "sha256": "d54b4f4ec06dbae558d25b2d1542417cdf9547907342db85eecd05b6e96e88f8",
                "size": 15644035008,
                "pointerSize": 136
            }
        },
        {
            "rfilename": "mixtral-8x7b-instruct-v0.1.Q3_K_M.gguf",
            "blobId": "9d93cbcee7b597fadb999ebd47b28ee352fc7be5",
            "size": 20363356096,
            "lfs": {
                "sha256": "bd2e1499e68195f1a6ff151e6fa5c6632acc150b80cca4a3772cbb7ca59d44cd",
                "size": 20363356096,
                "pointerSize": 136
            }
        }
]
}

@cztomsik
Copy link
Owner

Oh, I somehow missed that, this is great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants