|
@@ -1,8 +1,18 @@
|
|
|
+From 2cfaa0a04faa9c87ba8f1ac8527eb953e69c6cde Mon Sep 17 00:00:00 2001
|
|
|
+From: Michael Yang <mxyng@pm.me>
|
|
|
+Date: Mon, 16 Sep 2024 15:53:10 -0700
|
|
|
+Subject: [PATCH] 01-load-progress.diff
|
|
|
+
|
|
|
+---
|
|
|
+ common/common.cpp | 2 ++
|
|
|
+ common/common.h | 7 +++++++
|
|
|
+ 2 files changed, 9 insertions(+)
|
|
|
+
|
|
|
diff --git a/common/common.cpp b/common/common.cpp
|
|
|
-index 2c05a4d4..927f0e3d 100644
|
|
|
+index 9fa18472..48ff41e9 100644
|
|
|
--- a/common/common.cpp
|
|
|
+++ b/common/common.cpp
|
|
|
-@@ -2093,6 +2093,8 @@ struct llama_model_params llama_model_params_from_gpt_params(const gpt_params &
|
|
|
+@@ -2573,6 +2573,8 @@ struct llama_model_params llama_model_params_from_gpt_params(const gpt_params &
|
|
|
mparams.use_mmap = params.use_mmap;
|
|
|
mparams.use_mlock = params.use_mlock;
|
|
|
mparams.check_tensors = params.check_tensors;
|
|
@@ -12,10 +22,10 @@ index 2c05a4d4..927f0e3d 100644
|
|
|
mparams.kv_overrides = NULL;
|
|
|
} else {
|
|
|
diff --git a/common/common.h b/common/common.h
|
|
|
-index 65c0ef81..ebca2c77 100644
|
|
|
+index cb5e7f6d..d8f043f7 100644
|
|
|
--- a/common/common.h
|
|
|
+++ b/common/common.h
|
|
|
-@@ -184,6 +184,13 @@ struct gpt_params {
|
|
|
+@@ -204,6 +204,13 @@ struct gpt_params {
|
|
|
std::string mmproj = ""; // path to multimodal projector
|
|
|
std::vector<std::string> image; // path to image file(s)
|
|
|
|
|
@@ -29,3 +39,6 @@ index 65c0ef81..ebca2c77 100644
|
|
|
// embedding
|
|
|
bool embedding = false; // get only sentence embedding
|
|
|
int32_t embd_normalize = 2; // normalisation for embendings (-1=none, 0=max absolute int16, 1=taxicab, 2=euclidean, >2=p-norm)
|
|
|
+--
|
|
|
+2.46.0
|
|
|
+
|