bitgpu 0.1.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/LICENSE +21 -0
- package/README.md +130 -0
- package/dist/index.d.ts +190 -0
- package/dist/index.js +1981 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sait Furkan Teke
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# bitgpu
|
|
2
|
+
|
|
3
|
+
A fast, dependency-free WebGPU runtime for **low-bit LLMs** in the browser.
|
|
4
|
+
|
|
5
|
+
Today it runs **1-bit (binary-weight)** models.
|
|
6
|
+
Reference target is Bonsai-1.7B (Qwen3 architecture, sign-packed binary linear weights + 2/4-bit tied
|
|
7
|
+
embeddings). Bit-exact with the reference forward, GPU-resident decode (greedy or sampled), streaming,
|
|
8
|
+
EOS stop, `AbortSignal`, and cross-turn KV-cache reuse. Runs the fast subgroup path on Apple / NVIDIA /
|
|
9
|
+
recent AMD and falls back to a workgroup-reduction path everywhere else WebGPU is available.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install bitgpu
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
ESM-only, zero runtime dependencies.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { createEngine, WebGPUUnavailableError } from 'bitgpu'
|
|
23
|
+
|
|
24
|
+
let engine
|
|
25
|
+
try {
|
|
26
|
+
engine = await createEngine({
|
|
27
|
+
modelUrl: 'https://cdn.example.com/bonsai', // dir with manifest.json + data/aux files
|
|
28
|
+
onProgress: (p) => console.log(p.phase),
|
|
29
|
+
})
|
|
30
|
+
} catch (err) {
|
|
31
|
+
if (err instanceof WebGPUUnavailableError) {
|
|
32
|
+
// render a "WebGPU not supported" fallback
|
|
33
|
+
} else throw err
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Greedy by default; stream tokens, stop on EOS, cancel with a signal.
|
|
37
|
+
const result = await engine.generate(promptTokenIds, {
|
|
38
|
+
maxTokens: 256,
|
|
39
|
+
stopTokens: [151645],
|
|
40
|
+
onToken: (id) => process.stdout.write(String(id) + ' '),
|
|
41
|
+
})
|
|
42
|
+
console.log(result.tokens, result.tokensPerSecond)
|
|
43
|
+
|
|
44
|
+
// Sampling (matches transformers.js v4.2.0 exactly): set a temperature other than 0/1.
|
|
45
|
+
await engine.generate(promptTokenIds, { temperature: 0.5, topK: 20, repetitionPenalty: 1.15 })
|
|
46
|
+
|
|
47
|
+
engine.dispose()
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Tokenization is intentionally out of scope: the engine operates on token ids, so you can pair it
|
|
51
|
+
with any tokenizer.
|
|
52
|
+
|
|
53
|
+
## API
|
|
54
|
+
|
|
55
|
+
- `createEngine(options: EngineOptions | string): Promise<Engine>` - load a model. A bare string is
|
|
56
|
+
treated as `modelUrl`.
|
|
57
|
+
- `engine.generate(promptTokenIds, options?)` - generate tokens. Greedy by default; sampling, streaming
|
|
58
|
+
(`onToken`), EOS (`stopTokens`), cancellation (`signal`) and cross-turn cache reuse (`reuseCache`) are
|
|
59
|
+
all supported. `maxTokens` is clamped to the KV window. See the published `EngineOptions` /
|
|
60
|
+
`GenerateOptions` types for the full option shapes.
|
|
61
|
+
- `engine.prefill(promptTokenIds)` - prefill a prompt prefix into the KV cache without decoding, so a
|
|
62
|
+
later `generate(delta, { reuseCache: true })` starts from a warm cache (e.g. a static system prompt).
|
|
63
|
+
- `engine.forward(tokenIds)` - single forward pass (hidden states + logits) for correctness checks.
|
|
64
|
+
- `engine.resetCache()` - clear the cross-turn KV cache (start a fresh conversation).
|
|
65
|
+
- `engine.capabilities` - detected GPU path (`useSubgroups`, `subgroupSize`, adapter info, limits).
|
|
66
|
+
- `engine.lost` - promise that resolves if the GPU device is lost (also via `onDeviceLost` option);
|
|
67
|
+
create a new engine to recover.
|
|
68
|
+
- `engine.dispose()` - release GPU resources.
|
|
69
|
+
|
|
70
|
+
Errors: `WebGPUUnavailableError` (no WebGPU / no adapter) and `GpuOutOfMemoryError` (weight upload or
|
|
71
|
+
KV growth failed) are exported so you can branch on them.
|
|
72
|
+
|
|
73
|
+
## Browser support
|
|
74
|
+
|
|
75
|
+
WebGPU with compute is required (a clear `WebGPUUnavailableError` is thrown otherwise).
|
|
76
|
+
|
|
77
|
+
| Browser | Path | Notes |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| Chrome / Edge (desktop) | subgroups when uniform 32/64, else workgroup fallback | fastest path |
|
|
80
|
+
| Safari 26+ (macOS/iOS) | subgroups on Apple GPUs | Metal; low dispatch overhead |
|
|
81
|
+
| Firefox | workgroup fallback | WebGPU shipped, but per-dispatch overhead is high; expect low throughput |
|
|
82
|
+
| Android Chrome | device-dependent | works where WebGPU is exposed; VRAM limits apply |
|
|
83
|
+
|
|
84
|
+
## CDN usage
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<script type="module">
|
|
88
|
+
import { createEngine } from 'https://esm.sh/bitgpu'
|
|
89
|
+
// or: https://cdn.jsdelivr.net/npm/bitgpu/+esm
|
|
90
|
+
</script>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Development
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
npm run gen:shaders # inline shaders/*.wgsl -> src/shaders.generated.ts
|
|
97
|
+
npm run build # tsdown -> dist (ESM + .d.ts)
|
|
98
|
+
npm run typecheck
|
|
99
|
+
npm run test:sampler # sampler parity vs transformers.js v4.2.0
|
|
100
|
+
npm run test:pld # prompt-lookup drafter unit checks
|
|
101
|
+
npm run check:publish # publint + are-the-types-wrong
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### GPU verification gate
|
|
105
|
+
|
|
106
|
+
`examples/verify.html` re-runs the full bit-exactness + throughput suite (forward cosines vs the
|
|
107
|
+
committed reference fixtures in `test-fixtures/forward/`, known-good greedy ids, sampler kernel
|
|
108
|
+
parity, determinism, KV reuse/growth, prompt-lookup identity) against the **built package** and
|
|
109
|
+
prints `PACKAGE OK` or `REGRESSION`.
|
|
110
|
+
|
|
111
|
+
It needs model weights, which are not committed. Point `examples/model` at a directory holding the
|
|
112
|
+
model's `manifest.json` + data/aux files (the reference target is Bonsai-1.7B, ~290 MB):
|
|
113
|
+
|
|
114
|
+
```sh
|
|
115
|
+
ln -s /path/to/bonsai-model examples/model # or copy the files in
|
|
116
|
+
npm run build
|
|
117
|
+
python3 -m http.server 8000 # serve the repo root
|
|
118
|
+
npm run verify:headless # drives system Chrome headlessly (WebGPU/Metal)
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Or open `http://localhost:8000/examples/verify.html` in a WebGPU browser and click Run. Run this
|
|
122
|
+
gate on real hardware before every release; CI covers only the CPU-checkable parts (types, sampler
|
|
123
|
+
math, drafter, packaging).
|
|
124
|
+
|
|
125
|
+
The WGSL kernels live in `shaders/` and are inlined into the bundle at build time (no runtime
|
|
126
|
+
`fetch`). `scripts/gen-shaders.ts` does the inlining.
|
|
127
|
+
|
|
128
|
+
## License
|
|
129
|
+
|
|
130
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
/** Progress event emitted while a model loads. */
|
|
3
|
+
interface LoadProgress {
|
|
4
|
+
phase: 'manifest' | 'weights' | 'pipelines';
|
|
5
|
+
/** Bytes fetched so far (weights phase only). */
|
|
6
|
+
loaded?: number;
|
|
7
|
+
/** Total bytes to fetch (weights phase only). */
|
|
8
|
+
total?: number;
|
|
9
|
+
}
|
|
10
|
+
/** Options for {@link createEngine}. Pass a string to use defaults with just a model URL.
|
|
11
|
+
* Provide either `modelUrl` (a directory holding manifest.json + the data/aux files) or the explicit
|
|
12
|
+
* `manifestUrl`/`dataUrl`/`auxUrl` (which lets the large data file come from one host, e.g. the HF Hub,
|
|
13
|
+
* and the small manifest/aux from another). The explicit URLs win over the `modelUrl`-relative ones. */
|
|
14
|
+
interface EngineOptions {
|
|
15
|
+
/** Base URL of the model directory containing `manifest.json` and its data/aux files. */
|
|
16
|
+
modelUrl?: string;
|
|
17
|
+
/** Explicit URL for manifest.json (overrides `${modelUrl}/manifest.json`). */
|
|
18
|
+
manifestUrl?: string;
|
|
19
|
+
/** Explicit URL for the weights data file (overrides `${modelUrl}/<data_file>`). */
|
|
20
|
+
dataUrl?: string;
|
|
21
|
+
/** Explicit URL for the aux file (overrides `${modelUrl}/<aux_file>`). */
|
|
22
|
+
auxUrl?: string;
|
|
23
|
+
/** Fetch JSON (manifest). Override to add caching. Default: `fetch(url).json()`. */
|
|
24
|
+
fetchJson?: (url: string) => Promise<unknown>;
|
|
25
|
+
/** Fetch binary (data/aux). Override to add caching (e.g. OPFS) for the ~290MB data file. Default: `fetch(url).arrayBuffer()`. */
|
|
26
|
+
fetchArrayBuffer?: (url: string) => Promise<ArrayBuffer>;
|
|
27
|
+
/** GPU power preference. Default `'high-performance'` (picks the discrete GPU on multi-GPU machines).
|
|
28
|
+
* (Spelled out rather than `GPUPowerPreference` so the published d.ts resolves without @webgpu/types.) */
|
|
29
|
+
powerPreference?: 'low-power' | 'high-performance';
|
|
30
|
+
/** Force the no-subgroup reduction path (for testing the fallback). Default `false`. */
|
|
31
|
+
forceNoSubgroups?: boolean;
|
|
32
|
+
/** Workgroup size for the no-subgroup reduction kernels. Default `64`. */
|
|
33
|
+
noSubgroupWorkgroupSize?: number;
|
|
34
|
+
/** Decode steps chained per CPU sync (deferred readback). Higher hides latency; default `4`. */
|
|
35
|
+
syncSteps?: number;
|
|
36
|
+
/** Prefill GEMM tiling: `'auto'` tiles once a prompt fills the 64-row tiles, `'always'`/`'never'` force it. Default `'auto'`. */
|
|
37
|
+
prefillTiling?: 'auto' | 'always' | 'never';
|
|
38
|
+
/** Max KV-cache length (prompt + generated positions). Caps VRAM (~`maxSeqLen` x 224 KB). Default `2048`. */
|
|
39
|
+
maxSeqLen?: number;
|
|
40
|
+
/** Called as the model loads. */
|
|
41
|
+
onProgress?: (progress: LoadProgress) => void;
|
|
42
|
+
/** Called if the GPU device is lost after creation (driver reset, OS reclaim, tab backgrounding
|
|
43
|
+
* on some platforms). The engine is unusable afterward; create a new one to recover. Not called
|
|
44
|
+
* for the intentional loss caused by {@link Engine.dispose}. */
|
|
45
|
+
onDeviceLost?: (info: DeviceLostInfo) => void;
|
|
46
|
+
}
|
|
47
|
+
/** Why the GPU device went away. Mirrors GPUDeviceLostInfo without requiring @webgpu/types. */
|
|
48
|
+
interface DeviceLostInfo {
|
|
49
|
+
/** 'destroyed' when {@link Engine.dispose} caused it, otherwise the platform reason ('unknown', ...). */
|
|
50
|
+
reason: string;
|
|
51
|
+
message: string;
|
|
52
|
+
}
|
|
53
|
+
/** Options for a single {@link Engine.generate} call. Set `temperature` to a value other than 0 or 1
|
|
54
|
+
* to sample; otherwise decoding is greedy (argmax). Sampling matches transformers.js v4.2.0 exactly
|
|
55
|
+
* (repetition_penalty, no_repeat_ngram, temperature, top_k, multinomial via a Mersenne-Twister RNG). */
|
|
56
|
+
interface GenerateOptions {
|
|
57
|
+
/** Maximum number of new tokens to generate. Default `256`. */
|
|
58
|
+
maxTokens?: number;
|
|
59
|
+
/** Reuse the KV cache from the previous turn: treat the passed token ids as the DELTA to append to
|
|
60
|
+
* the cached conversation (not a full prompt), prefilling only those tokens. Requires a prior
|
|
61
|
+
* generate on this engine (else it falls back to a full prefill). Default `false` (reset + full prefill). */
|
|
62
|
+
reuseCache?: boolean;
|
|
63
|
+
/** Token ids that end generation when produced (e.g. EOS). The stop token is not emitted. */
|
|
64
|
+
stopTokens?: number[];
|
|
65
|
+
/** Called with each generated token id as it is produced (per-token when sampling). */
|
|
66
|
+
onToken?: (tokenId: number) => void;
|
|
67
|
+
/** Aborts generation when signaled (checked at each step). */
|
|
68
|
+
signal?: AbortSignal;
|
|
69
|
+
/** Softmax temperature. A value other than 0 or 1 enables sampling; 0 or 1 (or unset) is greedy. */
|
|
70
|
+
temperature?: number;
|
|
71
|
+
/** Top-k sampling cutoff (candidate count). Default `20` when sampling. */
|
|
72
|
+
topK?: number;
|
|
73
|
+
/** Top-p (nucleus) cutoff. Accepted for API compatibility but not applied (a no-op, matching transformers.js v4.2.0). */
|
|
74
|
+
topP?: number;
|
|
75
|
+
/** Repetition penalty over the deduped prompt+generated id set (`logit<0 ? *p : /p`). Default `1` (off). */
|
|
76
|
+
repetitionPenalty?: number;
|
|
77
|
+
/** Block any n-gram of this size from repeating. Default `0` (off). */
|
|
78
|
+
noRepeatNgramSize?: number;
|
|
79
|
+
/** Seed for the sampler RNG. Omit to seed from entropy (non-deterministic, like production). */
|
|
80
|
+
seed?: number;
|
|
81
|
+
/** EXPERIMENTAL. Prompt-lookup speculative decoding: draft the continuation from an n-gram
|
|
82
|
+
* match in the sequence so far and verify every draft in ONE batched forward. Output is
|
|
83
|
+
* identical to normal decoding, greedy AND sampled (each emitted token still comes from its
|
|
84
|
+
* true penalized distribution, and the RNG advances one draw per emitted token, in order).
|
|
85
|
+
* INCOMPATIBLE with `noRepeatNgramSize`: a prompt-lookup draft is the continuation of a
|
|
86
|
+
* repeated n-gram, which is exactly what the ngram ban forbids, so acceptance is ~zero when
|
|
87
|
+
* both are on (measured 0/320). Use with greedy decoding or ngram-ban-free sampling. No
|
|
88
|
+
* draft model, no extra VRAM. `true` = `{ ngramSize: 3, maxDraft: 8 }`. Default `false`. */
|
|
89
|
+
promptLookup?: boolean | {
|
|
90
|
+
ngramSize?: number;
|
|
91
|
+
maxDraft?: number;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/** Result of a {@link Engine.generate} call. */
|
|
95
|
+
interface GenerateResult {
|
|
96
|
+
/** Generated token ids (excludes the prompt). */
|
|
97
|
+
tokens: number[];
|
|
98
|
+
/** Time to first token (prefill of the prompt), in milliseconds. */
|
|
99
|
+
prefillMs: number;
|
|
100
|
+
/** Decode time for the remaining tokens, in milliseconds. */
|
|
101
|
+
decodeMs: number;
|
|
102
|
+
/** Decode throughput (tokens / second), excluding prefill. */
|
|
103
|
+
tokensPerSecond: number;
|
|
104
|
+
/** Per-token decode timing breakdown, in milliseconds. */
|
|
105
|
+
timing: {
|
|
106
|
+
recordMs: number;
|
|
107
|
+
gpuMs: number;
|
|
108
|
+
readbackMs: number;
|
|
109
|
+
};
|
|
110
|
+
/** Present when prompt-lookup decoding ran: verify steps taken, tokens drafted, drafts accepted. */
|
|
111
|
+
speculation?: {
|
|
112
|
+
steps: number;
|
|
113
|
+
drafted: number;
|
|
114
|
+
accepted: number;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/** Diagnostic result of {@link Engine.forward}: hidden states + logits for a single forward pass. */
|
|
118
|
+
interface ForwardResult {
|
|
119
|
+
embed: Float32Array;
|
|
120
|
+
layer0: Float32Array;
|
|
121
|
+
finalnorm: Float32Array;
|
|
122
|
+
logits: Float32Array;
|
|
123
|
+
vocab: number;
|
|
124
|
+
sequenceLength: number;
|
|
125
|
+
}
|
|
126
|
+
/** What the engine detected about the host GPU and which code path it selected. */
|
|
127
|
+
interface EngineCapabilities {
|
|
128
|
+
/** Whether the fast subgroup path is in use (false = the workgroup-reduction fallback). */
|
|
129
|
+
useSubgroups: boolean;
|
|
130
|
+
/** Subgroup width when the subgroup path is active. */
|
|
131
|
+
subgroupSize: number;
|
|
132
|
+
/** Adapter identification, when the browser exposes it. */
|
|
133
|
+
adapter: {
|
|
134
|
+
vendor?: string;
|
|
135
|
+
architecture?: string;
|
|
136
|
+
device?: string;
|
|
137
|
+
description?: string;
|
|
138
|
+
};
|
|
139
|
+
/** Relevant adapter limits the engine codes against. */
|
|
140
|
+
limits: {
|
|
141
|
+
maxStorageBufferBindingSize: number;
|
|
142
|
+
maxComputeWorkgroupStorageSize: number;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/** A loaded model ready to generate. Create one with {@link createEngine}. */
|
|
146
|
+
interface Engine {
|
|
147
|
+
/** Generate tokens from a prompt given as token ids. */
|
|
148
|
+
generate(promptTokenIds: number[], options?: GenerateOptions): Promise<GenerateResult>;
|
|
149
|
+
/** Prefill a prompt PREFIX into the KV cache without decoding, so a later
|
|
150
|
+
* `generate(delta, { reuseCache: true })` continues from it. Use to warm a static system prompt
|
|
151
|
+
* at load time so the first real turn is a cheap cache-append, not a full prefill. Resets any
|
|
152
|
+
* existing cache (the prefix becomes the whole history). Returns the prefill wall-time. */
|
|
153
|
+
prefill(promptTokenIds: number[]): Promise<{
|
|
154
|
+
prefillMs: number;
|
|
155
|
+
}>;
|
|
156
|
+
/** Run a single forward pass and return hidden states + logits (diagnostic / correctness checks). */
|
|
157
|
+
forward(tokenIds: number[]): Promise<ForwardResult>;
|
|
158
|
+
/** Clear the cross-turn KV cache and token history (start a fresh conversation). */
|
|
159
|
+
resetCache(): void;
|
|
160
|
+
/** Detected GPU capabilities and selected code path. */
|
|
161
|
+
readonly capabilities: EngineCapabilities;
|
|
162
|
+
/** Resolves when the GPU device is lost (including via {@link dispose}, with reason 'destroyed').
|
|
163
|
+
* After an unexpected loss the engine is dead; create a new one to recover. */
|
|
164
|
+
readonly lost: Promise<DeviceLostInfo>;
|
|
165
|
+
/** Release GPU resources. The engine is unusable afterward. */
|
|
166
|
+
dispose(): void;
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/engine.d.ts
|
|
170
|
+
/** Load a 1-bit model and return an {@link Engine}. Pass a model URL string for defaults. */
|
|
171
|
+
declare function createEngine(options: EngineOptions | string): Promise<Engine>;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/errors.d.ts
|
|
174
|
+
/** Thrown when WebGPU is unavailable: no `navigator.gpu` (unsupported browser, or a
|
|
175
|
+
* non-secure context) or no adapter could be acquired. Catch this to render a
|
|
176
|
+
* "your browser doesn't support WebGPU yet" fallback instead of crashing. */
|
|
177
|
+
declare class WebGPUUnavailableError extends Error {
|
|
178
|
+
readonly name = "WebGPUUnavailableError";
|
|
179
|
+
constructor(message: string);
|
|
180
|
+
}
|
|
181
|
+
/** Thrown when the GPU reports out-of-memory while the engine allocates weights or grows the
|
|
182
|
+
* KV cache. Without this check the allocation "succeeds" with invalid buffers and every later
|
|
183
|
+
* generate() returns garbage. Catch it to fall back (smaller maxSeqLen, or a no-LLM mode). */
|
|
184
|
+
declare class GpuOutOfMemoryError extends Error {
|
|
185
|
+
readonly name = "GpuOutOfMemoryError";
|
|
186
|
+
constructor(message: string);
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
export { type DeviceLostInfo, type Engine, type EngineCapabilities, type EngineOptions, type ForwardResult, type GenerateOptions, type GenerateResult, GpuOutOfMemoryError, type LoadProgress, WebGPUUnavailableError, createEngine };
|
|
190
|
+
//# sourceMappingURL=index.d.ts.map
|