We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d7aed commit 9c55e5cCopy full SHA for 9c55e5c
examples/simple/simple.cpp
@@ -84,13 +84,13 @@ int main(int argc, char ** argv) {
84
model_params.n_gpu_layers = ngl;
85
86
llama_model * model = llama_model_load_from_file(model_path.c_str(), model_params);
87
- const llama_vocab * vocab = llama_model_get_vocab(model);
88
89
if (model == NULL) {
90
fprintf(stderr , "%s: error: unable to load model\n" , __func__);
91
return 1;
92
}
93
+ const llama_vocab * vocab = llama_model_get_vocab(model);
94
// tokenize the prompt
95
96
// find the number of tokens in the prompt
0 commit comments