File tree Expand file tree Collapse file tree 3 files changed +7
-21
lines changed Expand file tree Collapse file tree 3 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -86,19 +86,3 @@ examples/jeopardy/results.txt
86
86
87
87
poetry.lock
88
88
poetry.toml
89
-
90
- # Test binaries
91
- /tests /test-grammar-parser
92
- /tests /test-llama-grammar
93
- /tests /test-double-float
94
- /tests /test-grad0
95
- /tests /test-opt
96
- /tests /test-quantize-fns
97
- /tests /test-quantize-perf
98
- /tests /test-sampling
99
- /tests /test-tokenizer-0-llama
100
- /tests /test-tokenizer-0-falcon
101
- /tests /test-tokenizer-1-llama
102
- /tests /test-tokenizer-1-bpe
103
- /tests /test-rope
104
- /tests /test-backend-ops
Original file line number Diff line number Diff line change
1
+ *
2
+ ! * . *
Original file line number Diff line number Diff line change 4
4
#include < cstdlib>
5
5
6
6
int main (void ) {
7
- auto model_path = " models/7B/ggml-model-f16.gguf" ;
8
- auto file = fopen (model_path, " r" );
7
+ const auto * model_path = " models/7B/ggml-model-f16.gguf" ;
8
+ auto * file = fopen (model_path, " r" );
9
9
10
10
if (file == nullptr ) {
11
11
fprintf (stderr, " no model at '%s' found\n " , model_path);
12
12
return EXIT_FAILURE;
13
- } else {
14
- fprintf (stderr, " using '%s'\n " , model_path);
15
- fclose (file);
16
13
}
17
14
15
+ fprintf (stderr, " using '%s'\n " , model_path);
16
+ fclose (file);
17
+
18
18
llama_backend_init (false );
19
19
auto params = llama_model_params{};
20
20
params.use_mmap = false ;
You can’t perform that action at this time.
0 commit comments