webslm 0.3.0 → 0.4.0
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 +71 -15
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/index.js +1 -1
- package/dist/cache/models.d.ts +6 -0
- package/dist/cache/models.js +11 -0
- package/dist/curated.d.ts +31 -1
- package/dist/curated.js +49 -5
- package/dist/engine.d.ts +33 -4
- package/dist/engine.js +451 -43
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/models.d.ts +30 -9
- package/dist/models.js +72 -10
- package/dist/native.d.ts +165 -0
- package/dist/native.js +243 -0
- package/dist/protocol.d.ts +14 -3
- package/dist/recommended-sampling.d.ts +54 -0
- package/dist/recommended-sampling.js +73 -0
- package/dist/simple.d.ts +20 -6
- package/dist/simple.js +33 -7
- package/dist/types.d.ts +106 -20
- package/native-manifest.json +47 -0
- package/package.json +2 -1
- package/wasm/relaxed/webslm_wasm.d.ts +34 -9
- package/wasm/relaxed/webslm_wasm.js +78 -22
- package/wasm/relaxed/webslm_wasm_bg.wasm +0 -0
- package/wasm/relaxed/webslm_wasm_bg.wasm.d.ts +5 -3
- package/wasm/simd/webslm_wasm.d.ts +34 -9
- package/wasm/simd/webslm_wasm.js +78 -22
- package/wasm/simd/webslm_wasm_bg.wasm +0 -0
- package/wasm/simd/webslm_wasm_bg.wasm.d.ts +5 -3
- package/wasm/threads/webslm_wasm.d.ts +34 -9
- package/wasm/threads/webslm_wasm.js +83 -27
- package/wasm/threads/webslm_wasm_bg.wasm +0 -0
- package/wasm/threads/webslm_wasm_bg.wasm.d.ts +5 -3
|
@@ -36,6 +36,41 @@ export class JsSource {
|
|
|
36
36
|
}
|
|
37
37
|
if (Symbol.dispose) JsSource.prototype[Symbol.dispose] = JsSource.prototype.free;
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* The converted-weight file of one model load (see the module docs).
|
|
41
|
+
*/
|
|
42
|
+
export class JsWeightCache {
|
|
43
|
+
__destroy_into_raw() {
|
|
44
|
+
const ptr = this.__wbg_ptr;
|
|
45
|
+
this.__wbg_ptr = 0;
|
|
46
|
+
JsWeightCacheFinalization.unregister(this);
|
|
47
|
+
return ptr;
|
|
48
|
+
}
|
|
49
|
+
free() {
|
|
50
|
+
const ptr = this.__destroy_into_raw();
|
|
51
|
+
wasm.__wbg_jsweightcache_free(ptr, 0);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* `key` names the converted checkpoint (`"org/name@sha"`; the load
|
|
55
|
+
* format is appended). `read(start, end)` resolves to bytes
|
|
56
|
+
* `[start, end)` of the stored file of `size` bytes (`0`: none);
|
|
57
|
+
* `write(chunk)` appends to the new file and may return a promise.
|
|
58
|
+
* @param {string} key
|
|
59
|
+
* @param {number} size
|
|
60
|
+
* @param {Function} read
|
|
61
|
+
* @param {Function} write
|
|
62
|
+
*/
|
|
63
|
+
constructor(key, size, read, write) {
|
|
64
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
65
|
+
const len0 = WASM_VECTOR_LEN;
|
|
66
|
+
const ret = wasm.jsweightcache_new(ptr0, len0, size, read, write);
|
|
67
|
+
this.__wbg_ptr = ret;
|
|
68
|
+
JsWeightCacheFinalization.register(this, this.__wbg_ptr, this);
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (Symbol.dispose) JsWeightCache.prototype[Symbol.dispose] = JsWeightCache.prototype.free;
|
|
73
|
+
|
|
39
74
|
/**
|
|
40
75
|
* Incremental SHA-256.
|
|
41
76
|
*/
|
|
@@ -106,8 +141,8 @@ export class WasmModel {
|
|
|
106
141
|
wasm.__wbg_wasmmodel_free(ptr, 0);
|
|
107
142
|
}
|
|
108
143
|
/**
|
|
109
|
-
*
|
|
110
|
-
* replacing the adapter applied before (if any). `options_json`:
|
|
144
|
+
* Applies a PEFT LoRA adapter served by `lora` (in the model's
|
|
145
|
+
* `adapterMode`), replacing the adapter applied before (if any). `options_json`:
|
|
111
146
|
* `{ scale?: number }` (default 1). Resolves to the adapter's
|
|
112
147
|
* description (see [`LoraInfo`]); rejects with `INVALID_ADAPTER`,
|
|
113
148
|
* leaving the model unchanged, when the adapter does not fit the
|
|
@@ -210,7 +245,8 @@ export class WasmModel {
|
|
|
210
245
|
* Loads a checkpoint from `source`. `options_json` is a JSON object:
|
|
211
246
|
* `{ format?: "q8" | "q4" | "q4_0" | "f32" | "f16" | "bf16",
|
|
212
247
|
* contextLength?: number, deterministic?: boolean,
|
|
213
|
-
* activations?: "quantized" | "f32", device?: "cpu" | "webgpu" | "auto"
|
|
248
|
+
* activations?: "quantized" | "f32", device?: "cpu" | "webgpu" | "auto",
|
|
249
|
+
* adapterScale?: number, adapterMode?: "unmerged" | "merged" }`.
|
|
214
250
|
*
|
|
215
251
|
* `device` defaults to `"cpu"`. `"auto"` picks WebGPU when an adapter
|
|
216
252
|
* is available and the model has more than
|
|
@@ -220,14 +256,22 @@ export class WasmModel {
|
|
|
220
256
|
* results depend on the adapter.
|
|
221
257
|
*
|
|
222
258
|
* `lora`, when given, serves a PEFT LoRA adapter (`adapter_config.json`
|
|
223
|
-
* and `adapter_model.safetensors`)
|
|
224
|
-
*
|
|
259
|
+
* and `adapter_model.safetensors`) applied at load, at `adapterScale`
|
|
260
|
+
* (default 1), in `adapterMode` (default `"unmerged"`: its delta is
|
|
261
|
+
* added in f32 beside the weights; `"merged"` merges it into the
|
|
262
|
+
* weights as they load).
|
|
263
|
+
*
|
|
264
|
+
* `weightCache`, when given, keeps the converted (block-quantized)
|
|
265
|
+
* weights: a valid stored file serves them instead of converting the
|
|
266
|
+
* checkpoint, else they are written to it as they are converted;
|
|
267
|
+
* `info().weightCache` says which (see [`WeightCacheOutcome`]).
|
|
225
268
|
* @param {JsSource} source
|
|
226
269
|
* @param {string} options_json
|
|
227
270
|
* @param {JsSource | null} [lora]
|
|
271
|
+
* @param {JsWeightCache | null} [weight_cache]
|
|
228
272
|
* @returns {Promise<WasmModel>}
|
|
229
273
|
*/
|
|
230
|
-
static load(source, options_json, lora) {
|
|
274
|
+
static load(source, options_json, lora, weight_cache) {
|
|
231
275
|
_assertClass(source, JsSource);
|
|
232
276
|
var ptr0 = source.__destroy_into_raw();
|
|
233
277
|
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -237,7 +281,12 @@ export class WasmModel {
|
|
|
237
281
|
_assertClass(lora, JsSource);
|
|
238
282
|
ptr2 = lora.__destroy_into_raw();
|
|
239
283
|
}
|
|
240
|
-
|
|
284
|
+
let ptr3 = 0;
|
|
285
|
+
if (!isLikeNone(weight_cache)) {
|
|
286
|
+
_assertClass(weight_cache, JsWeightCache);
|
|
287
|
+
ptr3 = weight_cache.__destroy_into_raw();
|
|
288
|
+
}
|
|
289
|
+
const ret = wasm.wasmmodel_load(ptr0, ptr1, len1, ptr2, ptr3);
|
|
241
290
|
return ret;
|
|
242
291
|
}
|
|
243
292
|
/**
|
|
@@ -1157,6 +1206,10 @@ function __wbg_get_imports(memory) {
|
|
|
1157
1206
|
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
1158
1207
|
return ret;
|
|
1159
1208
|
},
|
|
1209
|
+
__wbg_new_from_slice_4ee02165f9de919e: function(arg0, arg1) {
|
|
1210
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1211
|
+
return ret;
|
|
1212
|
+
},
|
|
1160
1213
|
__wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
|
|
1161
1214
|
try {
|
|
1162
1215
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1531,43 +1584,43 @@ function __wbg_get_imports(memory) {
|
|
|
1531
1584
|
arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
|
|
1532
1585
|
}, arguments); },
|
|
1533
1586
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1534
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1587
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 365, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1535
1588
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_);
|
|
1536
1589
|
return ret;
|
|
1537
1590
|
},
|
|
1538
1591
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1539
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1592
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 888, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1540
1593
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_);
|
|
1541
1594
|
return ret;
|
|
1542
1595
|
},
|
|
1543
1596
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1544
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1597
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 890, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1545
1598
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_);
|
|
1546
1599
|
return ret;
|
|
1547
1600
|
},
|
|
1548
1601
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1549
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
1602
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 363, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1550
1603
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_);
|
|
1551
1604
|
return ret;
|
|
1552
1605
|
},
|
|
1553
1606
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1554
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx:
|
|
1555
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1607
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 365, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1608
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44);
|
|
1556
1609
|
return ret;
|
|
1557
1610
|
},
|
|
1558
1611
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1559
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx:
|
|
1560
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1612
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 365, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1613
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__45);
|
|
1561
1614
|
return ret;
|
|
1562
1615
|
},
|
|
1563
1616
|
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1564
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
1565
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1617
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 363, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1618
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__46);
|
|
1566
1619
|
return ret;
|
|
1567
1620
|
},
|
|
1568
1621
|
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1569
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
1570
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1622
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 363, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1623
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__47);
|
|
1571
1624
|
return ret;
|
|
1572
1625
|
},
|
|
1573
1626
|
__wbindgen_generic_0000000000000009: function(arg0) {
|
|
@@ -1629,14 +1682,14 @@ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b
|
|
|
1629
1682
|
wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_(arg0, arg1, arg2);
|
|
1630
1683
|
}
|
|
1631
1684
|
|
|
1632
|
-
function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__43(arg0, arg1, arg2) {
|
|
1633
|
-
wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__43(arg0, arg1, arg2);
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
1685
|
function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44(arg0, arg1, arg2) {
|
|
1637
1686
|
wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44(arg0, arg1, arg2);
|
|
1638
1687
|
}
|
|
1639
1688
|
|
|
1689
|
+
function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__45(arg0, arg1, arg2) {
|
|
1690
|
+
wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__45(arg0, arg1, arg2);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1640
1693
|
function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_(arg0, arg1, arg2) {
|
|
1641
1694
|
const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_(arg0, arg1, arg2);
|
|
1642
1695
|
if (ret[1]) {
|
|
@@ -1651,15 +1704,15 @@ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bin
|
|
|
1651
1704
|
}
|
|
1652
1705
|
}
|
|
1653
1706
|
|
|
1654
|
-
function
|
|
1655
|
-
const ret = wasm.
|
|
1707
|
+
function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__46(arg0, arg1, arg2) {
|
|
1708
|
+
const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__46(arg0, arg1, arg2);
|
|
1656
1709
|
if (ret[1]) {
|
|
1657
1710
|
throw takeFromExternrefTable0(ret[0]);
|
|
1658
1711
|
}
|
|
1659
1712
|
}
|
|
1660
1713
|
|
|
1661
|
-
function
|
|
1662
|
-
const ret = wasm.
|
|
1714
|
+
function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__47(arg0, arg1, arg2) {
|
|
1715
|
+
const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__47(arg0, arg1, arg2);
|
|
1663
1716
|
if (ret[1]) {
|
|
1664
1717
|
throw takeFromExternrefTable0(ret[0]);
|
|
1665
1718
|
}
|
|
@@ -1701,6 +1754,9 @@ const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube",
|
|
|
1701
1754
|
const JsSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1702
1755
|
? { register: () => {}, unregister: () => {} }
|
|
1703
1756
|
: new FinalizationRegistry(ptr => wasm.__wbg_jssource_free(ptr, 1));
|
|
1757
|
+
const JsWeightCacheFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1758
|
+
? { register: () => {}, unregister: () => {} }
|
|
1759
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsweightcache_free(ptr, 1));
|
|
1704
1760
|
const Sha256HasherFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1705
1761
|
? { register: () => {}, unregister: () => {} }
|
|
1706
1762
|
: new FinalizationRegistry(ptr => wasm.__wbg_sha256hasher_free(ptr, 1));
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const __wbg_jssource_free: (a: number, b: number) => void;
|
|
4
|
+
export const __wbg_jsweightcache_free: (a: number, b: number) => void;
|
|
4
5
|
export const __wbg_sha256hasher_free: (a: number, b: number) => void;
|
|
5
6
|
export const __wbg_wasmmodel_free: (a: number, b: number) => void;
|
|
6
7
|
export const __wbg_wasmsession_free: (a: number, b: number) => void;
|
|
@@ -8,6 +9,7 @@ export const __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
|
8
9
|
export const buildInfo: () => [number, number, number];
|
|
9
10
|
export const initThreadPool: (a: number) => any;
|
|
10
11
|
export const jssource_new: (a: any, b: number) => number;
|
|
12
|
+
export const jsweightcache_new: (a: number, b: number, c: number, d: any, e: any) => number;
|
|
11
13
|
export const parseSafetensorsHeader: (a: number, b: number) => [number, number, number];
|
|
12
14
|
export const sha256hasher_finish: (a: number) => [number, number];
|
|
13
15
|
export const sha256hasher_new: () => number;
|
|
@@ -21,7 +23,7 @@ export const wasmmodel_createSession: (a: number) => [number, number, number];
|
|
|
21
23
|
export const wasmmodel_detokenize: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
22
24
|
export const wasmmodel_generate: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
23
25
|
export const wasmmodel_info: (a: number) => [number, number, number];
|
|
24
|
-
export const wasmmodel_load: (a: number, b: number, c: number, d: number) => any;
|
|
26
|
+
export const wasmmodel_load: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
25
27
|
export const wasmmodel_removeAdapter: (a: number) => any;
|
|
26
28
|
export const wasmmodel_renderChat: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
27
29
|
export const wasmmodel_reset: (a: number) => [number, number];
|
|
@@ -46,12 +48,12 @@ export const wbg_rayon_start_worker: (a: number) => void;
|
|
|
46
48
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___Function_fn_wasm_bindgen_3c612a990bfab728___JsValue_____wasm_bindgen_3c612a990bfab728___sys__Undefined___js_sys_b608be85a12bc1d0___Function_fn_wasm_bindgen_3c612a990bfab728___JsValue_____wasm_bindgen_3c612a990bfab728___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
47
49
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
48
50
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
49
|
-
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__45: (a: number, b: number, c: any) => [number, number];
|
|
50
51
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__46: (a: number, b: number, c: any) => [number, number];
|
|
52
|
+
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__47: (a: number, b: number, c: any) => [number, number];
|
|
51
53
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_: (a: number, b: number, c: any) => void;
|
|
52
54
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
53
|
-
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__43: (a: number, b: number, c: any) => void;
|
|
54
55
|
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44: (a: number, b: number, c: any) => void;
|
|
56
|
+
export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__45: (a: number, b: number, c: any) => void;
|
|
55
57
|
export const memory: WebAssembly.Memory;
|
|
56
58
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
57
59
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|