Skip to content

url: save -mu downloads to new cache location#7826

Merged
ngxson merged 4 commits intoggml-org:masterfrom
ochafik:cache-url
Jun 8, 2024
Merged

url: save -mu downloads to new cache location#7826
ngxson merged 4 commits intoggml-org:masterfrom
ochafik:cache-url

Conversation

@ochafik
Copy link
Copy Markdown
Collaborator

@ochafik ochafik commented Jun 8, 2024

This makes -mu (updated in #6930) save/lookup files in the cache just like -hfr + -hff (#7353) by default (unless -m is provided explicitly). Also see #7252

./server -mu https://huggingface.co/NousResearch/Meta-Llama-3-8B-Instruct-GGUF/resolve/main/Meta-Llama-3-8B-Instruct-Q4_K_M.gguf

After this gets merged, if you have already downloaded .gguf / .gguf.json file pairs to models/, simply move them to the cache folder:

  • $LLAMA_CACHE if defined,
  • ~/Library/Caches/llama.cpp/ on Mac,
  • ~/.cache/llama.cpp on Linux (or $XDG_CACHE_HOME/llama.cpp if defined)
  • %LOCALAPPDATA%\llama.cpp on Windows

@ochafik ochafik changed the title url: save -mu or -hfr + -hff downloads to new cache location url: save -mu downloads to new cache location Jun 8, 2024
@ochafik ochafik marked this pull request as ready for review June 8, 2024 11:21
@ggerganov ggerganov requested a review from ngxson June 8, 2024 12:11
Copy link
Copy Markdown
Contributor

@ngxson ngxson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only a small suggestion regarding naming.

Comment thread common/common.cpp Outdated
@ngxson ngxson merged commit d4d915d into ggml-org:master Jun 8, 2024
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* url: save -mu download to new cache location

* url: fs_get_cache_file_path util

* url: tweak sig of fs_get_cache_file
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* url: save -mu download to new cache location

* url: fs_get_cache_file_path util

* url: tweak sig of fs_get_cache_file
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

Successfully merging this pull request may close these issues.

2 participants