Skip to content

Commit 480feb8

Browse files
authored
llama2c: remove trailing spaces
1 parent f855d52 commit 480feb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ int checkpoint_init_weights(TransformerWeights *w, Config* p, FILE* f, bool shar
106106
if (fread(w->w2, sizeof(float), p->n_layers * p->hidden_dim * p->dim, f) != static_cast<size_t>(p->n_layers * p->hidden_dim * p->dim)) return 1;
107107
if (fread(w->w3, sizeof(float), p->n_layers * p->dim * p->hidden_dim, f) != static_cast<size_t>(p->n_layers * p->dim * p->hidden_dim)) return 1;
108108
if (fread(w->rms_final_weight, sizeof(float), p->dim, f) != static_cast<size_t>(p->dim)) return 1;
109-
109+
110110
// Skip freq_cis_real & freq_cis_imag
111111
int head_size = p->dim / p->n_heads;
112112
fseek(f, p->seq_len * head_size * sizeof(float), SEEK_CUR);
113-
113+
114114
if (!shared_weights && fread(w->wcls, sizeof(float), p->vocab_size * p->dim, f) != static_cast<size_t>(p->vocab_size * p->dim)) return 1;
115-
115+
116116
// Check we didn't forget to read anything
117117
auto curr = ftell(f);
118118
fseek(f, 0, SEEK_END);

0 commit comments

Comments
 (0)