@qvac/llm-llamacpp 0.61.0 → 0.61.2
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/README.md +2 -0
- package/index.d.ts +11 -0
- package/package.json +2 -2
- package/prebuilds/android-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__llm-llamacpp.bare.exports +1 -2
- package/prebuilds/darwin-x64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/darwin-x64/qvac__llm-llamacpp.bare.exports +1 -2
- package/prebuilds/ios-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/ios-arm64/qvac__llm-llamacpp.bare.exports +1 -2
- package/prebuilds/ios-arm64-simulator/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/ios-arm64-simulator/qvac__llm-llamacpp.bare.exports +1 -2
- package/prebuilds/ios-x64-simulator/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/ios-x64-simulator/qvac__llm-llamacpp.bare.exports +1 -2
- package/prebuilds/linux-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/linux-x64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__llm-llamacpp.bare.exports +0 -0
package/README.md
CHANGED
|
@@ -180,6 +180,8 @@ const config = {
|
|
|
180
180
|
| device | `"gpu"` or `"cpu"` | — (required) | Device to run inference on |
|
|
181
181
|
| gpu_layers | integer | 0 | Number of model layers to offload to GPU |
|
|
182
182
|
| ctx_size | 0 – model-dependent | 4096 (0 = loaded from model) | Context window size |
|
|
183
|
+
| poll | integer 0 – 100 | 0 | Main GGML threadpool busy-wait level. `0` sleeps while idle; higher values can reduce wake latency but consume CPU during GPU work |
|
|
184
|
+
| poll-batch | integer 0 – 100 | `poll` | Batch GGML threadpool busy-wait level |
|
|
183
185
|
| lora | string | — | Path to LoRA adapter file |
|
|
184
186
|
| temp | 0.00 – 2.00 | 0.8 | Sampling temperature |
|
|
185
187
|
| top_p | 0 – 1 | 0.9 | Top-p (nucleus) sampling |
|
package/index.d.ts
CHANGED
|
@@ -141,6 +141,17 @@ declare namespace LlmLlamacpp {
|
|
|
141
141
|
backend?: string;
|
|
142
142
|
gpu_layers?: NumericLike;
|
|
143
143
|
ctx_size?: NumericLike;
|
|
144
|
+
/**
|
|
145
|
+
* Main GGML threadpool busy-wait level, from 0 (sleep while idle) to 100
|
|
146
|
+
* (maximum polling). Defaults to 0. Values above 0 can reduce worker wake
|
|
147
|
+
* latency for CPU-heavy workloads, but consume CPU while GPU work runs.
|
|
148
|
+
*/
|
|
149
|
+
poll?: NumericLike;
|
|
150
|
+
/**
|
|
151
|
+
* Batch GGML threadpool busy-wait level. Defaults to `poll`, or 0 when
|
|
152
|
+
* neither option is set.
|
|
153
|
+
*/
|
|
154
|
+
"poll-batch"?: NumericLike;
|
|
144
155
|
system_prompt?: string;
|
|
145
156
|
lora?: string;
|
|
146
157
|
temp?: NumericLike;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/llm-llamacpp",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.2",
|
|
4
4
|
"description": "llama addon for qvac",
|
|
5
5
|
"addon": true,
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"quickstart": "node -e \"const fs=require('fs');const path=require('path');const {execSync}=require('child_process');const prebuilds=path.join(process.cwd(),'prebuilds');const source=path.join(process.cwd(),'node_modules','@qvac','llm-llamacpp','prebuilds');if(!fs.existsSync(prebuilds)){if(!fs.existsSync(source)){execSync('npm install @qvac/llm-llamacpp@latest',{stdio:'inherit'});}if(!fs.existsSync(source)){throw new Error('Prebuilds not found after install.');}fs.cpSync(source,prebuilds,{recursive:true});}execSync('bare examples/quickstart.js',{stdio:'inherit'});\"",
|
|
19
19
|
"update:quickstart-section": "node ./scripts/quickstart-testing/update_readme.js",
|
|
20
20
|
"test": "npm run lint && npm run test:unit && npm run test:integration",
|
|
21
|
-
"test:integration": "npm run build:ts && npm run test:integration:generate && bare test/integration/all.js --exit",
|
|
21
|
+
"test:integration": "npm run build:ts && npm run test:integration:generate && bare test/integration/fit.test.js && bare test/integration/all.js --exit",
|
|
22
22
|
"test:mobile:generate": "npm run generate:benchmark-shards && bare ./scripts/generate-mobile-integration-tests.js",
|
|
23
23
|
"test:mobile:validate": "npm run generate:benchmark-shards && node scripts/validate-mobile-tests.js && node scripts/validate-mobile-manifest.js",
|
|
24
24
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.61"
|
|
10
|
+
"version": "0.61.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"__ZN24llama_finetuning_helpers23optEpochCallbackWrapperEbP16ggml_opt_contextP16ggml_opt_datasetP15ggml_opt_resultxxx",
|
|
85
85
|
"__ZThn24_N10LlamaModelD0Ev",
|
|
86
86
|
"__ZN14MtmdLlmContext8setNPastEi",
|
|
87
|
-
"__ZN14TextLlmContext26initializeOwnedThreadpoolsEv",
|
|
88
87
|
"__ZN30qvac_lib_inference_addon_llama8batching19MultiRequestBatcher10addRequestEONSt3__16vectorIiNS2_9allocatorIiEEEERj",
|
|
89
88
|
"__ZN30qvac_lib_inference_addon_llama8batching19MultiRequestBatcher19sampleAndAppendIdleERKNSt3__18functionIFijiEEE",
|
|
90
89
|
"__ZN10LlamaModel30discardFinetuneCancelSaveModesERKNSt3__16vectorIyNS0_9allocatorIyEEEE",
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.61"
|
|
10
|
+
"version": "0.61.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -798,7 +798,6 @@
|
|
|
798
798
|
"__ZN24llama_finetuning_helpers23optEpochCallbackWrapperEbP16ggml_opt_contextP16ggml_opt_datasetP15ggml_opt_resultxxx",
|
|
799
799
|
"__ZN14MtmdLlmContext8setNPastEi",
|
|
800
800
|
"__ZThn24_N10LlamaModelD0Ev",
|
|
801
|
-
"__ZN14TextLlmContext26initializeOwnedThreadpoolsEv",
|
|
802
801
|
"__ZN30qvac_lib_inference_addon_llama8batching7RequestC1EjO11PrefillPlanji",
|
|
803
802
|
"__ZN30qvac_lib_inference_addon_llama5utils25partialSnapshotFromStreamERNSt3__113basic_istreamIcNS1_11char_traitsIcEEEEyiNS0_15SnapshotStorageERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS1_8functionIFvPKhmEEERNS0_21SequenceStateSnapshotE",
|
|
804
803
|
"__ZN10LlamaModelD0Ev",
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.61"
|
|
10
|
+
"version": "0.61.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"__ZN24llama_finetuning_helpers23optEpochCallbackWrapperEbP16ggml_opt_contextP16ggml_opt_datasetP15ggml_opt_resultxxx",
|
|
85
85
|
"__ZThn24_N10LlamaModelD0Ev",
|
|
86
86
|
"__ZN14MtmdLlmContext8setNPastEi",
|
|
87
|
-
"__ZN14TextLlmContext26initializeOwnedThreadpoolsEv",
|
|
88
87
|
"__ZN30qvac_lib_inference_addon_llama8batching19MultiRequestBatcher10addRequestEONSt3__16vectorIiNS2_9allocatorIiEEEERj",
|
|
89
88
|
"__ZN30qvac_lib_inference_addon_llama8batching19MultiRequestBatcher19sampleAndAppendIdleERKNSt3__18functionIFijiEEE",
|
|
90
89
|
"__ZN10LlamaModel30discardFinetuneCancelSaveModesERKNSt3__16vectorIyNS0_9allocatorIyEEEE",
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.61"
|
|
10
|
+
"version": "0.61.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"__ZN24llama_finetuning_helpers23optEpochCallbackWrapperEbP16ggml_opt_contextP16ggml_opt_datasetP15ggml_opt_resultxxx",
|
|
85
85
|
"__ZThn24_N10LlamaModelD0Ev",
|
|
86
86
|
"__ZN14MtmdLlmContext8setNPastEi",
|
|
87
|
-
"__ZN14TextLlmContext26initializeOwnedThreadpoolsEv",
|
|
88
87
|
"__ZN30qvac_lib_inference_addon_llama8batching19MultiRequestBatcher10addRequestEONSt3__16vectorIiNS2_9allocatorIiEEEERj",
|
|
89
88
|
"__ZN30qvac_lib_inference_addon_llama8batching19MultiRequestBatcher19sampleAndAppendIdleERKNSt3__18functionIFijiEEE",
|
|
90
89
|
"__ZN10LlamaModel30discardFinetuneCancelSaveModesERKNSt3__16vectorIyNS0_9allocatorIyEEEE",
|
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
],
|
|
8
8
|
"current_versions": [
|
|
9
9
|
{
|
|
10
|
-
"version": "0.61"
|
|
10
|
+
"version": "0.61.2"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"exported_symbols": [
|
|
@@ -811,7 +811,6 @@
|
|
|
811
811
|
"__ZN24llama_finetuning_helpers23optEpochCallbackWrapperEbP16ggml_opt_contextP16ggml_opt_datasetP15ggml_opt_resultxxx",
|
|
812
812
|
"__ZN14MtmdLlmContext8setNPastEi",
|
|
813
813
|
"__ZThn24_N10LlamaModelD0Ev",
|
|
814
|
-
"__ZN14TextLlmContext26initializeOwnedThreadpoolsEv",
|
|
815
814
|
"__ZN30qvac_lib_inference_addon_llama8batching7RequestC1EjO11PrefillPlanji",
|
|
816
815
|
"__ZN30qvac_lib_inference_addon_llama5utils25partialSnapshotFromStreamERNSt3__113basic_istreamIcNS1_11char_traitsIcEEEEyiNS0_15SnapshotStorageERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS1_8functionIFvPKhmEEERNS0_21SequenceStateSnapshotE",
|
|
817
816
|
"__ZN10LlamaModelD0Ev",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|