Skip to content

Commit aef06cc

Browse files
Cleanup unused memorySegment copy
1 parent 00a4faa commit aef06cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/org/beehive/gpullama3/inference/InferenceCore.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ public static FloatArray forwardTornadoVM(Model model, State state, int token, i
583583
final Configuration configuration = model.configuration();
584584
final TornadoWeights weights = (TornadoWeights) model.weights();
585585

586-
MemorySegment.copy(weights.getTokenEmbeddingTable().asHalfFloatArray().getSegment(), (long) token * configuration.dim() * Short.BYTES, state.embeddingX.getSegment(), 0, configuration.dim() * Short.BYTES);
587586
switch (weights.getWeightType()) {
588587
case F16 -> {
589588
MemorySegment tokenEmbeddings = weights.getTokenEmbeddingTable().asHalfFloatArray().getSegment();

0 commit comments

Comments
 (0)