Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Apr 28, 2024
1 parent 69b4d9e commit d82e994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Transformer::Transformer(TransformerSpec* spec, uint8_t sliceIndex) {

// TODO: cache should be for all architectures
if (spec->archType == LLAMA2 || spec->archType == MIXTRAL) {
ropeCache = (float*)NEW_BUFFER(spec->vocabSize * spec->dim);
ropeCache = (float*)NEW_BUFFER(spec->vocabSize * spec->dim * sizeof(float));
initRope(ropeCache, spec);
}
}
Expand Down

0 comments on commit d82e994

Please sign in to comment.