How to refer to a model in a pull request?

#28
by GeroldMeisinger - opened

SFconvertbot suggested a PR from pytorch_model.bin to model.safetensors at https://huggingface.co/THUDM/cogvlm2-llama3-chat-19B-int4/discussions/3
=> THUDM/cogvlm2-LAMA3-chat-19B-int4/tree/refs/pr/3

when load with THUDM/cogvlm2-LAMA3-chat-19B-int4@refs/pr/3 i get

Incorrect path_or_model_id: 'THUDM/cogvlm2-LAMA3-chat-19B-int4@refs/pr/3'. Please provide either the path to a local folder or the repo_id of a model on the Hub.

would be nice to download the model from the pull request when it has not yet been merged into the official one

Safetensors org

what tool do you use to download? cc @Wauplin

@GeroldMeisinger here is a guide on how to download files using huggingface_hub (the official Python client) or huggingface-cli (the official CLI): https://huggingface.co/docs/huggingface_hub/guides/download.

TL;DR: you can pass your ref as revision

huggingface-cli download THUDM/cogvlm2-LAMA3-chat-19B-int4 --revision "refs/pr/3"
GeroldMeisinger changed discussion status to closed

Sign up or log in to comment