]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
common : Changed tuple to struct (TODO fix) (#8823)
authorLiu Jia <redacted>
Mon, 5 Aug 2024 16:14:10 +0000 (00:14 +0800)
committerGitHub <redacted>
Mon, 5 Aug 2024 16:14:10 +0000 (18:14 +0200)
commit0a4ce786814b123096d18aadca89cd352b9e590b
tree4b37084bfd9eeb4fdcd27bb2a0807d3f4aa1c467
parentbc0f887e159c0d78c28121e2c8b5c58094170875
common : Changed tuple to struct (TODO fix) (#8823)

* common : Changed tuple to struct (TODO fix)

Use struct `llama_init_result` to replace the previous
std::tuple<struct llama_model *, struct llama_context *>

* delete llama_init_default_params()

* delete the extra whitespace
18 files changed:
common/common.cpp
common/common.h
examples/cvector-generator/cvector-generator.cpp
examples/embedding/embedding.cpp
examples/eval-callback/eval-callback.cpp
examples/imatrix/imatrix.cpp
examples/infill/infill.cpp
examples/lookahead/lookahead.cpp
examples/lookup/lookup-create.cpp
examples/lookup/lookup-stats.cpp
examples/lookup/lookup.cpp
examples/main/main.cpp
examples/parallel/parallel.cpp
examples/perplexity/perplexity.cpp
examples/retrieval/retrieval.cpp
examples/save-load-state/save-load-state.cpp
examples/server/server.cpp
examples/speculative/speculative.cpp