@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.
Files changed (51) hide show
  1. package/index.js +14 -20
  2. package/package.json +5 -2
  3. package/readme.md +907 -72
  4. package/src/Embedding/index.d.ts +5 -5
  5. package/src/Embedding/index.js +118 -33
  6. package/src/FFN/index.d.ts +5 -5
  7. package/src/FFN/index.js +34 -39
  8. package/src/Linear/index.d.ts +7 -8
  9. package/src/Linear/index.js +173 -49
  10. package/src/OperationManager.js +96 -0
  11. package/src/Relu/index.d.ts +5 -0
  12. package/src/Relu/index.js +103 -0
  13. package/src/SelfAttention/index.d.ts +7 -13
  14. package/src/SelfAttention/index.js +108 -55
  15. package/src/Softmax/index.d.ts +4 -3
  16. package/src/Softmax/index.js +192 -12
  17. package/src/Tokenizer/index.d.ts +1 -0
  18. package/src/Tokenizer/index.js +92 -7
  19. package/src/TransformerBlock/index.d.ts +6 -7
  20. package/src/TransformerBlock/index.js +24 -23
  21. package/src/getVec.js +28 -0
  22. package/src/shaders/CalculateAcc.wgsl +50 -0
  23. package/src/shaders/CalculateLoss.wgsl +35 -0
  24. package/src/shaders/ComputeDInput.wgsl +32 -0
  25. package/src/shaders/EB.wgsl +31 -0
  26. package/src/shaders/EF.wgsl +25 -0
  27. package/src/shaders/LB.wgsl +57 -0
  28. package/src/shaders/LF.wgsl +44 -0
  29. package/src/shaders/RB.wgsl +37 -0
  30. package/src/shaders/RF.wgsl +33 -0
  31. package/src/shaders/ReductionFunction.wgsl +28 -0
  32. package/src/shaders/SB.wgsl +36 -0
  33. package/src/shaders/SF.wgsl +65 -0
  34. package/src/shaders/SoftmaxBackward.wgsl +31 -0
  35. package/src/shaders/attentionShader/CompueFinalForwardOutput.wgsl +29 -0
  36. package/src/shaders/attentionShader/ComputeDA.wgsl +30 -0
  37. package/src/shaders/attentionShader/ComputeDV.wgsl +37 -0
  38. package/src/shaders/attentionShader/ComputeK.wgsl +30 -0
  39. package/src/shaders/attentionShader/ComputedQ.wgsl +31 -0
  40. package/src/shaders/attentionShader/attentionSocres.wgsl +40 -0
  41. package/src/shaders/attentionShader/sumGradient.wgsl +24 -0
  42. package/src/GELU/index.d.ts +0 -6
  43. package/src/GELU/index.js +0 -33
  44. package/src/GetConfigs.js +0 -35
  45. package/src/Model/index.d.ts +0 -10
  46. package/src/Model/index.js +0 -88
  47. package/src/PositionEmbedding/index.d.ts +0 -11
  48. package/src/PositionEmbedding/index.js +0 -49
  49. package/src/ReLU/index.d.ts +0 -5
  50. package/src/ReLU/index.js +0 -17
  51. package/src/gpiInit.js +0 -764
package/index.js CHANGED
@@ -1,22 +1,16 @@
1
- import { Tokenizer as tokenizer } from "./src/Tokenizer/index.js";
2
- import { Embedding as embeddding2 } from "./src/Embedding/index.js";
3
- import { Linear as li2 } from "./src/Linear/index.js";
4
- import { Softmax as softmax2 } from "./src/Softmax/index.js";
5
- import {ReLU} from './src/ReLU/index.js'
6
- import {PositionEmbedding as PE} from './src/PositionEmbedding/index.js'
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 {GELU as GU} from './src/GELU/index.js'
9
- import {FFN as ffn} from './src/FFN/index.js'
10
- import { TransformerBlock as TB} from './src/TransformerBlock/index.js'
11
- import Model from "./src/Model/index.js";
12
- export const Tokenizer = tokenizer
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 TransformerBlock = TB
22
- export const model = Model
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.55",
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
- "gpu.js": "^2.24.0"
24
+ "webgpu": "^0.6.0"
25
+ },
26
+ "allowScripts": {
27
+ "webgpu@0.6.0": true
25
28
  }
26
29
  }