Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jun 8, 2024

Conversation

ochafik
Copy link
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
Collaborator

@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.

common/common.cpp Outdated Show resolved Hide resolved
@ngxson ngxson merged commit d4d915d into ggerganov:master Jun 8, 2024
53 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants