@tryhamster/gerbil 1.0.3 → 1.0.5
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/cli.mjs +10 -10
- package/dist/cli.mjs.map +1 -1
- package/dist/frameworks/express.d.mts +1 -1
- package/dist/frameworks/express.mjs +1 -1
- package/dist/frameworks/fastify.d.mts +1 -1
- package/dist/frameworks/fastify.mjs +1 -1
- package/dist/frameworks/hono.d.mts +1 -1
- package/dist/frameworks/hono.mjs +1 -1
- package/dist/frameworks/next.d.mts +3 -3
- package/dist/frameworks/next.mjs +1 -1
- package/dist/frameworks/react.d.mts +1 -1
- package/dist/frameworks/trpc.d.mts +1 -1
- package/dist/frameworks/trpc.mjs +1 -1
- package/dist/gerbil-BgppGzKa.mjs +4 -0
- package/dist/{gerbil-D4eIu8hx.mjs → gerbil-CZYYq4Sq.mjs} +4 -4
- package/dist/{gerbil-D4eIu8hx.mjs.map → gerbil-CZYYq4Sq.mjs.map} +1 -1
- package/dist/{gerbil-BetB5xb0.d.mts → gerbil-CvNqpVg0.d.mts} +3 -3
- package/dist/{gerbil-BetB5xb0.d.mts.map → gerbil-CvNqpVg0.d.mts.map} +1 -1
- package/dist/gpu/hooks.d.mts +2 -2
- package/dist/gpu/hooks.d.mts.map +1 -1
- package/dist/gpu/hooks.mjs +4 -5
- package/dist/gpu/hooks.mjs.map +1 -1
- package/dist/gpu/index.d.mts +1 -1
- package/dist/gpu/index.mjs +2 -3
- package/dist/{gpu-rziY7czu.mjs → gpu-Ch2VuLdN.mjs} +25 -4
- package/dist/gpu-Ch2VuLdN.mjs.map +1 -0
- package/dist/{index-Dgmb2kE3.d.mts → index-Dy_9rDd5.d.mts} +2 -2
- package/dist/{index-Dgmb2kE3.d.mts.map → index-Dy_9rDd5.d.mts.map} +1 -1
- package/dist/{index-DukkJRMj.d.mts → index-Nl40RdSs.d.mts} +1 -1
- package/dist/{index-DukkJRMj.d.mts.map → index-Nl40RdSs.d.mts.map} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/dist/{indexeddb-store-BWIMtxxH.mjs → indexeddb-store-BEylGAex.mjs} +2 -2
- package/dist/{indexeddb-store-BWIMtxxH.mjs.map → indexeddb-store-BEylGAex.mjs.map} +1 -1
- package/dist/indexeddb-store-ClSHQxwz.mjs +4 -0
- package/dist/integrations/ai-sdk.d.mts +1 -1
- package/dist/integrations/ai-sdk.mjs +1 -1
- package/dist/integrations/langchain.d.mts +1 -1
- package/dist/integrations/langchain.mjs +1 -1
- package/dist/integrations/llamaindex.d.mts +1 -1
- package/dist/integrations/llamaindex.mjs +1 -1
- package/dist/integrations/mcp-client.mjs +1 -1
- package/dist/integrations/mcp.d.mts +3 -3
- package/dist/integrations/mcp.mjs +4 -4
- package/dist/{mcp-DujeDKfA.mjs → mcp-DUgk28Kp.mjs} +3 -3
- package/dist/{mcp-DujeDKfA.mjs.map → mcp-DUgk28Kp.mjs.map} +1 -1
- package/dist/memory/index.d.mts +2 -2
- package/dist/memory/index.mjs +4 -4
- package/dist/memory-CGRo6zY5.mjs +4 -0
- package/dist/{memory-DVN0MnIG.mjs → memory-Deo99oKh.mjs} +2 -2
- package/dist/{memory-DVN0MnIG.mjs.map → memory-Deo99oKh.mjs.map} +1 -1
- package/dist/{memory-Dj0J1v88.mjs → memory-wgo2ZK3M.mjs} +2 -2
- package/dist/{memory-Dj0J1v88.mjs.map → memory-wgo2ZK3M.mjs.map} +1 -1
- package/dist/moonshine-stt-DFIP4tIb.mjs +4 -0
- package/dist/{moonshine-stt-BdccCmYH.mjs → moonshine-stt-DR0-JbVW.mjs} +2 -6
- package/dist/{moonshine-stt-BdccCmYH.mjs.map → moonshine-stt-DR0-JbVW.mjs.map} +1 -1
- package/dist/{one-liner-D8cM1Mg2.mjs → one-liner-sTDG9Hum.mjs} +2 -2
- package/dist/{one-liner-D8cM1Mg2.mjs.map → one-liner-sTDG9Hum.mjs.map} +1 -1
- package/dist/repl-njlFQs4-.mjs +9 -0
- package/dist/skills/index.d.mts +3 -3
- package/dist/skills/index.mjs +3 -3
- package/dist/{skills-FEBy8-pu.mjs → skills-CEUuOUlm.mjs} +2 -2
- package/dist/{skills-FEBy8-pu.mjs.map → skills-CEUuOUlm.mjs.map} +1 -1
- package/dist/{tools-DQ1mPUw5.mjs → tools-DbbNCJ5y.mjs} +1 -1
- package/dist/{tools-DQ1mPUw5.mjs.map → tools-DbbNCJ5y.mjs.map} +1 -1
- package/dist/{types-LlyYILII.d.mts → types-Bxwe_uS7.d.mts} +1 -1
- package/dist/{types-LlyYILII.d.mts.map → types-Bxwe_uS7.d.mts.map} +1 -1
- package/dist/{types-DQBe2lFo.d.mts → types-D7kn-0i2.d.mts} +1 -1
- package/dist/{types-DQBe2lFo.d.mts.map → types-D7kn-0i2.d.mts.map} +1 -1
- package/dist/{vector-B0panuy6.mjs → vector-C1U9vVVS.mjs} +1 -1
- package/dist/{vector-B0panuy6.mjs.map → vector-C1U9vVVS.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/defaults-9komdrbY.mjs +0 -24
- package/dist/defaults-9komdrbY.mjs.map +0 -1
- package/dist/gerbil-Dk6sTA7P.mjs +0 -4
- package/dist/gpu-rziY7czu.mjs.map +0 -1
- package/dist/indexeddb-store-ClH12Xnl.mjs +0 -4
- package/dist/memory-D1P7Tmda.mjs +0 -4
- package/dist/moonshine-stt-CBX849nI.mjs +0 -4
- package/dist/repl-DuACpxEj.mjs +0 -9
- /package/dist/{auto-update-BVaLXcDE.mjs → auto-update-DNbr3GLz.mjs} +0 -0
- /package/dist/{microphone-Bqmoz9_K.mjs → microphone-sj_bnRm-.mjs} +0 -0
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import { n as resolveDefaultRepo } from "./defaults-9komdrbY.mjs";
|
|
2
1
|
import { C as parseKaniConfig, E as GEMMA4_VIS_KEYS, T as DTYPE_BYTES, _ as generateNanoCodecDecoderGraph, b as kaniLayerAlpha, d as KANI_START_OF_HUMAN, f as audioTokensToCodes, g as generateKaniTtsGraph, m as computeKaniPositions, p as buildKaniLayerCosSin, u as KANI_END_OF_HUMAN, v as kaniAttentionLayerIndices, w as CANONICAL_KEYS, x as kaniSinTensor, y as kaniCosTensor } from "./architectures-C1I5V3Dt.mjs";
|
|
3
|
-
import { c as MATMUL_BIAS_F16C_SPEC, d as createStorageBuffer, f as createUniformBuffer, g as verifyGPU, h as initGPU, i as loadModel, l as clearPipelineCache, m as getOrCreatePipeline, o as Executor, p as destroyBuffers, r as loadKaniTTS, s as KERNEL_REGISTRY, u as createBindGroup } from "./moonshine-stt-
|
|
2
|
+
import { c as MATMUL_BIAS_F16C_SPEC, d as createStorageBuffer, f as createUniformBuffer, g as verifyGPU, h as initGPU, i as loadModel, l as clearPipelineCache, m as getOrCreatePipeline, o as Executor, p as destroyBuffers, r as loadKaniTTS, s as KERNEL_REGISTRY, u as createBindGroup } from "./moonshine-stt-DR0-JbVW.mjs";
|
|
4
3
|
|
|
4
|
+
//#region src/gpu/defaults.ts
|
|
5
|
+
/**
|
|
6
|
+
* Default model per capability. Kept in its own tiny module (no heavy imports)
|
|
7
|
+
* so the React hooks can resolve defaults without statically pulling in the GPU
|
|
8
|
+
* engine — they import the engine dynamically to stay light.
|
|
9
|
+
*/
|
|
10
|
+
const DEFAULT_MODELS = {
|
|
11
|
+
text: "mlx-community/Qwen3.5-0.8B-4bit",
|
|
12
|
+
vision: "mlx-community/Qwen3.5-0.8B-4bit",
|
|
13
|
+
embedding: "mlx-community/embeddinggemma-300m-4bit",
|
|
14
|
+
tts: "nineninesix/kani-tts-2-en",
|
|
15
|
+
stt: "UsefulSensors/moonshine-base"
|
|
16
|
+
};
|
|
17
|
+
/** Resolve the model repo for a set of options, falling back to the defaults. */
|
|
18
|
+
function resolveDefaultRepo(opts) {
|
|
19
|
+
if (opts.repo) return opts.repo;
|
|
20
|
+
if (opts.embedding) return DEFAULT_MODELS.embedding;
|
|
21
|
+
if (opts.enableVision) return DEFAULT_MODELS.vision;
|
|
22
|
+
return DEFAULT_MODELS.text;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
5
26
|
//#region src/gpu/architectures/gemma4_vision.ts
|
|
6
27
|
/**
|
|
7
28
|
* Resolve the Gemma 4 vision dims from a raw HF config. Accepts either the
|
|
@@ -3786,5 +3807,5 @@ var WebGPUEngine = class WebGPUEngine {
|
|
|
3786
3807
|
};
|
|
3787
3808
|
|
|
3788
3809
|
//#endregion
|
|
3789
|
-
export { generateGemma4VisionGraph as C, dequantizeMLXProjection as S, resolveGemma4VisionInfo as T, smartResize as _, buildGemma4PosEmbeds as a, generateQwen3_5VisionGraph as b, buildMRoPECosSin as c, buildPositionIds as d, buildRotaryCosSin as f, preprocessImageGemma4 as g, preprocessImage as h, buildGemma4PoolMatrix as i, buildMRoPEPositionIds as l, mropeFreqDims as m, GEMMA4_IMAGE_PROCESSOR as n, buildGemma4RotaryCosSin as o, buildVisionPositionTensors as p, QWEN3_5_IMAGE_PROCESSOR as r, buildGemma4VisionPositionTensors as s, WebGPUEngine as t, buildPosEmbeds as u, VisionExecutor as v, patchGemma4VisionClips as w, dequantizeGemma4VisionProjection as x, KaniTTS as y };
|
|
3790
|
-
//# sourceMappingURL=gpu-
|
|
3810
|
+
export { generateGemma4VisionGraph as C, resolveDefaultRepo as D, DEFAULT_MODELS as E, dequantizeMLXProjection as S, resolveGemma4VisionInfo as T, smartResize as _, buildGemma4PosEmbeds as a, generateQwen3_5VisionGraph as b, buildMRoPECosSin as c, buildPositionIds as d, buildRotaryCosSin as f, preprocessImageGemma4 as g, preprocessImage as h, buildGemma4PoolMatrix as i, buildMRoPEPositionIds as l, mropeFreqDims as m, GEMMA4_IMAGE_PROCESSOR as n, buildGemma4RotaryCosSin as o, buildVisionPositionTensors as p, QWEN3_5_IMAGE_PROCESSOR as r, buildGemma4VisionPositionTensors as s, WebGPUEngine as t, buildPosEmbeds as u, VisionExecutor as v, patchGemma4VisionClips as w, dequantizeGemma4VisionProjection as x, KaniTTS as y };
|
|
3811
|
+
//# sourceMappingURL=gpu-Ch2VuLdN.mjs.map
|