summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorJustin Suess <justin.suess@westpoint.edu>2023-03-15 15:42:40 -0400
committerGitHub <noreply@github.com>2023-03-15 21:42:40 +0200
commit2d64715ad475f192a4004a52d134c67ccb6f44ad (patch)
tree1809c957a8cd0b7fd530e18288ed2d925041218a /utils.h
parent16b2c61a22f828ea77d9f084ca871c63bc5cc283 (diff)
added ctx_size parameter (#148)
* added ctx_size parameter * added it in more places * Apply suggestions from code review --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 4f98011c..021120b0 100644
--- a/utils.h
+++ b/utils.h
@@ -17,7 +17,8 @@ struct gpt_params {
int32_t n_threads = std::min(4, (int32_t) std::thread::hardware_concurrency());
int32_t n_predict = 128; // new tokens to predict
int32_t repeat_last_n = 64; // last n tokens to penalize
-
+ int32_t n_ctx = 512; //context size
+
// sampling parameters
int32_t top_k = 40;
float top_p = 0.95f;