@tryhamster/gerbil 1.1.0 → 1.1.1
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 +7 -7
- package/dist/cli.mjs.map +1 -1
- package/dist/frameworks/express.mjs +1 -1
- package/dist/frameworks/fastify.mjs +1 -1
- package/dist/frameworks/hono.mjs +1 -1
- package/dist/frameworks/next.mjs +1 -1
- package/dist/frameworks/trpc.mjs +1 -1
- package/dist/gerbil-Dy9Zhc_j.mjs +4 -0
- package/dist/{gerbil-DpiwMe0y.mjs → gerbil-ro5mEpFh.mjs} +2 -2
- package/dist/{gerbil-DpiwMe0y.mjs.map → gerbil-ro5mEpFh.mjs.map} +1 -1
- package/dist/gpu/index.mjs +2 -2
- package/dist/{gpu-CUOj5CaA.mjs → gpu-yxEq7qT1.mjs} +5 -5
- package/dist/{gpu-CUOj5CaA.mjs.map → gpu-yxEq7qT1.mjs.map} +1 -1
- package/dist/index-CKszv3lt.d.mts.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/integrations/ai-sdk.mjs +1 -1
- package/dist/integrations/langchain.mjs +1 -1
- package/dist/integrations/llamaindex.mjs +1 -1
- package/dist/integrations/mcp.mjs +4 -4
- package/dist/{mcp-Cb-4xYP6.mjs → mcp-B0eW-OKz.mjs} +3 -3
- package/dist/{mcp-Cb-4xYP6.mjs.map → mcp-B0eW-OKz.mjs.map} +1 -1
- package/dist/{moonshine-stt-aSSceh2Y.mjs → moonshine-stt-Cqdf1myz.mjs} +18 -10
- package/dist/moonshine-stt-Cqdf1myz.mjs.map +1 -0
- package/dist/moonshine-stt-TYYYaPo3.mjs +4 -0
- package/dist/{one-liner-DYAlbxBF.mjs → one-liner-b0vlnTgd.mjs} +2 -2
- package/dist/{one-liner-DYAlbxBF.mjs.map → one-liner-b0vlnTgd.mjs.map} +1 -1
- package/dist/{repl-BtDu0j1n.mjs → repl-DUyb-ut6.mjs} +3 -3
- package/dist/skills/index.mjs +3 -3
- package/dist/{skills-DVttBRMZ.mjs → skills-DCvZK8kL.mjs} +2 -2
- package/dist/{skills-DVttBRMZ.mjs.map → skills-DCvZK8kL.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/gerbil-BlacEbZh.mjs +0 -4
- package/dist/moonshine-stt-aSSceh2Y.mjs.map +0 -1
- package/dist/moonshine-stt-qS4hohbf.mjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as resolveDefaultRepo } from "./defaults-9komdrbY.mjs";
|
|
2
2
|
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 { _ as verifyGPU, c as KERNEL_REGISTRY, d as createBindGroup, f as createStorageBuffer, g as initGPU, h as getOrCreatePipeline, i as loadModel, l as MATMUL_BIAS_F16C_SPEC, m as destroyBuffers, o as remapPrunedToken, p as createUniformBuffer, r as loadKaniTTS, s as Executor, u as clearPipelineCache } from "./moonshine-stt-
|
|
3
|
+
import { _ as verifyGPU, c as KERNEL_REGISTRY, d as createBindGroup, f as createStorageBuffer, g as initGPU, h as getOrCreatePipeline, i as loadModel, l as MATMUL_BIAS_F16C_SPEC, m as destroyBuffers, o as remapPrunedToken, p as createUniformBuffer, r as loadKaniTTS, s as Executor, u as clearPipelineCache } from "./moonshine-stt-Cqdf1myz.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/gpu/architectures/gemma4_vision.ts
|
|
6
6
|
/**
|
|
@@ -2845,8 +2845,8 @@ var WebGPUEngine = class WebGPUEngine {
|
|
|
2845
2845
|
let mmLogicalPos = inputIds.length;
|
|
2846
2846
|
const keepPlan = this.config.vocabKeepPlan;
|
|
2847
2847
|
const remapTok = keepPlan ? (i) => remapPrunedToken(i, keepPlan) : (i) => i;
|
|
2848
|
-
if (isGreedy && !this.executor.needsMultiEncoder && !mmDecode
|
|
2849
|
-
const firstToken = sampleToken(logits, sampling, [...inputIds, ...generatedIds]);
|
|
2848
|
+
if (isGreedy && !this.executor.needsMultiEncoder && !mmDecode) {
|
|
2849
|
+
const firstToken = remapTok(sampleToken(logits, sampling, [...inputIds, ...generatedIds]));
|
|
2850
2850
|
if (!consumeToken(firstToken)) {
|
|
2851
2851
|
const depth = Executor.PIPELINE_DEPTH;
|
|
2852
2852
|
const stepsNeeded = Math.min(maxTokens - 1, this.executor.decodeCapacityRemaining());
|
|
@@ -2867,7 +2867,7 @@ var WebGPUEngine = class WebGPUEngine {
|
|
|
2867
2867
|
if (step === 0 || !isGreedy) nextToken = remapTok(sampleToken(logits, sampling, [...inputIds, ...generatedIds]));
|
|
2868
2868
|
else {
|
|
2869
2869
|
if (mmDecode) this.writeMRoPEDecodeStep(this.executor.currentSeqPos, mmLogicalPos);
|
|
2870
|
-
nextToken =
|
|
2870
|
+
nextToken = await this.executor.forwardArgmax(new Uint32Array([generatedIds[generatedIds.length - 1]]));
|
|
2871
2871
|
mmLogicalPos++;
|
|
2872
2872
|
}
|
|
2873
2873
|
if (consumeToken(nextToken)) break;
|
|
@@ -3799,4 +3799,4 @@ var WebGPUEngine = class WebGPUEngine {
|
|
|
3799
3799
|
|
|
3800
3800
|
//#endregion
|
|
3801
3801
|
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 };
|
|
3802
|
-
//# sourceMappingURL=gpu-
|
|
3802
|
+
//# sourceMappingURL=gpu-yxEq7qT1.mjs.map
|