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/dist/train.js ADDED
@@ -0,0 +1,99 @@
1
+ /**
2
+ * On-device training ({@link Model.train}): options, data and results, and
3
+ * their translation into the `train` request the engine runs.
4
+ */
5
+ import { WebslmError } from "./errors.js";
6
+ const invalid = (message) => new WebslmError("INVALID_ARGUMENT", message);
7
+ const u32 = (values) => values instanceof Uint32Array ? values : Uint32Array.from(values);
8
+ const f32 = (values) => values instanceof Float32Array ? values : Float32Array.from(values);
9
+ /** The options JSON of `Trainer.load` (`TrainOptionsJs`). */
10
+ export function wireTrainOptions(options) {
11
+ if (!Number.isInteger(options.steps) || options.steps < 1) {
12
+ throw invalid("train: `steps` must be a positive integer");
13
+ }
14
+ const { params = {}, optimizer = {} } = options;
15
+ const device = options.device === "gpu" ? "webgpu" : options.device;
16
+ return JSON.stringify({
17
+ steps: options.steps,
18
+ method: params.method,
19
+ rank: params.rank,
20
+ alpha: params.alpha,
21
+ targets: params.targets,
22
+ layers: params.layers,
23
+ lr: optimizer.lr,
24
+ beta1: optimizer.beta1,
25
+ beta2: optimizer.beta2,
26
+ eps: optimizer.eps,
27
+ weightDecay: optimizer.weightDecay,
28
+ warmupSteps: optimizer.warmupSteps,
29
+ schedule: optimizer.schedule,
30
+ maxNormRatio: optimizer.maxNormRatio,
31
+ microBatch: options.microBatch,
32
+ checkpointing: options.checkpointing,
33
+ seed: options.seed,
34
+ device,
35
+ });
36
+ }
37
+ /**
38
+ * The groups of `options` as the engine takes them, texts tokenized with
39
+ * `tokenize`.
40
+ */
41
+ export async function wireTrainGroups(options, tokenize) {
42
+ const groups = [];
43
+ if (options.dataset !== undefined) {
44
+ groups.push({
45
+ examples: options.dataset,
46
+ ...(options.batchSize === undefined ? {} : { batchSize: options.batchSize }),
47
+ ...(options.loss === undefined ? {} : { loss: options.loss }),
48
+ });
49
+ }
50
+ groups.push(...(options.groups ?? []));
51
+ if (groups.length === 0 || groups.every((g) => g.examples.length === 0)) {
52
+ throw invalid("train: give examples in `dataset` or `groups`");
53
+ }
54
+ const wire = [];
55
+ for (const group of groups) {
56
+ const sampling = group.sampling;
57
+ const groupOptions = JSON.stringify({
58
+ batchSize: group.batchSize,
59
+ weight: group.weight,
60
+ ce: group.loss?.ce,
61
+ kl: group.loss?.kl,
62
+ reduction: group.loss?.reduction,
63
+ ...(Array.isArray(sampling) ? { sampleWeights: sampling } : { sampling }),
64
+ });
65
+ const examples = [];
66
+ for (const example of group.examples) {
67
+ let ids;
68
+ if (example.ids !== undefined)
69
+ ids = u32(example.ids);
70
+ else if (example.text !== undefined)
71
+ ids = await tokenize(example.text);
72
+ else
73
+ throw invalid("train: every example needs `ids` or `text`");
74
+ const teacher = example.teacher;
75
+ const weights = example.weights === undefined ? {} : { weights: f32(example.weights) };
76
+ if (teacher === undefined) {
77
+ examples.push({ ids, ...weights, teacher: "none", k: 0 });
78
+ }
79
+ else if (teacher === "base") {
80
+ examples.push({ ids, ...weights, teacher: "base", k: 0 });
81
+ }
82
+ else if ("logits" in teacher) {
83
+ examples.push({ ids, ...weights, teacher: "logits", k: 0, teacherValues: f32(teacher.logits) });
84
+ }
85
+ else {
86
+ examples.push({
87
+ ids,
88
+ ...weights,
89
+ teacher: "topk",
90
+ k: teacher.k,
91
+ teacherIds: u32(teacher.ids),
92
+ teacherValues: f32(teacher.probs),
93
+ });
94
+ }
95
+ }
96
+ wire.push({ options: groupOptions, examples });
97
+ }
98
+ return wire;
99
+ }
package/dist/types.d.ts CHANGED
@@ -629,6 +629,69 @@ export interface Embeddings {
629
629
  /** Tokens read from each text (texts longer than the model's limit are cut). */
630
630
  readonly tokens: readonly number[];
631
631
  }
