@basecompute/basert 0.4.6 → 0.4.7

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/dist/index.d.ts CHANGED
@@ -109,6 +109,8 @@ export declare const Engine: {
109
109
  setPrefillChunk(n: number): void;
110
110
  /** Paged-weights load policy: 0=auto, 1=force, 2=no-retry (issue #113). */
111
111
  setPagedWeights(mode: number): void;
112
+ /** The prefill's Neural Engine split: true=on (default), false=GPU alone. */
113
+ setNeuralEngine(enable: boolean): void;
112
114
  /** Toggle the baked-decode fast path: true=on (default), false=force live. */
113
115
  setBakedDecode(enable: boolean): void;
114
116
  /** GPU-wait timeout (ms); 0 = block indefinitely (default). Metal only. */
package/dist/index.js CHANGED
@@ -335,6 +335,7 @@ function lib() {
335
335
  baseRT_set_max_batch_size: k.func("void baseRT_set_max_batch_size(int)"),
336
336
  baseRT_set_prefill_chunk: k.func("void baseRT_set_prefill_chunk(int)"),
337
337
  baseRT_set_paged_weights: k.func("void baseRT_set_paged_weights(int)"),
338
+ baseRT_set_neural_engine: k.func("void baseRT_set_neural_engine(int)"),
338
339
  baseRT_set_baked_decode: k.func("void baseRT_set_baked_decode(int)"),
339
340
  baseRT_set_gpu_wait_timeout_ms: k.func("void baseRT_set_gpu_wait_timeout_ms(double)"),
340
341
  baseRT_encode: k.func("int baseRT_encode(void *, const char *, _Out_ uint32_t *, int)"),
@@ -422,6 +423,10 @@ exports.Engine = {
422
423
  setPagedWeights(mode) {
423
424
  lib().baseRT_set_paged_weights(mode);
424
425
  },
426
+ /** The prefill's Neural Engine split: true=on (default), false=GPU alone. */
427
+ setNeuralEngine(enable) {
428
+ lib().baseRT_set_neural_engine(enable ? 1 : 0);
429
+ },
425
430
  /** Toggle the baked-decode fast path: true=on (default), false=force live. */
426
431
  setBakedDecode(enable) {
427
432
  lib().baseRT_set_baked_decode(enable ? 1 : 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basecompute/basert",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Fast local LLM inference on Apple Silicon and NVIDIA GB10: the basert CLI and Node.js bindings",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "koffi": "^2.9.0"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@basecompute/basert-darwin-arm64": "0.4.6",
40
- "@basecompute/basert-linux-arm64-cuda": "0.4.6"
39
+ "@basecompute/basert-darwin-arm64": "0.4.7",
40
+ "@basecompute/basert-linux-arm64-cuda": "0.4.7"
41
41
  },
42
42
  "files": [
43
43
  "dist/**/*.js",