@genai-fi/nanogpt 0.7.3 → 0.8.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/Generator.d.ts +25 -2
- package/dist/Generator.js +152 -49
- package/dist/{RealDiv-Dy0p8Bvo.js → RealDiv-D_q39E3A.js} +13 -13
- package/dist/{Reshape-DvudQDvJ.js → Reshape-41YpQqEo.js} +1 -1
- package/dist/{Reshape-DH5srBP0.js → Reshape-Bh_jzKzV.js} +5 -5
- package/dist/TeachableLLM.d.ts +6 -6
- package/dist/TeachableLLM.js +33 -31
- package/dist/Trainer.d.ts +13 -2
- package/dist/Trainer.js +21 -12
- package/dist/{axis_util-BzbKo31C.js → axis_util-Did9235A.js} +3 -3
- package/dist/backend.js +2 -2
- package/dist/{backend_util-TE7aTPhZ.js → backend_util-yC3YH1jo.js} +58 -58
- package/dist/{broadcast_to-CdbwV-Dj.js → broadcast_to-CUvOdOT5.js} +2 -2
- package/dist/checks/appendCache.d.ts +1 -0
- package/dist/checks/appendCache.js +22 -0
- package/dist/checks/attentionMask.d.ts +1 -0
- package/dist/checks/attentionMask.js +37 -0
- package/dist/checks/check.d.ts +9 -0
- package/dist/checks/check.js +20 -0
- package/dist/checks/gelu.d.ts +1 -0
- package/dist/checks/gelu.js +18 -0
- package/dist/checks/index.d.ts +19 -0
- package/dist/checks/index.js +21 -0
- package/dist/checks/normRMS.d.ts +1 -0
- package/dist/checks/normRMS.js +16 -0
- package/dist/checks/normRMSGrad.d.ts +1 -0
- package/dist/checks/normRMSGrad.js +12 -0
- package/dist/checks/qkv.d.ts +1 -0
- package/dist/checks/qkv.js +25 -0
- package/dist/checks/rope.d.ts +1 -0
- package/dist/checks/rope.js +21 -0
- package/dist/{concat-CsxrgovM.js → concat-pHiVqR3L.js} +1 -1
- package/dist/{dataset-CtdBYwjo.js → dataset-DPPl-iLT.js} +9 -9
- package/dist/{dropout-DYs5QFGQ.js → dropout-CcKSfOYE.js} +18 -18
- package/dist/exports_initializers-DKk7-bsx.js +16 -0
- package/dist/{gather-CMMy2KEG.js → gather-CPg6ZlQA.js} +1 -1
- package/dist/{gelu-C-dPj6Ku.js → gelu-BkcmEEyD.js} +1 -1
- package/dist/{gpgpu_math-DGNLNL4I.js → gpgpu_math-D_ODOLix.js} +26 -26
- package/dist/{index-BoWRt-10.js → index-DdmHGZjq.js} +659 -650
- package/dist/{index-CLthM0TO.js → index-evZ57wr4.js} +185 -185
- package/dist/{kernel_funcs_utils-BYKWV8Aa.js → kernel_funcs_utils-CDfFpUab.js} +21 -21
- package/dist/layers/BaseLayer.d.ts +8 -13
- package/dist/layers/BaseLayer.js +25 -13
- package/dist/layers/CausalSelfAttention.d.ts +3 -2
- package/dist/layers/CausalSelfAttention.js +28 -28
- package/dist/layers/MLP.d.ts +3 -2
- package/dist/layers/MLP.js +16 -20
- package/dist/layers/PositionEmbedding.d.ts +9 -0
- package/dist/layers/PositionEmbedding.js +45 -0
- package/dist/layers/RMSNorm.d.ts +3 -2
- package/dist/layers/RMSNorm.js +6 -6
- package/dist/layers/RoPECache.d.ts +1 -1
- package/dist/layers/RoPECache.js +4 -4
- package/dist/layers/TiedEmbedding.d.ts +3 -2
- package/dist/layers/TiedEmbedding.js +29 -7
- package/dist/layers/TransformerBlock.d.ts +3 -2
- package/dist/layers/TransformerBlock.js +1 -1
- package/dist/loader/load.d.ts +2 -2
- package/dist/loader/loadHF.d.ts +2 -2
- package/dist/loader/loadTransformers.d.ts +4 -2
- package/dist/loader/loadTransformers.js +10 -9
- package/dist/loader/newZipLoad.d.ts +2 -2
- package/dist/loader/oldZipLoad.d.ts +2 -2
- package/dist/loader/oldZipLoad.js +44 -51
- package/dist/loader/save.d.ts +8 -0
- package/dist/loader/save.js +62 -0
- package/dist/{log_sum_exp-DbjkV734.js → log_sum_exp-C8yFJfZz.js} +45 -24
- package/dist/main.d.ts +6 -4
- package/dist/main.js +24 -18
- package/dist/{mat_mul-8m8pfdcx.js → mat_mul-Dpy2mMRu.js} +1 -1
- package/dist/mod-CbibJi3D.js +27 -0
- package/dist/models/NanoGPTV1.d.ts +15 -0
- package/dist/models/NanoGPTV1.js +71 -0
- package/dist/{config.d.ts → models/config.d.ts} +1 -0
- package/dist/{config.js → models/config.js} +1 -0
- package/dist/models/factory.d.ts +3 -0
- package/dist/models/factory.js +14 -0
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +70 -0
- package/dist/{mulmat_packed_gpu-VSekgsNv.js → mulmat_packed_gpu-q_Gmwyld.js} +1 -1
- package/dist/{ones-Dj0SDhHf.js → ones-BAqVh-eA.js} +2 -2
- package/dist/ops/adamAdjust.js +1 -1
- package/dist/ops/adamMoments.js +1 -1
- package/dist/ops/appendCache.js +3 -3
- package/dist/ops/attentionMask.js +1 -1
- package/dist/ops/cpu/adamAdjust.js +9 -9
- package/dist/ops/cpu/adamMoments.js +2 -2
- package/dist/ops/cpu/appendCache.js +2 -2
- package/dist/ops/cpu/attentionMask.js +5 -5
- package/dist/ops/cpu/fusedSoftmax.js +2 -2
- package/dist/ops/cpu/gatherSub.js +5 -5
- package/dist/ops/cpu/gelu.js +1 -1
- package/dist/ops/cpu/matMulGelu.js +2 -2
- package/dist/ops/cpu/matMulMul.js +1 -1
- package/dist/ops/cpu/mulDropout.js +1 -1
- package/dist/ops/cpu/normRMS.js +1 -1
- package/dist/ops/cpu/qkv.js +3 -3
- package/dist/ops/cpu/rope.js +5 -5
- package/dist/ops/cpu/scatterSub.js +7 -7
- package/dist/ops/fusedSoftmax.js +1 -1
- package/dist/ops/gatherSub.js +1 -1
- package/dist/ops/gelu.js +2 -2
- package/dist/ops/grads/attentionMask.js +1 -1
- package/dist/ops/grads/fusedSoftmax.js +2 -2
- package/dist/ops/grads/gelu.js +2 -2
- package/dist/ops/grads/matMulGelu.js +1 -1
- package/dist/ops/grads/normRMS.js +1 -1
- package/dist/ops/grads/qkv.js +1 -1
- package/dist/ops/grads/rope.js +1 -1
- package/dist/ops/matMulGelu.js +1 -1
- package/dist/ops/matMulMul.js +1 -1
- package/dist/ops/mulDrop.js +1 -1
- package/dist/ops/normRMS.js +1 -1
- package/dist/ops/qkv.js +1 -1
- package/dist/ops/rope.js +4 -4
- package/dist/ops/scatterSub.js +1 -1
- package/dist/ops/webgl/adamAdjust.js +2 -2
- package/dist/ops/webgl/adamMoments.js +1 -1
- package/dist/ops/webgl/appendCache.js +1 -1
- package/dist/ops/webgl/attentionMask.js +1 -1
- package/dist/ops/webgl/fusedSoftmax.js +4 -4
- package/dist/ops/webgl/gatherSub.js +1 -1
- package/dist/ops/webgl/gelu.js +2 -2
- package/dist/ops/webgl/log.js +3 -3
- package/dist/ops/webgl/matMulGelu.js +10 -10
- package/dist/ops/webgl/matMulMul.js +1 -1
- package/dist/ops/webgl/mulDropout.js +1 -1
- package/dist/ops/webgl/normRMS.js +2 -2
- package/dist/ops/webgl/qkv.js +1 -1
- package/dist/ops/webgl/rope.js +1 -1
- package/dist/ops/webgl/scatterSub.js +1 -1
- package/dist/ops/webgpu/adamAdjust.js +3 -3
- package/dist/ops/webgpu/adamMoments.js +3 -3
- package/dist/ops/webgpu/appendCache.js +3 -3
- package/dist/ops/webgpu/attentionMask.js +3 -3
- package/dist/ops/webgpu/gatherSub.js +3 -3
- package/dist/ops/webgpu/gelu.js +3 -3
- package/dist/ops/webgpu/normRMS.js +2 -2
- package/dist/ops/webgpu/normRMSGrad.js +5 -5
- package/dist/ops/webgpu/qkv.js +3 -3
- package/dist/ops/webgpu/rope.js +3 -3
- package/dist/ops/webgpu/scatterSub.js +3 -3
- package/dist/ops/webgpu/utils/reductions.js +4 -4
- package/dist/ops-542ai2vG.js +1525 -0
- package/dist/{random_width-sZORGo5k.js → random_width-DKGeiFuR.js} +1471 -1538
- package/dist/{range-CRuAh-gd.js → range-BcUvLuf5.js} +1 -1
- package/dist/{reciprocal-BvGAyKyu.js → reciprocal-DhDWSKiD.js} +1 -1
- package/dist/{register_all_kernels-BwDSRN-f.js → register_all_kernels-Do9VvZmo.js} +2488 -2534
- package/dist/{max-Ddnnb5xe.js → relu-B1AXs7p5.js} +6 -6
- package/dist/{reshape-CdBq1WJ6.js → reshape-WeJkT3ja.js} +1 -1
- package/dist/{scatter_nd_util-DUstGbU1.js → scatter_nd_util-B7yDhiQr.js} +1 -1
- package/dist/{selu_util-BJEXVvjX.js → selu_util-BgUO9gHY.js} +125 -146
- package/dist/{shared-wS99K7_n.js → shared-CZiWmQCI.js} +1 -1
- package/dist/{shared-B8ztnyEk.js → shared-V6D_md-c.js} +72 -72
- package/dist/{sin-BeA3tsEd.js → sin-CPxad7Am.js} +1 -1
- package/dist/{slice-BiOsknYS.js → slice-B7jXtPnp.js} +1 -1
- package/dist/{softmax-Bv_6lyMX.js → softmax-BfsyI4As.js} +1 -1
- package/dist/{split-B-dikLRw.js → split-BPxr8_8m.js} +1 -1
- package/dist/{stack-B17UN2nn.js → stack-BNwLzE43.js} +1 -1
- package/dist/{sum-66ew2byf.js → sum-ByFINZgi.js} +3 -3
- package/dist/{tensor-JwS7ZYY6.js → tensor-DbqgIV9B.js} +1 -1
- package/dist/tensor1d-CtJq5BOv.js +27 -0
- package/dist/{tensor2d-wxPAnDQy.js → tensor2d-CObBWBkW.js} +1 -1
- package/dist/tensor3d-BOukqWwr.js +30 -0
- package/dist/tensor4d-DLtk7Nxh.js +30 -0
- package/dist/training/Adam.js +2 -2
- package/dist/training/AdamExt.js +1 -1
- package/dist/training/DatasetBuilder.js +2 -2
- package/dist/training/Evaluator.d.ts +2 -2
- package/dist/training/FullTrainer.d.ts +3 -3
- package/dist/training/FullTrainer.js +61 -69
- package/dist/training/Trainer.d.ts +15 -3
- package/dist/training/Trainer.js +39 -47
- package/dist/training/sparseCrossEntropy.js +12 -13
- package/dist/utilities/arrayClose.d.ts +1 -1
- package/dist/utilities/arrayClose.js +16 -7
- package/dist/utilities/dummy.d.ts +4 -4
- package/dist/utilities/dummy.js +13 -13
- package/dist/utilities/multinomialCPU.js +2 -2
- package/dist/utilities/parameters.d.ts +1 -1
- package/dist/utilities/performance.js +1 -1
- package/dist/utilities/profile.js +1 -1
- package/dist/utilities/safetensors.js +2 -2
- package/dist/utilities/weights.js +2 -2
- package/dist/{variable-BuddVFLa.js → variable-DPFOJyRG.js} +1 -1
- package/dist/{webgpu_program-PFzf1hAQ.js → webgpu_program-Dhk9R5aG.js} +1 -1
- package/dist/{webgpu_util-D____QpY.js → webgpu_util-BqGnZg8t.js} +27 -27
- package/dist/{zeros--BdLQ3oG.js → zeros-Dnwix0p4.js} +1 -1
- package/package.json +2 -3
- package/dist/NanoGPTModel.d.ts +0 -52
- package/dist/NanoGPTModel.js +0 -203
- package/dist/TiedEmbedding-BxOerUmB.js +0 -43
- package/dist/ops-BFGCx8Ri.js +0 -1202
- package/dist/utilities/generate.d.ts +0 -3
- package/dist/utilities/generate.js +0 -22
- package/dist/utilities/save.d.ts +0 -9
- package/dist/utilities/save.js +0 -61
package/dist/ops/webgl/gelu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as a } from "../../index-
|
|
2
|
-
import { u as s, C as x } from "../../kernel_funcs_utils-
|
|
1
|
+
import { f as a } from "../../index-DdmHGZjq.js";
|
|
2
|
+
import { u as s, C as x } from "../../kernel_funcs_utils-CDfFpUab.js";
|
|
3
3
|
const t = 0.7978845608028654, r = 0.044715, c = x + `
|
|
4
4
|
float x3 = x * x * x;
|
|
5
5
|
float inner = x + ${r} * x3;
|
package/dist/ops/webgl/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as e,
|
|
2
|
-
import { u as s, l as N } from "../../kernel_funcs_utils-
|
|
3
|
-
import { y as l } from "../../shared-
|
|
1
|
+
import { f as e, aj as r } from "../../index-DdmHGZjq.js";
|
|
2
|
+
import { u as s, l as N } from "../../kernel_funcs_utils-CDfFpUab.js";
|
|
3
|
+
import { y as l } from "../../shared-CZiWmQCI.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2020 Google LLC. All Rights Reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as _, t as R, e as C, j as A,
|
|
2
|
-
import { r as f } from "../../Reshape-
|
|
3
|
-
import { M as U } from "../../mulmat_packed_gpu-
|
|
4
|
-
import { m as E } from "../../mat_mul-
|
|
1
|
+
import { f as _, t as R, e as C, j as A, l as N, n as H, u as O } from "../../index-DdmHGZjq.js";
|
|
2
|
+
import { r as f } from "../../Reshape-Bh_jzKzV.js";
|
|
3
|
+
import { M as U } from "../../mulmat_packed_gpu-q_Gmwyld.js";
|
|
4
|
+
import { m as E } from "../../mat_mul-Dpy2mMRu.js";
|
|
5
5
|
const M = 0.7978845608028654, x = 0.044715, j = `
|
|
6
6
|
vec4 x3 = x * x * x;
|
|
7
7
|
vec4 inner = x + ${x} * x3;
|
|
@@ -34,7 +34,7 @@ function w({
|
|
|
34
34
|
i === p,
|
|
35
35
|
() => `Error in matMul: inner shapes (${i}) and (${p}) of Tensors with shapes ${e.shape} and ${t.shape} and transposeA=${s} and transposeB=${n} must match.`
|
|
36
36
|
);
|
|
37
|
-
const v = s ? [d, i, h] : [d, h, i], S = n ? [m, l, p] : [m, p, l],
|
|
37
|
+
const v = s ? [d, i, h] : [d, h, i], S = n ? [m, l, p] : [m, p, l], D = f({ inputs: { x: e }, backend: a, attrs: { shape: v } }), G = f({ inputs: { x: t }, backend: a, attrs: { shape: S } }), g = [D, G], y = Math.max(d, m), L = c, B = O(e.dtype, t.dtype), F = new U(
|
|
38
38
|
v,
|
|
39
39
|
S,
|
|
40
40
|
[y, h, l],
|
|
@@ -44,11 +44,11 @@ function w({
|
|
|
44
44
|
L,
|
|
45
45
|
!!o,
|
|
46
46
|
!1
|
|
47
|
-
),
|
|
48
|
-
o &&
|
|
49
|
-
const $ = a.runWebGLProgram(F,
|
|
50
|
-
|
|
51
|
-
for (const P of
|
|
47
|
+
), k = [D, G];
|
|
48
|
+
o && k.push(o);
|
|
49
|
+
const $ = a.runWebGLProgram(F, k, B), I = f({ inputs: { x: $ }, backend: a, attrs: { shape: b } });
|
|
50
|
+
g.push($);
|
|
51
|
+
for (const P of g)
|
|
52
52
|
a.disposeIntermediateTensorInfo(P);
|
|
53
53
|
return I;
|
|
54
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as p, e as G } from "../../index-
|
|
2
|
-
import { s as x } from "../../sum-
|
|
1
|
+
import { f as p, e as G } from "../../index-DdmHGZjq.js";
|
|
2
|
+
import { s as x } from "../../sum-ByFINZgi.js";
|
|
3
3
|
class y {
|
|
4
4
|
variableNames = ["x", "meanSquare", "gamma"];
|
|
5
5
|
outputShape;
|
package/dist/ops/webgl/qkv.js
CHANGED
package/dist/ops/webgl/rope.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as p } from "../../webgpu_program-
|
|
2
|
-
import { f as d, c as l } from "../../webgpu_util-
|
|
3
|
-
import { f,
|
|
1
|
+
import { g as p } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as d, c as l } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f, a4 as c } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class h {
|
|
5
5
|
variableNames = ["moments", "value"];
|
|
6
6
|
outputShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as m } from "../../webgpu_program-
|
|
2
|
-
import { f as u, c as p } from "../../webgpu_util-
|
|
3
|
-
import { f as d,
|
|
1
|
+
import { g as m } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as u, c as p } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f as d, a4 as c } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class h {
|
|
5
5
|
variableNames = ["moments", "gradient"];
|
|
6
6
|
outputShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as u } from "../../webgpu_program-
|
|
2
|
-
import { f as d, c as m } from "../../webgpu_util-
|
|
3
|
-
import { f as l,
|
|
1
|
+
import { g as u } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as d, c as m } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f as l, a4 as f } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class g {
|
|
5
5
|
variableNames = ["cache", "item"];
|
|
6
6
|
outputShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f,
|
|
2
|
-
import { g as k } from "../../webgpu_program-
|
|
3
|
-
import { f as l, c as v } from "../../webgpu_util-
|
|
1
|
+
import { f, a4 as m } from "../../index-DdmHGZjq.js";
|
|
2
|
+
import { g as k } from "../../webgpu_program-Dhk9R5aG.js";
|
|
3
|
+
import { f as l, c as v } from "../../webgpu_util-BqGnZg8t.js";
|
|
4
4
|
class g {
|
|
5
5
|
variableNames = ["q", "k"];
|
|
6
6
|
outputShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as u } from "../../webgpu_program-
|
|
2
|
-
import { f as h, c as p } from "../../webgpu_util-
|
|
3
|
-
import { f as c,
|
|
1
|
+
import { g as u } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as h, c as p } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f as c, a4 as r } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class l {
|
|
5
5
|
variableNames = ["labels", "logits", "values"];
|
|
6
6
|
outputShape;
|
package/dist/ops/webgpu/gelu.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as i } from "../../index-
|
|
2
|
-
import { g as o } from "../../webgpu_program-
|
|
3
|
-
import { f as s, c as p } from "../../webgpu_util-
|
|
1
|
+
import { f as i } from "../../index-DdmHGZjq.js";
|
|
2
|
+
import { g as o } from "../../webgpu_program-Dhk9R5aG.js";
|
|
3
|
+
import { f as s, c as p } from "../../webgpu_util-BqGnZg8t.js";
|
|
4
4
|
const u = 0.7978845608028654, a = 0.044715;
|
|
5
5
|
class c {
|
|
6
6
|
outputShape;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as n } from "../../webgpu_util-
|
|
2
|
-
import { f as p,
|
|
1
|
+
import { f as n } from "../../webgpu_util-BqGnZg8t.js";
|
|
2
|
+
import { f as p, a4 as h } from "../../index-DdmHGZjq.js";
|
|
3
3
|
import { createReduceInfo as u, reduce as c, createReductionShader as m } from "./utils/reductions.js";
|
|
4
4
|
class d {
|
|
5
5
|
outputShape;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f,
|
|
1
|
+
import { f, a4 as c, e as g } from "../../index-DdmHGZjq.js";
|
|
2
2
|
import { createReduceInfo as k } from "./utils/reductions.js";
|
|
3
|
-
import { f as x } from "../../webgpu_util-
|
|
4
|
-
import { g as z } from "../../webgpu_program-
|
|
5
|
-
import { s as d } from "../../slice-
|
|
6
|
-
import { s as w } from "../../sum-
|
|
3
|
+
import { f as x } from "../../webgpu_util-BqGnZg8t.js";
|
|
4
|
+
import { g as z } from "../../webgpu_program-Dhk9R5aG.js";
|
|
5
|
+
import { s as d } from "../../slice-B7jXtPnp.js";
|
|
6
|
+
import { s as w } from "../../sum-ByFINZgi.js";
|
|
7
7
|
class y {
|
|
8
8
|
outputShape;
|
|
9
9
|
shaderKey = "RMSNormGrad";
|
package/dist/ops/webgpu/qkv.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as h } from "../../webgpu_program-
|
|
2
|
-
import { f as c, c as d } from "../../webgpu_util-
|
|
3
|
-
import { f as p,
|
|
1
|
+
import { g as h } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as c, c as d } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f as p, a4 as m } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class l {
|
|
5
5
|
variableNames = ["x", "kernel"];
|
|
6
6
|
outputShape;
|
package/dist/ops/webgpu/rope.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as c } from "../../webgpu_program-
|
|
2
|
-
import { f as m, c as l } from "../../webgpu_util-
|
|
3
|
-
import { f as x,
|
|
1
|
+
import { g as c } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as m, c as l } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f as x, a4 as f } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class S {
|
|
5
5
|
variableNames = ["x", "sin", "cos"];
|
|
6
6
|
outputShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as p } from "../../webgpu_program-
|
|
2
|
-
import { f as u, c as d } from "../../webgpu_util-
|
|
3
|
-
import { f as h,
|
|
1
|
+
import { g as p } from "../../webgpu_program-Dhk9R5aG.js";
|
|
2
|
+
import { f as u, c as d } from "../../webgpu_util-BqGnZg8t.js";
|
|
3
|
+
import { f as h, a4 as o } from "../../index-DdmHGZjq.js";
|
|
4
4
|
class b {
|
|
5
5
|
variableNames = ["labels", "softmaxProbs", "dy"];
|
|
6
6
|
outputShape;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as l, j as d } from "../../../index-
|
|
2
|
-
import { g as p } from "../../../webgpu_program-
|
|
3
|
-
import { r as f } from "../../../Reshape-
|
|
4
|
-
import { c as x } from "../../../axis_util-
|
|
1
|
+
import { p as l, j as d } from "../../../index-DdmHGZjq.js";
|
|
2
|
+
import { g as p } from "../../../webgpu_program-Dhk9R5aG.js";
|
|
3
|
+
import { r as f } from "../../../Reshape-41YpQqEo.js";
|
|
4
|
+
import { c as x } from "../../../axis_util-Did9235A.js";
|
|
5
5
|
function I(e, r, t, s, u) {
|
|
6
6
|
return `
|
|
7
7
|
fn DIV_CEIL(a : u32, b : u32) -> u32 {
|