webslm 0.3.1 → 0.4.1

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.
Files changed (40) hide show
  1. package/README.md +64 -12
  2. package/dist/ai-sdk/index.d.ts +1 -1
  3. package/dist/ai-sdk/index.js +1 -1
  4. package/dist/cache/models.d.ts +32 -3
  5. package/dist/cache/models.js +106 -11
  6. package/dist/cache/node-fs.d.ts +26 -3
  7. package/dist/cache/node-fs.js +43 -9
  8. package/dist/cache-management.d.ts +1 -1
  9. package/dist/curated.d.ts +31 -1
  10. package/dist/curated.js +49 -5
  11. package/dist/download.d.ts +4 -0
  12. package/dist/download.js +29 -4
  13. package/dist/engine.d.ts +33 -4
  14. package/dist/engine.js +451 -44
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +1 -1
  17. package/dist/models.d.ts +26 -6
  18. package/dist/models.js +63 -7
  19. package/dist/native.d.ts +165 -0
  20. package/dist/native.js +243 -0
  21. package/dist/protocol.d.ts +12 -2
  22. package/dist/recommended-sampling.d.ts +54 -0
  23. package/dist/recommended-sampling.js +73 -0
  24. package/dist/simple.d.ts +22 -8
  25. package/dist/simple.js +35 -9
  26. package/dist/types.d.ts +85 -17
  27. package/native-manifest.json +47 -0
  28. package/package.json +2 -1
  29. package/wasm/relaxed/webslm_wasm.d.ts +26 -4
  30. package/wasm/relaxed/webslm_wasm.js +70 -17
  31. package/wasm/relaxed/webslm_wasm_bg.wasm +0 -0
  32. package/wasm/relaxed/webslm_wasm_bg.wasm.d.ts +5 -3
  33. package/wasm/simd/webslm_wasm.d.ts +26 -4
  34. package/wasm/simd/webslm_wasm.js +70 -17
  35. package/wasm/simd/webslm_wasm_bg.wasm +0 -0
  36. package/wasm/simd/webslm_wasm_bg.wasm.d.ts +5 -3
  37. package/wasm/threads/webslm_wasm.d.ts +26 -4
  38. package/wasm/threads/webslm_wasm.js +75 -22
  39. package/wasm/threads/webslm_wasm_bg.wasm +0 -0
  40. 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
  */
@@ -225,12 +260,18 @@ export class WasmModel {
225
260
  * (default 1), in `adapterMode` (default `"unmerged"`: its delta is
226
261
  * added in f32 beside the weights; `"merged"` merges it into the
227
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`]).
228
268
  * @param {JsSource} source
229
269
  * @param {string} options_json
230
270
  * @param {JsSource | null} [lora]
271
+ * @param {JsWeightCache | null} [weight_cache]
231
272
  * @returns {Promise<WasmModel>}
232
273
  */
233
- static load(source, options_json, lora) {
274
+ static load(source, options_json, lora, weight_cache) {
234
275
  _assertClass(source, JsSource);
235
276
  var ptr0 = source.__destroy_into_raw();
236
277
  const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -240,7 +281,12 @@ export class WasmModel {
240
281
  _assertClass(lora, JsSource);
241
282
  ptr2 = lora.__destroy_into_raw();
242
283
  }
243
- const ret = wasm.wasmmodel_load(ptr0, ptr1, len1, ptr2);
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);
244
290
  return ret;
245
291
  }
246
292
  /**
@@ -1160,6 +1206,10 @@ function __wbg_get_imports(memory) {
1160
1206
  const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
1161
1207
  return ret;
1162
1208
  },
1209
+ __wbg_new_from_slice_4ee02165f9de919e: function(arg0, arg1) {
1210
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1211
+ return ret;
1212
+ },
1163
1213
  __wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
1164
1214
  try {
1165
1215
  var state0 = {a: arg0, b: arg1};
@@ -1534,43 +1584,43 @@ function __wbg_get_imports(memory) {
1534
1584
  arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
1535
1585
  }, arguments); },
1536
1586
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
1537
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1587
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 365, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1538
1588
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_);
1539
1589
  return ret;
1540
1590
  },
1541
1591
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
1542
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 865, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
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`.
1543
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_);
1544
1594
  return ret;
1545
1595
  },
1546
1596
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
1547
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 867, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1597
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 890, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1548
1598
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_);
1549
1599
  return ret;
1550
1600
  },
1551
1601
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
1552
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 344, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
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`.
1553
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_);
1554
1604
  return ret;
1555
1605
  },
1556
1606
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
1557
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1558
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__43);
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);
1559
1609
  return ret;
1560
1610
  },
1561
1611
  __wbindgen_generic_0000000000000006: function(arg0, arg1) {
1562
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1563
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44);
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);
1564
1614
  return ret;
1565
1615
  },
1566
1616
  __wbindgen_generic_0000000000000007: function(arg0, arg1) {
1567
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 344, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1568
- 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__45);
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);
1569
1619
  return ret;
1570
1620
  },
1571
1621
  __wbindgen_generic_0000000000000008: function(arg0, arg1) {
1572
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 344, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1573
- 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);
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);
1574
1624
  return ret;
1575
1625
  },
1576
1626
  __wbindgen_generic_0000000000000009: function(arg0) {
@@ -1632,14 +1682,14 @@ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b
1632
1682
  wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_(arg0, arg1, arg2);
1633
1683
  }
1634
1684
 
1635
- function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__43(arg0, arg1, arg2) {
1636
- wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__43(arg0, arg1, arg2);
1637
- }
1638
-
1639
1685
  function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44(arg0, arg1, arg2) {
1640
1686
  wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__44(arg0, arg1, arg2);
1641
1687
  }
1642
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
+
1643
1693
  function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_(arg0, arg1, arg2) {
1644
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);
1645
1695
  if (ret[1]) {
@@ -1654,15 +1704,15 @@ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bin
1654
1704
  }
1655
1705
  }
1656
1706
 
1657
- 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__45(arg0, arg1, arg2) {
1658
- 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__45(arg0, arg1, arg2);
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);
1659
1709
  if (ret[1]) {
1660
1710
  throw takeFromExternrefTable0(ret[0]);
1661
1711
  }
1662
1712
  }
1663
1713
 
1664
- 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) {
1665
- 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);
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);
1666
1716
  if (ret[1]) {
1667
1717
  throw takeFromExternrefTable0(ret[0]);
1668
1718
  }
@@ -1704,6 +1754,9 @@ const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube",
1704
1754
  const JsSourceFinalization = (typeof FinalizationRegistry === 'undefined')
1705
1755
  ? { register: () => {}, unregister: () => {} }
1706
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));
1707
1760
  const Sha256HasherFinalization = (typeof FinalizationRegistry === 'undefined')
1708
1761
  ? { register: () => {}, unregister: () => {} }
1709
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;