@novastera-oss/llamarn 0.1.1-alpha.3 → 0.1.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/CMakeLists.txt +8 -0
- package/cpp/rn-completion.cpp +4 -0
- package/cpp/rn-llama.hpp +5 -0
- package/cpp/rn-utils.hpp +4 -0
- package/package.json +1 -1
package/android/CMakeLists.txt
CHANGED
|
@@ -58,6 +58,14 @@ add_library(
|
|
|
58
58
|
${CPP_DIR}/rn-completion.cpp
|
|
59
59
|
)
|
|
60
60
|
|
|
61
|
+
# Suppress unused function warnings for llama.cpp code
|
|
62
|
+
target_compile_options(common PRIVATE -Wno-unused-function)
|
|
63
|
+
target_compile_options(RNLlamaCpp PRIVATE -Wno-unused-function)
|
|
64
|
+
|
|
65
|
+
# Explicitly disable Vulkan until libggml-vulkan.so is properly built
|
|
66
|
+
target_compile_definitions(common PRIVATE -DGGML_USE_VULKAN=0)
|
|
67
|
+
target_compile_definitions(RNLlamaCpp PRIVATE -DGGML_USE_VULKAN=0)
|
|
68
|
+
|
|
61
69
|
# Include directories
|
|
62
70
|
target_include_directories(common PRIVATE
|
|
63
71
|
${CPP_DIR}
|
package/cpp/rn-completion.cpp
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
#include "rn-llama.hpp"
|
|
2
|
+
// Suppress unused function warnings from llama.cpp headers
|
|
3
|
+
#pragma GCC diagnostic push
|
|
4
|
+
#pragma GCC diagnostic ignored "-Wunused-function"
|
|
2
5
|
#include "common.h"
|
|
3
6
|
#include "chat.h"
|
|
4
7
|
#include "llama.h"
|
|
5
8
|
#include "sampling.h"
|
|
9
|
+
#pragma GCC diagnostic pop
|
|
6
10
|
#include "rn-utils.hpp"
|
|
7
11
|
|
|
8
12
|
#include <string>
|
package/cpp/rn-llama.hpp
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
|
|
3
|
+
// Suppress unused function warnings from llama.cpp headers
|
|
4
|
+
#pragma GCC diagnostic push
|
|
5
|
+
#pragma GCC diagnostic ignored "-Wunused-function"
|
|
3
6
|
#include "common.h"
|
|
4
7
|
#include "llama.h"
|
|
5
8
|
#include "chat.h"
|
|
6
9
|
#include "chat-template.hpp"
|
|
7
10
|
#include "json-schema-to-grammar.h"
|
|
11
|
+
#pragma GCC diagnostic pop
|
|
12
|
+
|
|
8
13
|
#include "rn-utils.hpp"
|
|
9
14
|
|
|
10
15
|
#include <functional>
|
package/cpp/rn-utils.hpp
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
|
|
3
|
+
// Suppress unused function warnings from llama.cpp headers
|
|
4
|
+
#pragma GCC diagnostic push
|
|
5
|
+
#pragma GCC diagnostic ignored "-Wunused-function"
|
|
3
6
|
#include "common.h"
|
|
4
7
|
#include "llama.h"
|
|
5
8
|
#include "sampling.h"
|
|
9
|
+
#pragma GCC diagnostic pop
|
|
6
10
|
|
|
7
11
|
// Change JSON_ASSERT from assert() to GGML_ASSERT:
|
|
8
12
|
#define JSON_ASSERT GGML_ASSERT
|