summaryrefslogtreecommitdiff
path: root/llama.h
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2023-12-16 18:58:46 +0100
committerGitHub <noreply@github.com>2023-12-16 18:58:46 +0100
commitc6c4fc081c1df1c60a9bfe3e6a3fd086f1a29ec7 (patch)
tree8338e88ca5e536e3ce1801318d9d61630b358000 /llama.h
parent8a5be3bd5885d79ad84aadf32bb8c1a67bd43c19 (diff)
lora : add support for non-llama models (#3333)
* lora : add support for non-llama models ggml-ci * avoid leaking ggml_context on failure cleanup ggml-ci * lora : allow 1d tensors * lora : include embd and output layers in size calculation * fix style
Diffstat (limited to 'llama.h')
-rw-r--r--llama.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llama.h b/llama.h
index 45a65cac..15ab4f80 100644
--- a/llama.h
+++ b/llama.h
@@ -39,6 +39,7 @@
#define LLAMA_MAX_RNG_STATE (64*1024)
+#define LLAMA_FILE_MAGIC_GGLA 0x67676c61u // 'ggla'
#define LLAMA_FILE_MAGIC_GGSN 0x6767736eu // 'ggsn'
#define LLAMA_SESSION_MAGIC LLAMA_FILE_MAGIC_GGSN