Misc. bug: Wrong help text for -hf

Open Beginner friendly
#33,151 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
75/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
cli

Research direction

Read the -hf help text in common/arg.cpp and compare its stated default with the selection order in find_best_model in common/download.cpp. Confirm which behavior is intended, then update the help text or behavior so they agree; verify the displayed -hf help matches the actual default selection.

Written by the indexing model from the issue text.

Description

bug-unconfirmed
Name and Version

The help text for -hf says that the default quant is Q4_K_M if it is omitted. Yet, the function find_best_model seems to indicate that it first searches for Q4_K_M and then for Q8_0 and only then falls back to the first file in the repo.

Operating systems

No response

Which llama.cpp modules do you know to be affected?

No response

Command line
n/a
Problem description & steps to reproduce

n/a

First Bad Commit

n/a

Relevant log output

n/a

Dominant language
C++
Stars
136k
Forks
26.1k
Avg merge
1d 19h
Merged PRs (30d)
521

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ggml-org/llama.cpp

All issues in ggml-org/llama.cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.