From ca67253f28f95b11a8d3b76a3058eccd70c2b471 Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Tue, 15 Aug 2023 16:09:33 +0000 Subject: [PATCH] smallfix: not sure what the point of this indirection was --- run.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.c b/run.c index 6152919..43af271 100644 --- a/run.c +++ b/run.c @@ -117,9 +117,8 @@ void free_run_state(RunState* s) { // ---------------------------------------------------------------------------- // initialization: read from checkpoint -void checkpoint_init_weights(TransformerWeights *w, Config* p, float* f, int shared_weights) { +void checkpoint_init_weights(TransformerWeights *w, Config* p, float* ptr, int shared_weights) { int head_size = p->dim / p->n_heads; - float* ptr = f; w->token_embedding_table = ptr; ptr += p->vocab_size * p->dim; w->rms_att_weight = ptr;