Llama.cpp - Make Clean
This commit is contained in:
parent
7c3402662c
commit
76512cbc92
3 changed files with 1 additions and 7 deletions
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ TEST_TARGETS = \
|
||||||
tests/test-tokenizer-1-bpe \
|
tests/test-tokenizer-1-bpe \
|
||||||
tests/test-tokenizer-1-spm
|
tests/test-tokenizer-1-spm
|
||||||
|
|
||||||
# Code coverage output files
|
# Code coverage output files;
|
||||||
COV_TARGETS = *.gcno tests/*.gcno *.gcda tests/*.gcda *.gcov tests/*.gcov lcov-report gcovr-report
|
COV_TARGETS = *.gcno tests/*.gcno *.gcda tests/*.gcda *.gcov tests/*.gcov lcov-report gcovr-report
|
||||||
|
|
||||||
ifndef UNAME_S
|
ifndef UNAME_S
|
||||||
|
|
|
@ -15,8 +15,6 @@ int main(int argc, char ** argv) {
|
||||||
params.model = argv[1];
|
params.model = argv[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
params.prompt = "";
|
params.prompt = "";
|
||||||
|
|
||||||
// total length of the sequence including the prompt
|
// total length of the sequence including the prompt
|
||||||
|
@ -32,7 +30,6 @@ int main(int argc, char ** argv) {
|
||||||
llama_model_params model_params = llama_model_default_params();
|
llama_model_params model_params = llama_model_default_params();
|
||||||
|
|
||||||
// model_params.n_gpu_layers = 99; // offload all layers to the GPU
|
// model_params.n_gpu_layers = 99; // offload all layers to the GPU
|
||||||
|
|
||||||
llama_model * model = llama_load_model_from_file(params.model.c_str(), model_params);
|
llama_model * model = llama_load_model_from_file(params.model.c_str(), model_params);
|
||||||
|
|
||||||
if (model == NULL) {
|
if (model == NULL) {
|
||||||
|
@ -41,7 +38,6 @@ int main(int argc, char ** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialize the context
|
// initialize the context
|
||||||
|
|
||||||
llama_context_params ctx_params = llama_context_default_params();
|
llama_context_params ctx_params = llama_context_default_params();
|
||||||
|
|
||||||
ctx_params.seed = 1234;
|
ctx_params.seed = 1234;
|
||||||
|
@ -56,8 +52,6 @@ int main(int argc, char ** argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// main loop
|
// main loop
|
||||||
|
|
||||||
std::string prompt_template = "You will see two sentences. The first is marked INCORRECT and has a plethora of spelling and grammatical issues, the second is marked CORRECT and shows the fixed version of the prior sentence. INCORRECT:";
|
std::string prompt_template = "You will see two sentences. The first is marked INCORRECT and has a plethora of spelling and grammatical issues, the second is marked CORRECT and shows the fixed version of the prior sentence. INCORRECT:";
|
||||||
|
|
BIN
llamacheck
BIN
llamacheck
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue