@mineproness/tensorloop 2.2.4 → 2.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mineproness/tensorloop",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Raw-JAVASCRIPT Based Matirx and AI LLM Package called Tensorloop.",
5
5
  "keywords": [
6
6
  "ai",
@@ -119,7 +119,7 @@ export class Softmax {
119
119
  if(!this.acc) this.acc = await this.gpu.createBuffer(4 * 1)
120
120
  await this.gpu.WriteBuffer(targetBuffer, new Uint32Array(target))
121
121
  const bindGroup1 = await this.gpu.createBindGroup(this.lossPipline, 0, [probs.mainBuffer, targetBuffer, this.loss, this.paramsForward])
122
- const bindGroup2 = await this.gpu.createBindGroup(this.accPipline, 0 , [this.paramsForward, probs.mainBuffer, targetBuffer, this.acc])
122
+ const bindGroup2 = await this.gpu.createBindGroup(this.accPipline, 0 , [this.paramsForward, probs.mainBuffer, this.acc, targetBuffer])
123
123
  await this.gpu.RunPipline(encoder, this.lossPipline, bindGroup1, Math.ceil((tokenCount / 4)))
124
124
  await this.gpu.RunPipline(encoder, this.accPipline, bindGroup2, 1)
125
125
  await this.gpu.submitQueue(encoder)