webslm 0.9.0 → 0.11.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 +63 -1
- package/dist/ai-sdk/index.d.ts +15 -0
- package/dist/ai-sdk/index.js +19 -0
- package/dist/ai-sdk/transcription-model.d.ts +48 -0
- package/dist/ai-sdk/transcription-model.js +115 -0
- package/dist/audio.d.ts +33 -0
- package/dist/audio.js +87 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.js +3 -0
- package/dist/engine.js +109 -0
- package/dist/hub.d.ts +9 -0
- package/dist/hub.js +12 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/models.d.ts +46 -1
- package/dist/models.js +112 -1
- package/dist/native.d.ts +20 -0
- package/dist/protocol.d.ts +45 -0
- package/dist/train.d.ts +201 -0
- package/dist/train.js +99 -0
- package/dist/types.d.ts +68 -0
- package/dist/wasm.d.ts +2 -0
- package/native-manifest.json +29 -29
- package/package.json +1 -1
- package/wasm/relaxed/webslm_wasm.d.ts +85 -3
- package/wasm/relaxed/webslm_wasm.js +222 -15
- package/wasm/relaxed/webslm_wasm_bg.wasm +0 -0
- package/wasm/relaxed/webslm_wasm_bg.wasm.d.ts +14 -3
- package/wasm/simd/webslm_wasm.d.ts +85 -3
- package/wasm/simd/webslm_wasm.js +222 -15
- package/wasm/simd/webslm_wasm_bg.wasm +0 -0
- package/wasm/simd/webslm_wasm_bg.wasm.d.ts +14 -3
- package/wasm/threads/webslm_wasm.d.ts +86 -4
- package/wasm/threads/webslm_wasm.js +234 -27
- package/wasm/threads/webslm_wasm_bg.wasm +0 -0
- package/wasm/threads/webslm_wasm_bg.wasm.d.ts +15 -4
package/wasm/simd/webslm_wasm.js
CHANGED
|
@@ -371,6 +371,14 @@ export class WasmModel {
|
|
|
371
371
|
const ret = wasm.wasmmodel_isEncoder(this.__wbg_ptr);
|
|
372
372
|
return ret !== 0;
|
|
373
373
|
}
|
|
374
|
+
/**
|
|
375
|
+
* Whether the model recognizes speech (it answers `transcribe`).
|
|
376
|
+
* @returns {boolean}
|
|
377
|
+
*/
|
|
378
|
+
get isSpeech() {
|
|
379
|
+
const ret = wasm.wasmmodel_isSpeech(this.__wbg_ptr);
|
|
380
|
+
return ret !== 0;
|
|
381
|
+
}
|
|
374
382
|
/**
|
|
375
383
|
* Loads a checkpoint from `source`. `options_json` is a JSON object:
|
|
376
384
|
* `{ format?: "q8" | "q4" | "q4_0" | "f32" | "f16" | "bf16",
|
|
@@ -499,6 +507,29 @@ export class WasmModel {
|
|
|
499
507
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
500
508
|
return v2;
|
|
501
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
* Transcribes speech with a speech recognition model (Whisper).
|
|
512
|
+
* `audio` is mono PCM (`Float32Array`, at `sampleRate`, 16 kHz by
|
|
513
|
+
* default) or the bytes of a WAV file (`Uint8Array`; browsers decode
|
|
514
|
+
* other formats with `AudioContext` first). `options_json`:
|
|
515
|
+
* `{ language?: string, task?: "transcribe" | "translate",
|
|
516
|
+
* maxNewTokens?: number, sampleRate?: number }` (no language: detected).
|
|
517
|
+
* `on_text(text)` receives the text as it is generated and stops the
|
|
518
|
+
* transcription by returning `false` (or a promise resolving to
|
|
519
|
+
* `false`). Resolves to `{ text, language,
|
|
520
|
+
* duration, segments: [{ id, start, end, text, tokens }], tokens,
|
|
521
|
+
* stopped }`. Rejects with `UNSUPPORTED_TASK` on other models.
|
|
522
|
+
* @param {any} audio
|
|
523
|
+
* @param {string} options_json
|
|
524
|
+
* @param {Function | null} [on_text]
|
|
525
|
+
* @returns {Promise<any>}
|
|
526
|
+
*/
|
|
527
|
+
transcribe(audio, options_json, on_text) {
|
|
528
|
+
const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
529
|
+
const len0 = WASM_VECTOR_LEN;
|
|
530
|
+
const ret = wasm.wasmmodel_transcribe(this.__wbg_ptr, audio, ptr0, len0, isLikeNone(on_text) ? 0 : addToExternrefTable0(on_text));
|
|
531
|
+
return ret;
|
|
532
|
+
}
|
|
502
533
|
}
|
|
503
534
|
if (Symbol.dispose) WasmModel.prototype[Symbol.dispose] = WasmModel.prototype.free;
|
|
504
535
|
|
|
@@ -747,6 +778,135 @@ export class WasmSession {
|
|
|
747
778
|
}
|
|
748
779
|
if (Symbol.dispose) WasmSession.prototype[Symbol.dispose] = WasmSession.prototype.free;
|
|
749
780
|
|
|
781
|
+
/**
|
|
782
|
+
* A model being trained.
|
|
783
|
+
*/
|
|
784
|
+
export class WasmTrainer {
|
|
785
|
+
static __wrap(ptr) {
|
|
786
|
+
const obj = Object.create(WasmTrainer.prototype);
|
|
787
|
+
obj.__wbg_ptr = ptr;
|
|
788
|
+
WasmTrainerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
789
|
+
return obj;
|
|
790
|
+
}
|
|
791
|
+
__destroy_into_raw() {
|
|
792
|
+
const ptr = this.__wbg_ptr;
|
|
793
|
+
this.__wbg_ptr = 0;
|
|
794
|
+
WasmTrainerFinalization.unregister(this);
|
|
795
|
+
return ptr;
|
|
796
|
+
}
|
|
797
|
+
free() {
|
|
798
|
+
const ptr = this.__destroy_into_raw();
|
|
799
|
+
wasm.__wbg_wasmtrainer_free(ptr, 0);
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Adds a sequence to group `group`: `teacher` is `"none"`, `"base"`,
|
|
803
|
+
* `"topk"` (`k` ids and probabilities per prediction) or `"logits"`.
|
|
804
|
+
* @param {number} group
|
|
805
|
+
* @param {Uint32Array} ids
|
|
806
|
+
* @param {Float32Array | null | undefined} weights
|
|
807
|
+
* @param {string} teacher
|
|
808
|
+
* @param {number} k
|
|
809
|
+
* @param {Uint32Array | null} [teacher_ids]
|
|
810
|
+
* @param {Float32Array | null} [teacher_values]
|
|
811
|
+
*/
|
|
812
|
+
addExample(group, ids, weights, teacher, k, teacher_ids, teacher_values) {
|
|
813
|
+
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_malloc);
|
|
814
|
+
const len0 = WASM_VECTOR_LEN;
|
|
815
|
+
var ptr1 = isLikeNone(weights) ? 0 : passArrayF32ToWasm0(weights, wasm.__wbindgen_malloc);
|
|
816
|
+
var len1 = WASM_VECTOR_LEN;
|
|
817
|
+
const ptr2 = passStringToWasm0(teacher, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
818
|
+
const len2 = WASM_VECTOR_LEN;
|
|
819
|
+
var ptr3 = isLikeNone(teacher_ids) ? 0 : passArray32ToWasm0(teacher_ids, wasm.__wbindgen_malloc);
|
|
820
|
+
var len3 = WASM_VECTOR_LEN;
|
|
821
|
+
var ptr4 = isLikeNone(teacher_values) ? 0 : passArrayF32ToWasm0(teacher_values, wasm.__wbindgen_malloc);
|
|
822
|
+
var len4 = WASM_VECTOR_LEN;
|
|
823
|
+
const ret = wasm.wasmtrainer_addExample(this.__wbg_ptr, group, ptr0, len0, ptr1, len1, ptr2, len2, k, ptr3, len3, ptr4, len4);
|
|
824
|
+
if (ret[1]) {
|
|
825
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Adds a data group (`TrainGroupJs`: `{ batchSize?, weight?, ce?,
|
|
830
|
+
* kl?, reduction?, sampling?, sampleWeights? }`); returns its index.
|
|
831
|
+
* Groups take effect at [`WasmTrainer::commit`].
|
|
832
|
+
* @param {string} group_json
|
|
833
|
+
* @returns {number}
|
|
834
|
+
*/
|
|
835
|
+
addGroup(group_json) {
|
|
836
|
+
const ptr0 = passStringToWasm0(group_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
837
|
+
const len0 = WASM_VECTOR_LEN;
|
|
838
|
+
const ret = wasm.wasmtrainer_addGroup(this.__wbg_ptr, ptr0, len0);
|
|
839
|
+
if (ret[2]) {
|
|
840
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
841
|
+
}
|
|
842
|
+
return ret[0] >>> 0;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Sets the groups added so far as the data steps draw from (replacing
|
|
846
|
+
* earlier ones).
|
|
847
|
+
*/
|
|
848
|
+
commit() {
|
|
849
|
+
const ret = wasm.wasmtrainer_commit(this.__wbg_ptr);
|
|
850
|
+
if (ret[1]) {
|
|
851
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* The trained delta as files, `{ [name]: Uint8Array }`: `format`
|
|
856
|
+
* `"peft"` (default: `adapter_config.json` and
|
|
857
|
+
* `adapter_model.safetensors`) or `"dense"` (`delta.safetensors`).
|
|
858
|
+
* `base_model` fills `base_model_name_or_path`.
|
|
859
|
+
* @param {string | null} [format]
|
|
860
|
+
* @param {string | null} [base_model]
|
|
861
|
+
* @returns {Promise<any>}
|
|
862
|
+
*/
|
|
863
|
+
files(format, base_model) {
|
|
864
|
+
var ptr0 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
865
|
+
var len0 = WASM_VECTOR_LEN;
|
|
866
|
+
var ptr1 = isLikeNone(base_model) ? 0 : passStringToWasm0(base_model, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
867
|
+
var len1 = WASM_VECTOR_LEN;
|
|
868
|
+
const ret = wasm.wasmtrainer_files(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
869
|
+
return ret;
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* Describes the trainer (see `TrainerInfo`).
|
|
873
|
+
* @returns {any}
|
|
874
|
+
*/
|
|
875
|
+
info() {
|
|
876
|
+
const ret = wasm.wasmtrainer_info(this.__wbg_ptr);
|
|
877
|
+
if (ret[2]) {
|
|
878
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
879
|
+
}
|
|
880
|
+
return takeFromExternrefTable0(ret[0]);
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Loads the model of `source` for training. `options_json`: see
|
|
884
|
+
* `TrainOptionsJs` (`{ steps, method?, rank?, alpha?, targets?,
|
|
885
|
+
* layers?, lr?, ..., device? }`).
|
|
886
|
+
* @param {JsSource} source
|
|
887
|
+
* @param {string} options_json
|
|
888
|
+
* @returns {Promise<WasmTrainer>}
|
|
889
|
+
*/
|
|
890
|
+
static load(source, options_json) {
|
|
891
|
+
_assertClass(source, JsSource);
|
|
892
|
+
var ptr0 = source.__destroy_into_raw();
|
|
893
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
894
|
+
const len1 = WASM_VECTOR_LEN;
|
|
895
|
+
const ret = wasm.wasmtrainer_load(ptr0, ptr1, len1);
|
|
896
|
+
return ret;
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Runs one optimizer step; resolves to `{ step, lr, loss,
|
|
900
|
+
* groupLosses, tokens, clamped, timeMs }`.
|
|
901
|
+
* @returns {Promise<any>}
|
|
902
|
+
*/
|
|
903
|
+
step() {
|
|
904
|
+
const ret = wasm.wasmtrainer_step(this.__wbg_ptr);
|
|
905
|
+
return ret;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
if (Symbol.dispose) WasmTrainer.prototype[Symbol.dispose] = WasmTrainer.prototype.free;
|
|
909
|
+
|
|
750
910
|
/**
|
|
751
911
|
* How this module was built: `{ flavour, kernels, threads }`. `flavour`
|
|
752
912
|
* is `"simd"`, `"relaxed"` (SIMD128 and relaxed SIMD) or `"threads"`
|
|
@@ -806,6 +966,18 @@ export function supportedModelTypes() {
|
|
|
806
966
|
return v1;
|
|
807
967
|
}
|
|
808
968
|
|
|
969
|
+
/**
|
|
970
|
+
* `model_type` values of the speech recognition models this build runs
|
|
971
|
+
* (models whose `WasmModel` answers `transcribe`).
|
|
972
|
+
* @returns {string[]}
|
|
973
|
+
*/
|
|
974
|
+
export function supportedSpeechTypes() {
|
|
975
|
+
const ret = wasm.supportedSpeechTypes();
|
|
976
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
977
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
978
|
+
return v1;
|
|
979
|
+
}
|
|
980
|
+
|
|
809
981
|
/**
|
|
810
982
|
* Version of the Rust engine, as declared in `Cargo.toml`.
|
|
811
983
|
* @returns {string}
|
|
@@ -1025,6 +1197,16 @@ function __wbg_get_imports() {
|
|
|
1025
1197
|
const ret = result;
|
|
1026
1198
|
return ret;
|
|
1027
1199
|
},
|
|
1200
|
+
__wbg_instanceof_Float32Array_31e80d3e88752523: function(arg0) {
|
|
1201
|
+
let result;
|
|
1202
|
+
try {
|
|
1203
|
+
result = arg0 instanceof Float32Array;
|
|
1204
|
+
} catch (_) {
|
|
1205
|
+
result = false;
|
|
1206
|
+
}
|
|
1207
|
+
const ret = result;
|
|
1208
|
+
return ret;
|
|
1209
|
+
},
|
|
1028
1210
|
__wbg_instanceof_GpuOutOfMemoryError_829d8185d83170f0: function(arg0) {
|
|
1029
1211
|
let result;
|
|
1030
1212
|
try {
|
|
@@ -1088,6 +1270,10 @@ function __wbg_get_imports() {
|
|
|
1088
1270
|
const ret = arg0.length;
|
|
1089
1271
|
return ret;
|
|
1090
1272
|
},
|
|
1273
|
+
__wbg_length_8768c6f6941913e3: function(arg0) {
|
|
1274
|
+
const ret = arg0.length;
|
|
1275
|
+
return ret;
|
|
1276
|
+
},
|
|
1091
1277
|
__wbg_limits_f4203404018656d1: function(arg0) {
|
|
1092
1278
|
const ret = arg0.limits;
|
|
1093
1279
|
return ret;
|
|
@@ -1308,6 +1494,10 @@ function __wbg_get_imports() {
|
|
|
1308
1494
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1309
1495
|
return ret;
|
|
1310
1496
|
},
|
|
1497
|
+
__wbg_now_d1fb6650485d7f3e: function() {
|
|
1498
|
+
const ret = Date.now();
|
|
1499
|
+
return ret;
|
|
1500
|
+
},
|
|
1311
1501
|
__wbg_onSubmittedWorkDone_f62945abb48d8a84: function(arg0) {
|
|
1312
1502
|
const ret = arg0.onSubmittedWorkDone();
|
|
1313
1503
|
return ret;
|
|
@@ -1316,6 +1506,9 @@ function __wbg_get_imports() {
|
|
|
1316
1506
|
const ret = arg0.popErrorScope();
|
|
1317
1507
|
return ret;
|
|
1318
1508
|
},
|
|
1509
|
+
__wbg_prototypesetcall_804a1eb1b047ccb9: function(arg0, arg1, arg2) {
|
|
1510
|
+
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
1511
|
+
},
|
|
1319
1512
|
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
1320
1513
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1321
1514
|
},
|
|
@@ -1622,37 +1815,41 @@ function __wbg_get_imports() {
|
|
|
1622
1815
|
const ret = WasmModel.__wrap(arg0);
|
|
1623
1816
|
return ret;
|
|
1624
1817
|
},
|
|
1818
|
+
__wbg_wasmtrainer_new: function(arg0) {
|
|
1819
|
+
const ret = WasmTrainer.__wrap(arg0);
|
|
1820
|
+
return ret;
|
|
1821
|
+
},
|
|
1625
1822
|
__wbg_writeBuffer_badef58fae6c9543: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1626
1823
|
arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
|
|
1627
1824
|
}, arguments); },
|
|
1628
1825
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1629
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1826
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 380, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1630
1827
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true_);
|
|
1631
1828
|
return ret;
|
|
1632
1829
|
},
|
|
1633
1830
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1634
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
1831
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 306, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1635
1832
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true_);
|
|
1636
1833
|
return ret;
|
|
1637
1834
|
},
|
|
1638
1835
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1639
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx:
|
|
1836
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 310, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1640
1837
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
|
|
1641
1838
|
return ret;
|
|
1642
1839
|
},
|
|
1643
1840
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1644
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx:
|
|
1645
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1841
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 310, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1842
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__55);
|
|
1646
1843
|
return ret;
|
|
1647
1844
|
},
|
|
1648
1845
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1649
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
1650
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1846
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 306, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1847
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__56);
|
|
1651
1848
|
return ret;
|
|
1652
1849
|
},
|
|
1653
1850
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1654
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
1655
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1851
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 306, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1852
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__57);
|
|
1656
1853
|
return ret;
|
|
1657
1854
|
},
|
|
1658
1855
|
__wbindgen_generic_0000000000000007: function(arg0) {
|
|
@@ -1695,8 +1892,8 @@ function wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_549
|
|
|
1695
1892
|
wasm.wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
|
|
1696
1893
|
}
|
|
1697
1894
|
|
|
1698
|
-
function
|
|
1699
|
-
wasm.
|
|
1895
|
+
function wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__55(arg0, arg1, arg2) {
|
|
1896
|
+
wasm.wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__55(arg0, arg1, arg2);
|
|
1700
1897
|
}
|
|
1701
1898
|
|
|
1702
1899
|
function wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true_(arg0, arg1, arg2) {
|
|
@@ -1713,15 +1910,15 @@ function wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bin
|
|
|
1713
1910
|
}
|
|
1714
1911
|
}
|
|
1715
1912
|
|
|
1716
|
-
function
|
|
1717
|
-
const ret = wasm.
|
|
1913
|
+
function wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__56(arg0, arg1, arg2) {
|
|
1914
|
+
const ret = wasm.wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__56(arg0, arg1, arg2);
|
|
1718
1915
|
if (ret[1]) {
|
|
1719
1916
|
throw takeFromExternrefTable0(ret[0]);
|
|
1720
1917
|
}
|
|
1721
1918
|
}
|
|
1722
1919
|
|
|
1723
|
-
function
|
|
1724
|
-
const ret = wasm.
|
|
1920
|
+
function wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__57(arg0, arg1, arg2) {
|
|
1921
|
+
const ret = wasm.wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__57(arg0, arg1, arg2);
|
|
1725
1922
|
if (ret[1]) {
|
|
1726
1923
|
throw takeFromExternrefTable0(ret[0]);
|
|
1727
1924
|
}
|
|
@@ -1778,6 +1975,9 @@ const WasmModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1778
1975
|
const WasmSessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1779
1976
|
? { register: () => {}, unregister: () => {} }
|
|
1780
1977
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsession_free(ptr, 1));
|
|
1978
|
+
const WasmTrainerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1979
|
+
? { register: () => {}, unregister: () => {} }
|
|
1980
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtrainer_free(ptr, 1));
|
|
1781
1981
|
|
|
1782
1982
|
function addToExternrefTable0(obj) {
|
|
1783
1983
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -1987,6 +2187,13 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
1987
2187
|
return ptr;
|
|
1988
2188
|
}
|
|
1989
2189
|
|
|
2190
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
2191
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
2192
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
2193
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2194
|
+
return ptr;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
1990
2197
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
1991
2198
|
if (realloc === undefined) {
|
|
1992
2199
|
const buf = cachedTextEncoder.encode(arg);
|
|
Binary file
|
|
@@ -7,6 +7,7 @@ export const __wbg_sha256hasher_free: (a: number, b: number) => void;
|
|
|
7
7
|
export const __wbg_wasmimagemodel_free: (a: number, b: number) => void;
|
|
8
8
|
export const __wbg_wasmmodel_free: (a: number, b: number) => void;
|
|
9
9
|
export const __wbg_wasmsession_free: (a: number, b: number) => void;
|
|
10
|
+
export const __wbg_wasmtrainer_free: (a: number, b: number) => void;
|
|
10
11
|
export const buildInfo: () => [number, number, number];
|
|
11
12
|
export const jssource_new: (a: any, b: number) => number;
|
|
12
13
|
export const jsweightcache_new: (a: number, b: number, c: number, d: any, e: any) => number;
|
|
@@ -16,6 +17,7 @@ export const sha256hasher_new: () => number;
|
|
|
16
17
|
export const sha256hasher_update: (a: number, b: number, c: number) => void;
|
|
17
18
|
export const supportedEncoderTypes: () => [number, number];
|
|
18
19
|
export const supportedModelTypes: () => [number, number];
|
|
20
|
+
export const supportedSpeechTypes: () => [number, number];
|
|
19
21
|
export const version: () => [number, number];
|
|
20
22
|
export const wasmimagemodel_generate: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
21
23
|
export const wasmimagemodel_info: (a: number) => [number, number, number];
|
|
@@ -29,11 +31,13 @@ export const wasmmodel_embed: (a: number, b: number, c: number, d: number, e: nu
|
|
|
29
31
|
export const wasmmodel_generate: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
30
32
|
export const wasmmodel_info: (a: number) => [number, number, number];
|
|
31
33
|
export const wasmmodel_isEncoder: (a: number) => number;
|
|
34
|
+
export const wasmmodel_isSpeech: (a: number) => number;
|
|
32
35
|
export const wasmmodel_load: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
33
36
|
export const wasmmodel_removeAdapter: (a: number) => any;
|
|
34
37
|
export const wasmmodel_renderChat: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
35
38
|
export const wasmmodel_reset: (a: number) => [number, number];
|
|
36
39
|
export const wasmmodel_tokenize: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
40
|
+
export const wasmmodel_transcribe: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
37
41
|
export const wasmsession_capacity: (a: number) => [number, number, number];
|
|
38
42
|
export const wasmsession_chat: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
39
43
|
export const wasmsession_chatWithMedia: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any, k: number) => any;
|
|
@@ -48,13 +52,20 @@ export const wasmsession_shiftContext: (a: number, b: number, c: number) => any;
|
|
|
48
52
|
export const wasmsession_step: (a: number, b: number, c: number, d: number) => any;
|
|
49
53
|
export const wasmsession_tokens: (a: number) => [number, number, number, number];
|
|
50
54
|
export const wasmsession_truncate: (a: number, b: number) => [number, number];
|
|
55
|
+
export const wasmtrainer_addExample: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => [number, number];
|
|
56
|
+
export const wasmtrainer_addGroup: (a: number, b: number, c: number) => [number, number, number];
|
|
57
|
+
export const wasmtrainer_commit: (a: number) => [number, number];
|
|
58
|
+
export const wasmtrainer_files: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
59
|
+
export const wasmtrainer_info: (a: number) => [number, number, number];
|
|
60
|
+
export const wasmtrainer_load: (a: number, b: number, c: number) => any;
|
|
61
|
+
export const wasmtrainer_step: (a: number) => any;
|
|
51
62
|
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___js_sys_56365fc49d784db6___Function_fn_wasm_bindgen_8cf186fa7724d16d___JsValue_____wasm_bindgen_8cf186fa7724d16d___sys__Undefined___js_sys_56365fc49d784db6___Function_fn_wasm_bindgen_8cf186fa7724d16d___JsValue_____wasm_bindgen_8cf186fa7724d16d___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
52
63
|
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
53
64
|
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
65
|
+
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__56: (a: number, b: number, c: any) => [number, number];
|
|
66
|
+
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wasm_bindgen_8cf186fa7724d16d___sys__JsNullable_wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_8cf186fa7724d16d___JsError___true__57: (a: number, b: number, c: any) => [number, number];
|
|
56
67
|
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
|
|
57
|
-
export const
|
|
68
|
+
export const wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__55: (a: number, b: number, c: any) => void;
|
|
58
69
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
59
70
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
60
71
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
@@ -196,10 +196,28 @@ export class WasmModel {
|
|
|
196
196
|
* its limit, as `embed` does).
|
|
197
197
|
*/
|
|
198
198
|
tokenize(text: string, add_special_tokens: boolean): Uint32Array;
|
|
199
|
+
/**
|
|
200
|
+
* Transcribes speech with a speech recognition model (Whisper).
|
|
201
|
+
* `audio` is mono PCM (`Float32Array`, at `sampleRate`, 16 kHz by
|
|
202
|
+
* default) or the bytes of a WAV file (`Uint8Array`; browsers decode
|
|
203
|
+
* other formats with `AudioContext` first). `options_json`:
|
|
204
|
+
* `{ language?: string, task?: "transcribe" | "translate",
|
|
205
|
+
* maxNewTokens?: number, sampleRate?: number }` (no language: detected).
|
|
206
|
+
* `on_text(text)` receives the text as it is generated and stops the
|
|
207
|
+
* transcription by returning `false` (or a promise resolving to
|
|
208
|
+
* `false`). Resolves to `{ text, language,
|
|
209
|
+
* duration, segments: [{ id, start, end, text, tokens }], tokens,
|
|
210
|
+
* stopped }`. Rejects with `UNSUPPORTED_TASK` on other models.
|
|
211
|
+
*/
|
|
212
|
+
transcribe(audio: any, options_json: string, on_text?: Function | null): Promise<any>;
|
|
199
213
|
/**
|
|
200
214
|
* Whether the model is an encoder (it answers `embed`, not `chat`).
|
|
201
215
|
*/
|
|
202
216
|
readonly isEncoder: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the model recognizes speech (it answers `transcribe`).
|
|
219
|
+
*/
|
|
220
|
+
readonly isSpeech: boolean;
|
|
203
221
|
}
|
|
204
222
|
|
|
205
223
|
/**
|
|
@@ -312,6 +330,53 @@ export class WasmSession {
|
|
|
312
330
|
readonly length: number;
|
|
313
331
|
}
|
|
314
332
|
|
|
333
|
+
/**
|
|
334
|
+
* A model being trained.
|
|
335
|
+
*/
|
|
336
|
+
export class WasmTrainer {
|
|
337
|
+
private constructor();
|
|
338
|
+
free(): void;
|
|
339
|
+
[Symbol.dispose](): void;
|
|
340
|
+
/**
|
|
341
|
+
* Adds a sequence to group `group`: `teacher` is `"none"`, `"base"`,
|
|
342
|
+
* `"topk"` (`k` ids and probabilities per prediction) or `"logits"`.
|
|
343
|
+
*/
|
|
344
|
+
addExample(group: number, ids: Uint32Array, weights: Float32Array | null | undefined, teacher: string, k: number, teacher_ids?: Uint32Array | null, teacher_values?: Float32Array | null): void;
|
|
345
|
+
/**
|
|
346
|
+
* Adds a data group (`TrainGroupJs`: `{ batchSize?, weight?, ce?,
|
|
347
|
+
* kl?, reduction?, sampling?, sampleWeights? }`); returns its index.
|
|
348
|
+
* Groups take effect at [`WasmTrainer::commit`].
|
|
349
|
+
*/
|
|
350
|
+
addGroup(group_json: string): number;
|
|
351
|
+
/**
|
|
352
|
+
* Sets the groups added so far as the data steps draw from (replacing
|
|
353
|
+
* earlier ones).
|
|
354
|
+
*/
|
|
355
|
+
commit(): void;
|
|
356
|
+
/**
|
|
357
|
+
* The trained delta as files, `{ [name]: Uint8Array }`: `format`
|
|
358
|
+
* `"peft"` (default: `adapter_config.json` and
|
|
359
|
+
* `adapter_model.safetensors`) or `"dense"` (`delta.safetensors`).
|
|
360
|
+
* `base_model` fills `base_model_name_or_path`.
|
|
361
|
+
*/
|
|
362
|
+
files(format?: string | null, base_model?: string | null): Promise<any>;
|
|
363
|
+
/**
|
|
364
|
+
* Describes the trainer (see `TrainerInfo`).
|
|
365
|
+
*/
|
|
366
|
+
info(): any;
|
|
367
|
+
/**
|
|
368
|
+
* Loads the model of `source` for training. `options_json`: see
|
|
369
|
+
* `TrainOptionsJs` (`{ steps, method?, rank?, alpha?, targets?,
|
|
370
|
+
* layers?, lr?, ..., device? }`).
|
|
371
|
+
*/
|
|
372
|
+
static load(source: JsSource, options_json: string): Promise<WasmTrainer>;
|
|
373
|
+
/**
|
|
374
|
+
* Runs one optimizer step; resolves to `{ step, lr, loss,
|
|
375
|
+
* groupLosses, tokens, clamped, timeMs }`.
|
|
376
|
+
*/
|
|
377
|
+
step(): Promise<any>;
|
|
378
|
+
}
|
|
379
|
+
|
|
315
380
|
/**
|
|
316
381
|
* How this module was built: `{ flavour, kernels, threads }`. `flavour`
|
|
317
382
|
* is `"simd"`, `"relaxed"` (SIMD128 and relaxed SIMD) or `"threads"`
|
|
@@ -351,6 +416,12 @@ export function supportedEncoderTypes(): string[];
|
|
|
351
416
|
*/
|
|
352
417
|
export function supportedModelTypes(): string[];
|
|
353
418
|
|
|
419
|
+
/**
|
|
420
|
+
* `model_type` values of the speech recognition models this build runs
|
|
421
|
+
* (models whose `WasmModel` answers `transcribe`).
|
|
422
|
+
*/
|
|
423
|
+
export function supportedSpeechTypes(): string[];
|
|
424
|
+
|
|
354
425
|
/**
|
|
355
426
|
* Version of the Rust engine, as declared in `Cargo.toml`.
|
|
356
427
|
*/
|
|
@@ -376,6 +447,7 @@ export interface InitOutput {
|
|
|
376
447
|
readonly __wbg_wasmimagemodel_free: (a: number, b: number) => void;
|
|
377
448
|
readonly __wbg_wasmmodel_free: (a: number, b: number) => void;
|
|
378
449
|
readonly __wbg_wasmsession_free: (a: number, b: number) => void;
|
|
450
|
+
readonly __wbg_wasmtrainer_free: (a: number, b: number) => void;
|
|
379
451
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
380
452
|
readonly buildInfo: () => [number, number, number];
|
|
381
453
|
readonly initThreadPool: (a: number) => any;
|
|
@@ -388,6 +460,7 @@ export interface InitOutput {
|
|
|
388
460
|
readonly startThreadPool: (a: number) => any;
|
|
389
461
|
readonly supportedEncoderTypes: () => [number, number];
|
|
390
462
|
readonly supportedModelTypes: () => [number, number];
|
|
463
|
+
readonly supportedSpeechTypes: () => [number, number];
|
|
391
464
|
readonly version: () => [number, number];
|
|
392
465
|
readonly wasmimagemodel_generate: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
393
466
|
readonly wasmimagemodel_info: (a: number) => [number, number, number];
|
|
@@ -401,11 +474,13 @@ export interface InitOutput {
|
|
|
401
474
|
readonly wasmmodel_generate: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
402
475
|
readonly wasmmodel_info: (a: number) => [number, number, number];
|
|
403
476
|
readonly wasmmodel_isEncoder: (a: number) => number;
|
|
477
|
+
readonly wasmmodel_isSpeech: (a: number) => number;
|
|
404
478
|
readonly wasmmodel_load: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
405
479
|
readonly wasmmodel_removeAdapter: (a: number) => any;
|
|
406
480
|
readonly wasmmodel_renderChat: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
407
481
|
readonly wasmmodel_reset: (a: number) => [number, number];
|
|
408
482
|
readonly wasmmodel_tokenize: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
483
|
+
readonly wasmmodel_transcribe: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
409
484
|
readonly wasmsession_capacity: (a: number) => [number, number, number];
|
|
410
485
|
readonly wasmsession_chat: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
|
|
411
486
|
readonly wasmsession_chatWithMedia: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any, k: number) => any;
|
|
@@ -420,6 +495,13 @@ export interface InitOutput {
|
|
|
420
495
|
readonly wasmsession_step: (a: number, b: number, c: number, d: number) => any;
|
|
421
496
|
readonly wasmsession_tokens: (a: number) => [number, number, number, number];
|
|
422
497
|
readonly wasmsession_truncate: (a: number, b: number) => [number, number];
|
|
498
|
+
readonly wasmtrainer_addExample: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => [number, number];
|
|
499
|
+
readonly wasmtrainer_addGroup: (a: number, b: number, c: number) => [number, number, number];
|
|
500
|
+
readonly wasmtrainer_commit: (a: number) => [number, number];
|
|
501
|
+
readonly wasmtrainer_files: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
502
|
+
readonly wasmtrainer_info: (a: number) => [number, number, number];
|
|
503
|
+
readonly wasmtrainer_load: (a: number, b: number, c: number) => any;
|
|
504
|
+
readonly wasmtrainer_step: (a: number) => any;
|
|
423
505
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
424
506
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
425
507
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
@@ -427,12 +509,12 @@ export interface InitOutput {
|
|
|
427
509
|
readonly 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;
|
|
428
510
|
readonly 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];
|
|
429
511
|
readonly 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];
|
|
430
|
-
readonly
|
|
431
|
-
readonly
|
|
512
|
+
readonly 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__64: (a: number, b: number, c: any) => [number, number];
|
|
513
|
+
readonly 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__65: (a: number, b: number, c: any) => [number, number];
|
|
432
514
|
readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_: (a: number, b: number, c: any) => void;
|
|
433
515
|
readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
434
|
-
readonly
|
|
435
|
-
readonly
|
|
516
|
+
readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__62: (a: number, b: number, c: any) => void;
|
|
517
|
+
readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__63: (a: number, b: number, c: any) => void;
|
|
436
518
|
readonly memory: WebAssembly.Memory;
|
|
437
519
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
438
520
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|