@mineproness/tensorloop 2.1.55 → 2.1.56
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/index.js +14 -20
- package/package.json +5 -2
- package/readme.md +907 -72
- package/src/Embedding/index.d.ts +5 -5
- package/src/Embedding/index.js +118 -33
- package/src/FFN/index.d.ts +5 -5
- package/src/FFN/index.js +34 -39
- package/src/Linear/index.d.ts +7 -8
- package/src/Linear/index.js +173 -49
- package/src/OperationManager.js +96 -0
- package/src/Relu/index.d.ts +5 -0
- package/src/Relu/index.js +103 -0
- package/src/SelfAttention/index.d.ts +7 -13
- package/src/SelfAttention/index.js +108 -55
- package/src/Softmax/index.d.ts +4 -3
- package/src/Softmax/index.js +192 -12
- package/src/Tokenizer/index.d.ts +1 -0
- package/src/Tokenizer/index.js +92 -7
- package/src/TransformerBlock/index.d.ts +6 -7
- package/src/TransformerBlock/index.js +24 -23
- package/src/getVec.js +28 -0
- package/src/shaders/CalculateAcc.wgsl +50 -0
- package/src/shaders/CalculateLoss.wgsl +35 -0
- package/src/shaders/ComputeDInput.wgsl +32 -0
- package/src/shaders/EB.wgsl +31 -0
- package/src/shaders/EF.wgsl +25 -0
- package/src/shaders/LB.wgsl +57 -0
- package/src/shaders/LF.wgsl +44 -0
- package/src/shaders/RB.wgsl +37 -0
- package/src/shaders/RF.wgsl +33 -0
- package/src/shaders/ReductionFunction.wgsl +28 -0
- package/src/shaders/SB.wgsl +36 -0
- package/src/shaders/SF.wgsl +65 -0
- package/src/shaders/SoftmaxBackward.wgsl +31 -0
- package/src/shaders/attentionShader/CompueFinalForwardOutput.wgsl +29 -0
- package/src/shaders/attentionShader/ComputeDA.wgsl +30 -0
- package/src/shaders/attentionShader/ComputeDV.wgsl +37 -0
- package/src/shaders/attentionShader/ComputeK.wgsl +30 -0
- package/src/shaders/attentionShader/ComputedQ.wgsl +31 -0
- package/src/shaders/attentionShader/attentionSocres.wgsl +40 -0
- package/src/shaders/attentionShader/sumGradient.wgsl +24 -0
- package/src/GELU/index.d.ts +0 -6
- package/src/GELU/index.js +0 -33
- package/src/GetConfigs.js +0 -35
- package/src/Model/index.d.ts +0 -10
- package/src/Model/index.js +0 -88
- package/src/PositionEmbedding/index.d.ts +0 -11
- package/src/PositionEmbedding/index.js +0 -49
- package/src/ReLU/index.d.ts +0 -5
- package/src/ReLU/index.js +0 -17
- package/src/gpiInit.js +0 -764
package/index.js
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Embedding as E } from "./src/Embedding/index.js";
|
|
2
|
+
import { Linear as L } from "./src/Linear/index.js";
|
|
3
|
+
import { Softmax as S } from "./src/Softmax/index.js";
|
|
4
|
+
import { Relu as r } from "./src/Relu/index.js";
|
|
5
|
+
import { FFN as ffn } from "./src/FFN/index.js";
|
|
6
|
+
import { Tokenizer as to } from './src/Tokenizer/index.js'
|
|
7
7
|
import {SelfAttention as ST} from './src/SelfAttention/index.js'
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export const
|
|
13
|
-
export const Embedding = embeddding2
|
|
14
|
-
export const Linear = li2
|
|
15
|
-
export const Softmax = softmax2
|
|
16
|
-
export const ReLu = ReLU
|
|
17
|
-
export const PositionEmbedding = PE
|
|
18
|
-
export const SelfAttention = ST
|
|
19
|
-
export const GELU = GU
|
|
8
|
+
import {TransformerBlock as TT} from './src/TransformerBlock/index.js'
|
|
9
|
+
export const Embedding = E
|
|
10
|
+
export const Linear = L
|
|
11
|
+
export const Softmax = S;
|
|
12
|
+
export const RELU = r
|
|
20
13
|
export const FFN = ffn
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
14
|
+
export const Tokenizer = to;
|
|
15
|
+
export const SelfAttention = ST
|
|
16
|
+
export const TransformerBlock = TT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mineproness/tensorloop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.56",
|
|
4
4
|
"description": "Raw-JAVASCRIPT Based Matirx and AI LLM Package called Tensorloop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"url": "https://github.com/mineproness-org/tensorloop.git"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"
|
|
24
|
+
"webgpu": "^0.6.0"
|
|
25
|
+
},
|
|
26
|
+
"allowScripts": {
|
|
27
|
+
"webgpu@0.6.0": true
|
|
25
28
|
}
|
|
26
29
|
}
|