File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -1302,7 +1302,6 @@ int main(int argc, char ** argv) {
1302
1302
print_token (ggml_get_i32_1d (tokens_input, i), n_vocab);
1303
1303
}
1304
1304
printf (" ---\n " );
1305
- int important_sum = 0 ;
1306
1305
for (int i=0 ; i<n_gen; ++i) {
1307
1306
struct ggml_init_params params = {
1308
1307
/* .mem_size =*/ compute_size,
@@ -1340,15 +1339,9 @@ int main(int argc, char ** argv) {
1340
1339
// print_token(ggml_get_i32_1d(tokens_input, i), model.hparams.n_vocab);
1341
1340
// }
1342
1341
// printf("--\n");
1343
- for (int k=0 ; k<1000000 ; ++k) {
1344
- for (int j=0 ; j<30 ; ++j) {
1345
- important_sum += (k+j) / MAX (1 ,i);
1346
- }
1347
- }
1348
1342
1349
1343
ggml_free (ctx0);
1350
1344
}
1351
- printf (" important (dont optimize it away, compiler!) : %d\n " , important_sum);
1352
1345
}
1353
1346
1354
1347
print_matrix (model.tok_embeddings );
You can’t perform that action at this time.
0 commit comments