Skip to content

Commit 9560655

Browse files
authored
define default model path once, sync path with readme (#1366)
1 parent 2a5ee02 commit 9560655

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

examples/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct gpt_params {
4545
float mirostat_tau = 5.00f; // target entropy
4646
float mirostat_eta = 0.10f; // learning rate
4747

48-
std::string model = "models/lamma-7B/ggml-model.bin"; // model path
48+
std::string model = "models/7B/ggml-model.bin"; // model path
4949
std::string prompt = "";
5050
std::string path_prompt_cache = ""; // path to file for saving/loading prompt eval state
5151
std::string input_prefix = ""; // string to prefix user inputs with

examples/embedding/embedding.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
int main(int argc, char ** argv) {
88
gpt_params params;
9-
params.model = "models/llama-7B/ggml-model.bin";
109

1110
if (gpt_params_parse(argc, argv, params) == false) {
1211
return 1;

examples/main/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ void sigint_handler(int signo) {
5050

5151
int main(int argc, char ** argv) {
5252
gpt_params params;
53-
params.model = "models/llama-7B/ggml-model.bin";
5453

5554
if (gpt_params_parse(argc, argv, params) == false) {
5655
return 1;

examples/perplexity/perplexity.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ void perplexity(llama_context * ctx, const gpt_params & params) {
116116

117117
int main(int argc, char ** argv) {
118118
gpt_params params;
119-
params.model = "models/llama-7B/ggml-model.bin";
120119

121120
params.n_batch = 512;
122121
if (gpt_params_parse(argc, argv, params) == false) {

examples/save-load-state/save-load-state.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
int main(int argc, char ** argv) {
1010
gpt_params params;
11-
params.model = "models/llama-7B/ggml-model.bin";
1211
params.seed = 42;
1312
params.n_threads = 4;
1413
params.repeat_last_n = 64;

0 commit comments

Comments
 (0)