bitgpu 0.18.0 → 0.19.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 +20 -2
- package/dist/chat.d.ts +39 -8
- package/dist/chat.js +34 -10
- package/dist/chat.js.map +1 -1
- package/dist/gguf.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +92 -13
- package/dist/index.js.map +1 -1
- package/dist/{types-CSpyQjyc.d.ts → types-CBW7T_3s.d.ts} +8 -1
- package/package.json +2 -1
|
@@ -246,6 +246,13 @@ interface GenerateOptions {
|
|
|
246
246
|
* repeat). Default none. `bitgpu/chat` fills this with the tokenizer's newline/punctuation
|
|
247
247
|
* tokens when DRY is enabled. */
|
|
248
248
|
dryBreakers?: number[];
|
|
249
|
+
/** Top-n-sigma sampling cutoff (arXiv 2411.07641): keep candidates whose logit is within
|
|
250
|
+
* `topNSigma` standard deviations of the max, with sigma computed on the GPU over the FULL
|
|
251
|
+
* penalized logit vector (not a top-K estimate). Robust for low-precision models: the
|
|
252
|
+
* threshold adapts to how peaked the distribution actually is. Typical value 1.0-1.5; default
|
|
253
|
+
* `0` (off, bit-identical draw). Only affects sampling; not combinable with `promptLookup`
|
|
254
|
+
* (with `'auto'`, lookup simply stays off). */
|
|
255
|
+
topNSigma?: number;
|
|
249
256
|
/** Block any n-gram of this size from repeating. Default `0` (off). Applied under greedy decoding
|
|
250
257
|
* too, matching transformers.js. */
|
|
251
258
|
noRepeatNgramSize?: number;
|
|
@@ -454,4 +461,4 @@ interface Engine {
|
|
|
454
461
|
}
|
|
455
462
|
//#endregion
|
|
456
463
|
export { ForwardResult as a, KvSnapshot as c, ManifestArch as d, ManifestRef as f, EngineOptions as i, LoadProgress as l, TokenLogprobs as m, Engine as n, GenerateOptions as o, ManifestTensor as p, EngineCapabilities as r, GenerateResult as s, DeviceLostInfo as t, Manifest as u };
|
|
457
|
-
//# sourceMappingURL=types-
|
|
464
|
+
//# sourceMappingURL=types-CBW7T_3s.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitgpu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Fast WebGPU runtime for 1-bit (binary-weight) LLMs in the browser. Bit-exact, zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"test:gguf": "tsx scripts/verify-gguf.ts",
|
|
59
59
|
"test:kernels": "python3 tools/gen-kernel-cases.py && node scripts/verify-kernels.mjs",
|
|
60
60
|
"test:hybrid": "python3 tools/gen-synth-qwen35.py && npm run build && node scripts/verify-hybrid.mjs",
|
|
61
|
+
"test:27b": "npm run build && node scripts/verify-27b-live.mjs",
|
|
61
62
|
"profile": "node scripts/profile.mjs",
|
|
62
63
|
"bench": "node scripts/benchmark.mjs"
|
|
63
64
|
},
|