Skip to content

Commit 24ea11f

Browse files
committed
wtf
1 parent 1104417 commit 24ea11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/llama_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ void LLamaModel::backward(Tensor inputs, Tensor targets, NCCLCommunicator& comm,
424424
rs->Encoded, weights.LN1_w, rs->Acts[l].LN1_Rstd, nullptr, B, T, C, rs->DeviceProp, main_stream);
425425
}
426426
Parameters->release_block(l, main_stream);
427-
Grads->notify_block(l, main_stream, comm);
428427
CUDA_CHECK(cudaEventRecord(test_event, comm.stream()));
428+
Grads->notify_block(l, main_stream, comm);
429429
}
430430

431431
auto& d_emb = Grads->get_embeddings_full(main_stream, comm, accumulate);

0 commit comments

Comments
 (0)