Skip to content

Commit

Permalink
fix bug free only if initted
Browse files Browse the repository at this point in the history
  • Loading branch information
karpathy committed May 23, 2024
1 parent eda0c2f commit d3cf9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_gpt2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ int main(int argc, char *argv[]) {
// free and destroy everything
cudaCheck(cudaEventDestroy(end));
cudaCheck(cudaEventDestroy(start));
evalloader_free(&eval_loader);
if (hellaswag_available) { evalloader_free(&eval_loader); }
dataloader_free(&train_loader);
dataloader_free(&val_loader);
tokenizer_free(&tokenizer);
Expand Down

0 comments on commit d3cf9e2

Please sign in to comment.