File size: 724 Bytes
5bde9fe 75106f1 5bde9fe 75106f1 5bde9fe 6656606 5bde9fe 6656606 5bde9fe 75106f1 5bde9fe 75106f1 5bde9fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
from huggingface_hub import hf_hub_download
HUGGING_FACE_API_KEY = "<hugging-face-api-key-goes-here>"
# Replace this if you want to use a different model
model_id = "INSAIT-Institute/BgGPT-7B-Instruct-v0.1"
filenames = [
".gitattributes",
"README.md",
"config.json",
"generation_config.json",
"model-00001-of-00002.safetensors",
"model-00002-of-00002.safetensors",
"model.safetensors.index.json",
"special_tokens_map.json",
"tokenizer.json",
"tokenizer.model",
"tokenizer_config.json"
]
for filename in filenames:
downloaded_model_path = hf_hub_download(
repo_id=model_id,
filename=filename,
token=HUGGING_FACE_API_KEY
)
print(downloaded_model_path)
print(downloaded_model_path) |