@mineproness/tensorloop 2.1.4 → 2.1.41

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 CHANGED
@@ -8,6 +8,7 @@ import {SelfAttention as ST} from './src/SelfAttention/index.js'
8
8
  import {GELU as GU} from './src/GELU/index.js'
9
9
  import {FFN as ffn} from './src/FFN/index.js'
10
10
  import { TransformerBlock as TB} from './src/TransformerBlock/index.js'
11
+ import Model from "./src/Model/index.js";
11
12
  export const Tokenizer = tokenizer
12
13
  export const Embedding = embeddding2
13
14
  export const Linear = li2
@@ -17,4 +18,5 @@ export const PositionEmbedding = PE
17
18
  export const SelfAttention = ST
18
19
  export const GELU = GU
19
20
  export const FFN = ffn
20
- export const TransformerBlock = TB
21
+ export const TransformerBlock = TB
22
+ export const model = Model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mineproness/tensorloop",
3
- "version": "2.1.4",
3
+ "version": "2.1.41",
4
4
  "description": "Raw-JAVASCRIPT Based Matirx and AI LLM Package called Tensorloop.",
5
5
  "keywords": [
6
6
  "ai",
@@ -1,5 +1,5 @@
1
1
  export class Softmax{
2
2
  forward(xLi : number[]) : number
3
- backward(target : number[]) : Float32Array[]
4
- crossEntropy(dLogits: Float32Array[], target: number[])
3
+ backward(probs: Float32Array[], target : number[]) : Float32Array[]
4
+ crossEntropy(probs: Float32Array[], target: number[])
5
5
  }