632
+ /** What a speech recognition model (Whisper) reads, in {@link ModelInfo.speech}. */
633
+ export interface SpeechInfo {
634
+ /** Sample rate the model reads (16000); other rates are resampled. */
635
+ readonly sampleRate: number;
636
+ /** Mel bins of the features (80, or 128 for large-v3 checkpoints). */
637
+ readonly melBins: number;
638
+ /** Seconds of audio per window (30): longer audio is transcribed one window after the other. */
639
+ readonly windowSeconds: number;
640
+ /** Whether the model knows several languages (and translates into English). */
641
+ readonly multilingual: boolean;
642
+ /** Codes of the languages it has tokens for (empty for English-only models). */
643
+ readonly languages: readonly string[];
644
+ }
645
+ /**
646
+ * Audio for {@link Model.transcribe}: mono PCM samples (`Float32Array`, at
647
+ * {@link TranscribeOptions.sampleRate}, 16 kHz by default), or an encoded
648
+ * file (`ArrayBuffer`, `Uint8Array` or `Blob`). WAV files are decoded by the
649
+ * engine everywhere; browsers decode the other formats (MP3, Ogg, WebM, M4A...)
650
+ * with Web Audio first. In Node, pass PCM or WAV (convert other formats with
651
+ * ffmpeg, e.g. `ffmpeg -i in.mp3 -ac 1 -ar 16000 out.wav`).
652
+ */
653
+ export type AudioInput = Float32Array | ArrayBuffer | Uint8Array | Blob;
654
+ /** Options of {@link Model.transcribe}. */
655
+ export interface TranscribeOptions {
656
+ /**
657
+ * The spoken language: a code (`"en"`), an English name (`"french"`) or a
658
+ * token (`"<|fr|>"`). Default: detected from the first 30 s (ignored by
659
+ * English-only models, which take only English).
660
+ */
661
+ readonly language?: string;
662
+ /** `"transcribe"` (default), or `"translate"` into English (multilingual models). */
663
+ readonly task?: "transcribe" | "translate";
664
+ /** Largest number of tokens per 30 s window (default: the model's limit, 448 positions). */
665
+ readonly maxNewTokens?: number;
666
+ /** Sample rate of PCM input (default 16000; other rates are resampled). Ignored for files. */
667
+ readonly sampleRate?: number;
668
+ /** Stops the transcription: the promise rejects with an `ABORTED` error. */
669
+ readonly signal?: AbortSignal;
670
+ /** Receives the text as it is generated, piece by piece. */
671
+ readonly onToken?: (text: string) => void;
672
+ }
673
+ /** One 30 s window of a {@link Transcription}. */
674
+ export interface TranscriptionSegment {
675
+ readonly id: number;
676
+ /** Start and end of the window, in seconds. */
677
+ readonly start: number;
678
+ readonly end: number;
679
+ readonly text: string;
680
+ /** Token ids generated for the window (no prompt, no end token). */
681
+ readonly tokens: readonly number[];
682
+ }
683
+ /** What {@link Model.transcribe} resolves to. */
684
+ export interface Transcription {
685
+ /** The whole text, trimmed. */
686
+ readonly text: string;
687
+ /** The language code used (given or detected); absent for English-only models. */
688
+ readonly language?: string;
689
+ /** Length of the audio, in seconds. */
690
+ readonly duration: number;
691
+ readonly segments: readonly TranscriptionSegment[];
692
+ /** Tokens generated, over every window. */
693
+ readonly tokens: number;
694
+ }
632
695
  export interface ModelInfo {
633
696
  /** Hub repository id, when loaded from the hub. */
634
697
  readonly repo?: string;
@@ -682,6 +745,11 @@ export interface ModelInfo {
682
745
  * BERT, ModernBERT, model2vec); absent for language models.
683
746
  */
684
747
  readonly embedding?: EmbeddingInfo;
748
+ /**
749
+ * What `transcribe` reads, for a speech recognition model (Whisper);
750
+ * absent for other models.
751
+ */
752
+ readonly speech?: SpeechInfo;
685
753
  readonly stopTokens: readonly number[];
686
754
  readonly tokenizer: {
687
755
  readonly vocabSize: number;
package/dist/wasm.d.ts CHANGED
@@ -13,6 +13,8 @@ export interface WasmExports {
13
13
  supportedModelTypes(): string[];
14
14
  /** `model_type` values of the encoders the engine embeds with. */
15
15
  supportedEncoderTypes(): string[];
16
+ /** `model_type` values of the speech recognition models the engine transcribes with. */
17
+ supportedSpeechTypes(): string[];
16
18
  /** Parses a safetensors header (see `parseSafetensorsHeader`). */
17
19
  parseSafetensorsHeader(bytes: Uint8Array): unknown;
18
20
  /** Incremental SHA-256 (`finish()` returns the hex digest and resets). */
@@ -1,47 +1,47 @@
1
1
  {
2
- "version": "0.9.0",
2
+ "version": "0.11.0",
3
3
  "assets": {
4
4
  "darwin-arm64": {
5
- "file": "webslm-node-0.9.0-darwin-arm64.node.gz",
6
- "size": 5591852,
7
- "sha256": "cea8e35516345ba1f80999eb22d3dd52cffc1efae0392a2329ac1bb4fab3df20",
8
- "nodeSha256": "d7a753a468e097bf55488b3377e5c7988fd00174beafba171d0d98155bfb4f8b"
5
+ "file": "webslm-node-0.11.0-darwin-arm64.node.gz",
6
+ "size": 5941127,
7
+ "sha256": "9f03f7173de1191b0a356e31e907a3221979900b2dd964186fe0db5947b26061",
8
+ "nodeSha256": "6d71e387f73138da6f0aa316cc68278368535091ab1d98f4e96207e2527a3276"
9
9
  },
10
10
  "darwin-x64": {
11
- "file": "webslm-node-0.9.0-darwin-x64.node.gz",
12
- "size": 5888899,
13
- "sha256": "258e2d3682207281ad01e432d8d5cc67b4acde1a5135f94bfdecf9c0cc3addcb",
14
- "nodeSha256": "d475186c607d38b94f16bf5b907c793052c4930eb8fb1da66fcaf4d56f4eaa95"
11
+ "file": "webslm-node-0.11.0-darwin-x64.node.gz",
12
+ "size": 6273652,
13
+ "sha256": "d8a21f203f9d43a55e07e62cf6bae4c9d7398c4a084319942d18a76cfc68b5a7",
14
+ "nodeSha256": "7af721d2e5c44429b8996b01c2291bedcdb0f9c0e5aa1ea9d6599913b1657fdc"
15
15
  },
16
16
  "linux-x64-gnu": {
17
- "file": "webslm-node-0.9.0-linux-x64-gnu.node.gz",
18
- "size": 5918558,
19
- "sha256": "e54006e5b99eec6b6b5c3ad3151b17b2b1c5fec82bbc752b10ed3042c5ebc504",
20
- "nodeSha256": "bc889da6b28d8b6a5c67e0f27afd35c83e5140577eabb6b9dfe507a16676cd6d"
17
+ "file": "webslm-node-0.11.0-linux-x64-gnu.node.gz",
18
+ "size": 6294793,
19
+ "sha256": "1dd735e55181a70c3092c167bc3f70f05e70d3b885405190542869a6eefac8e5",
20
+ "nodeSha256": "f8db0a7818d20f2f116ddd44ba52ccb5e3216ba3eb097f4a02845c07b64efb56"
21
21
  },
22
22
  "linux-arm64-gnu": {
23
- "file": "webslm-node-0.9.0-linux-arm64-gnu.node.gz",
24
- "size": 5558757,
25
- "sha256": "a905db5284c04c1be6c2c19f4c13955a0886e34764512a0dbdfb7ee74afb5ef9",
26
- "nodeSha256": "b139332668606acd944db2d70ece7f02a3e2810047bece5e0e828932aa40bbd6"
23
+ "file": "webslm-node-0.11.0-linux-arm64-gnu.node.gz",
24
+ "size": 5900645,
25
+ "sha256": "5c3f54eb7f98f473f5cef04ed92ca8822159284eff1e4f73970195d05d3ccd40",
26
+ "nodeSha256": "1162ce3922c69c4957e04ba3c203e387b648a49c959c7e5391eb8705c4ffc6ad"
27
27
  },
28
28
  "linux-x64-musl": {
29
- "file": "webslm-node-0.9.0-linux-x64-musl.node.gz",
30
- "size": 6321849,
31
- "sha256": "118396973e958c1ed99e8a248abff85d3543e6bc34b54585fb0bd97ccb86b9c6",
32
- "nodeSha256": "d637858c3b43c2da944600bb781652ba3550d059f02a36407c529d237ea670e2"
29
+ "file": "webslm-node-0.11.0-linux-x64-musl.node.gz",
30
+ "size": 6711135,
31
+ "sha256": "32f7c02cdda6b8f2b0a0dea5bff1ac71f92036dc7d67daf68fca4a9e3d6e03c3",
32
+ "nodeSha256": "0f3c8edf5fed499e63b99c602ed6ff65ce7ea4b08ff2f2beaeb1340c5bb72009"
33
33
  },
34
34
  "linux-arm64-musl": {
35
- "file": "webslm-node-0.9.0-linux-arm64-musl.node.gz",
36
- "size": 6087963,
37
- "sha256": "362cb975bc640c7822f80a3bb4407bc6218b39513560b52e37533a968422ee4a",
38
- "nodeSha256": "af0b29f7688457466ad47788ad870783252ef4035efb0ee9dd537a73ed817615"
35
+ "file": "webslm-node-0.11.0-linux-arm64-musl.node.gz",
36
+ "size": 6448181,
37
+ "sha256": "3f8a396e2cbed2da0c76f3ef4e47599d4504027e0af745c90cb500b44baf07a8",
38
+ "nodeSha256": "4c8ac79fd0c3fc441795764f2fb538f263b656aa0f110653934a4dd861675ef6"
39
39
  },
40
40
  "win32-x64-msvc": {
41
- "file": "webslm-node-0.9.0-win32-x64-msvc.node.gz",
42
- "size": 6407894,
43
- "sha256": "d0b1860d23e77fcbab0d4646189ac2ee44c0f683f312469c11f3d7289cf825da",
44
- "nodeSha256": "2cbb741f1704cf540e311d5c21730e98102c54f6fd720df1c919611e95060ada"
41
+ "file": "webslm-node-0.11.0-win32-x64-msvc.node.gz",
42
+ "size": 6821471,
43
+ "sha256": "f33d8556b25b8bd32009cfe266559d5ff59bb227aa1b8405c6c5de1859210e5c",
44
+ "nodeSha256": "8a6bb4a4958f314dc8767c6580b5044a810f39fea9d4bc8dab9d4fe033f655cd"
45
45
  }
46
46
  }
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webslm",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Run small language models in the browser and in Node, straight from their original Hugging Face checkpoints: a Rust engine compiled to WebAssembly, in a worker, with an offline cache.",
5
5
  "license": "MIT",
6
6
  "author": "Maxime Golfier",
@@ -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"`
@@ -342,6 +407,12 @@ export function supportedEncoderTypes(): string[];
342
407
  */
343
408
  export function supportedModelTypes(): string[];
344
409
 
410
+ /**
411
+ * `model_type` values of the speech recognition models this build runs
412
+ * (models whose `WasmModel` answers `transcribe`).
413
+ */
414
+ export function supportedSpeechTypes(): string[];
415
+
345
416
  /**
346
417
  * Version of the Rust engine, as declared in `Cargo.toml`.
347
418
  */
@@ -357,6 +428,7 @@ export interface InitOutput {
357
428
  readonly __wbg_wasmimagemodel_free: (a: number, b: number) => void;
358
429
  readonly __wbg_wasmmodel_free: (a: number, b: number) => void;
359
430
  readonly __wbg_wasmsession_free: (a: number, b: number) => void;
431
+ readonly __wbg_wasmtrainer_free: (a: number, b: number) => void;
360
432
  readonly buildInfo: () => [number, number, number];
361
433
  readonly jssource_new: (a: any, b: number) => number;
362
434
  readonly jsweightcache_new: (a: number, b: number, c: number, d: any, e: any) => number;
@@ -366,6 +438,7 @@ export interface InitOutput {
366
438
  readonly sha256hasher_update: (a: number, b: number, c: number) => void;
367
439
  readonly supportedEncoderTypes: () => [number, number];
368
440
  readonly supportedModelTypes: () => [number, number];
441
+ readonly supportedSpeechTypes: () => [number, number];
369
442
  readonly version: () => [number, number];
370
443
  readonly wasmimagemodel_generate: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
371
444
  readonly wasmimagemodel_info: (a: number) => [number, number, number];
@@ -379,11 +452,13 @@ export interface InitOutput {
379
452
  readonly wasmmodel_generate: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
380
453
  readonly wasmmodel_info: (a: number) => [number, number, number];
381
454
  readonly wasmmodel_isEncoder: (a: number) => number;
455
+ readonly wasmmodel_isSpeech: (a: number) => number;
382
456
  readonly wasmmodel_load: (a: number, b: number, c: number, d: number, e: number) => any;
383
457
  readonly wasmmodel_removeAdapter: (a: number) => any;
384
458
  readonly wasmmodel_renderChat: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
385
459
  readonly wasmmodel_reset: (a: number) => [number, number];
386
460
  readonly wasmmodel_tokenize: (a: number, b: number, c: number, d: number) => [number, number, number, number];
461
+ readonly wasmmodel_transcribe: (a: number, b: any, c: number, d: number, e: number) => any;
387
462
  readonly wasmsession_capacity: (a: number) => [number, number, number];
388
463
  readonly wasmsession_chat: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
389
464
  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;
@@ -398,13 +473,20 @@ export interface InitOutput {
398
473
  readonly wasmsession_step: (a: number, b: number, c: number, d: number) => any;
399
474
  readonly wasmsession_tokens: (a: number) => [number, number, number, number];
400
475
  readonly wasmsession_truncate: (a: number, b: number) => [number, number];
476
+ 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];
477
+ readonly wasmtrainer_addGroup: (a: number, b: number, c: number) => [number, number, number];
478
+ readonly wasmtrainer_commit: (a: number) => [number, number];
479
+ readonly wasmtrainer_files: (a: number, b: number, c: number, d: number, e: number) => any;
480
+ readonly wasmtrainer_info: (a: number) => [number, number, number];
481
+ readonly wasmtrainer_load: (a: number, b: number, c: number) => any;
482
+ readonly wasmtrainer_step: (a: number) => any;
401
483
  readonly 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;
402
484
  readonly 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];
403
485
  readonly 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];
404
- readonly 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__46: (a: number, b: number, c: any) => [number, number];
405
- readonly 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__47: (a: number, b: number, c: any) => [number, number];
486
+ readonly 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];
487
+ readonly 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];
406
488
  readonly wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
407
- readonly wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__45: (a: number, b: number, c: any) => void;
489
+ readonly wasm_bindgen_8cf186fa7724d16d___convert__closures_____invoke___wgpu_54917290532eaf6b___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__55: (a: number, b: number, c: any) => void;
408
490
  readonly __wbindgen_malloc: (a: number, b: number) => number;
409
491
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
410
492
  readonly __wbindgen_exn_store: (a: number) => void;