]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Improve usability of --model-url & related flags (#6930)
authorOlivier Chafik <redacted>
Mon, 29 Apr 2024 23:52:50 +0000 (00:52 +0100)
committerGitHub <redacted>
Mon, 29 Apr 2024 23:52:50 +0000 (00:52 +0100)
commit8843a98c2ba97a25e93319a104f9ddfaf83ce4c4
tree82d73687b9dd42033a388d83c3b491925a0444b9
parentb8c1476e44cc1f3a1811613f65251cf779067636
Improve usability of --model-url & related flags (#6930)

* args: default --model to models/ + filename from --model-url or --hf-file (or else legacy models/7B/ggml-model-f16.gguf)

* args: main & server now call gpt_params_handle_model_default

* args: define DEFAULT_MODEL_PATH + update cli docs

* curl: check url of previous download (.json metadata w/ url, etag & lastModified)

* args: fix update to quantize-stats.cpp

* curl: support legacy .etag / .lastModified companion files

* curl: rm legacy .etag file support

* curl: reuse regex across headers callback calls

* curl: unique_ptr to manage lifecycle of curl & outfile

* curl: nit: no need for multiline regex flag

* curl: update failed test (model file collision) + gitignore *.gguf.json
.gitignore
common/common.cpp
common/common.h
examples/main/README.md
examples/quantize-stats/quantize-stats.cpp
examples/server/server.cpp
examples/server/tests/features/embeddings.feature