add to makefile all targets

This commit is contained in:
ngxson 2024-06-11 19:03:13 +02:00
parent 85db22dd20
commit 54f77e2467
2 changed files with 2 additions and 12 deletions

View file

@ -2,7 +2,8 @@
BUILD_TARGETS = \ BUILD_TARGETS = \
main quantize quantize-stats perplexity imatrix embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml \ main quantize quantize-stats perplexity imatrix embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml \
simple batched batched-bench save-load-state server gguf gguf-split eval-callback llama-bench libllava.a llava-cli baby-llama \ simple batched batched-bench save-load-state server gguf gguf-split eval-callback llama-bench libllava.a llava-cli baby-llama \
retrieval speculative infill tokenize benchmark-matmult parallel finetune export-lora lookahead lookup passkey gritlm tests/test-c.o retrieval speculative infill tokenize benchmark-matmult parallel finetune export-lora lookahead lookup passkey gritlm \
tests/test-c.o control-vector-generator
# Binaries only useful for tests # Binaries only useful for tests
TEST_TARGETS = \ TEST_TARGETS = \

View file

@ -454,17 +454,6 @@ static std::vector<std::string> ctrlvec_load_prompt_file(std::string path, bool
static bool cb_eval(struct ggml_tensor * t, bool ask, void * user_data) { static bool cb_eval(struct ggml_tensor * t, bool ask, void * user_data) {
auto * cb_data = (callback_data *) user_data; auto * cb_data = (callback_data *) user_data;
/*auto ggml_ne_string = [](const ggml_tensor * t) -> std::string {
std::string str;
for (int i = 0; i < GGML_MAX_DIMS; ++i) {
str += std::to_string(t->ne[i]);
if (i + 1 < GGML_MAX_DIMS) {
str += ", ";
}
}
return str;
};*/
static const char * l_out_name = "l_out"; static const char * l_out_name = "l_out";
const bool is_l_out = strncmp(t->name, l_out_name, strlen(l_out_name)) == 0; const bool is_l_out = strncmp(t->name, l_out_name, strlen(l_out_name)) == 0;