@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.
@@ -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}
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novastera-oss/llamarn",
3
- "version": "0.1.1-alpha.3",
3
+ "version": "0.1.1-alpha.5",
4
4
  "description": "An attempt at a pure cpp turbo module library",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",