Skip to content

Commit

Permalink
feat: enable resume download for hf_hub_download
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelam committed Nov 15, 2023
1 parent 03d1ae6 commit ecd8a1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions private_gpt/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class LocalSettings(BaseModel):
llm_hf_repo_id: str
llm_hf_model_file: str
embedding_hf_model_name: str
llm_hf_resume_download: bool


class SagemakerSettings(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ hf_hub_download(
filename=settings().local.llm_hf_model_file,
cache_dir=models_cache_path,
local_dir=models_path,
resume_download=settings().local.llm_hf_resume_download,
)

print("LLM model downloaded!")
Expand Down
1 change: 1 addition & 0 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ local:
llm_hf_repo_id: TheBloke/Mistral-7B-Instruct-v0.1-GGUF
llm_hf_model_file: mistral-7b-instruct-v0.1.Q4_K_M.gguf
embedding_hf_model_name: BAAI/bge-small-en-v1.5
llm_hf_resume_download: True

sagemaker:
llm_endpoint_name: huggingface-pytorch-tgi-inference-2023-09-25-19-53-32-140
Expand Down

0 comments on commit ecd8a1a

Please sign in to comment.