Skip to content

Commit

Permalink
Fix #77 - hf_hub_download warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 22, 2024
1 parent 306c3ba commit 1aee105
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions r2ai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,14 @@ def get_hf_llm(ai, repo_id, debug_mode, context_window):
hf_hub_download(
repo_id=repo_id,
filename=split_file,
local_dir=default_path,
local_dir_use_symlinks=False,
resume_download=True)
local_dir=default_path)
# Combine and delete splits
actually_combine_files(default_path, selected_model, split_files)
else:
hf_hub_download(
repo_id=repo_id,
filename=selected_model,
local_dir=default_path,
local_dir_use_symlinks=False,
resume_download=True)
local_dir=default_path)

model_path = download_path
else:
Expand Down

0 comments on commit 1aee105

Please sign in to comment.