Skip to content

Commit

Permalink
Initial work for T5 model
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Oct 3, 2024
1 parent 3c3f148 commit 1344ddc
Show file tree
Hide file tree
Showing 2 changed files with 416 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Attention extends nn.Module {
this.rope = initializeRoPE(args);
}

forward(x: mx.array, mask: mx.array, cache: BaseKVCache) {
forward(x: mx.array, mask?: mx.array, cache?: BaseKVCache) {
const [ B, L, D ] = x.shape;

let queries = this.qProj.forward(x);
Expand Down
Loading

0 comments on commit 1344ddc

Please sign in to comment.