Skip to content

Commit

Permalink
define default model path once, sync path with readme (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ott2 authored May 16, 2023
1 parent 2a5ee02 commit 9560655
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion examples/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct gpt_params {
float mirostat_tau = 5.00f; // target entropy
float mirostat_eta = 0.10f; // learning rate

std::string model = "models/lamma-7B/ggml-model.bin"; // model path
std::string model = "models/7B/ggml-model.bin"; // model path
std::string prompt = "";
std::string path_prompt_cache = ""; // path to file for saving/loading prompt eval state
std::string input_prefix = ""; // string to prefix user inputs with
Expand Down
1 change: 0 additions & 1 deletion examples/embedding/embedding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

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

if (gpt_params_parse(argc, argv, params) == false) {
return 1;
Expand Down
1 change: 0 additions & 1 deletion examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ void sigint_handler(int signo) {

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

if (gpt_params_parse(argc, argv, params) == false) {
return 1;
Expand Down
1 change: 0 additions & 1 deletion examples/perplexity/perplexity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ void perplexity(llama_context * ctx, const gpt_params & params) {

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

params.n_batch = 512;
if (gpt_params_parse(argc, argv, params) == false) {
Expand Down
1 change: 0 additions & 1 deletion examples/save-load-state/save-load-state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

int main(int argc, char ** argv) {
gpt_params params;
params.model = "models/llama-7B/ggml-model.bin";
params.seed = 42;
params.n_threads = 4;
params.repeat_last_n = 64;
Expand Down

0 comments on commit 9560655

Please sign in to comment.