first commit

This commit is contained in:
2025-12-31 14:22:45 +01:00
commit c78a860098
73 changed files with 30137 additions and 0 deletions

18
framework/ModelState.js Normal file
View File

@@ -0,0 +1,18 @@
export class ModelState {
constructor() {
this.config = null;
// embeddings
this.tokenEmbedding = null;
this.positionEmbedding = null;
// transformer layers
this.layers = []; // each layer: { Wq,Wk,Wv,bq,bk,bv, Wout,bout, Wfc1,bfc1, Wfc2,bfc2 }
// tied output projection
this.Wlogits = null;
}
}