Get the latest tech news
Llama 3.1 in C
Llama 2 Everywhere (L2E). Contribute to trholding/llama2.c development by creating an account on GitHub.
if (fread(&t->max_token_length, sizeof(int), 1, file) !=1) { fprintf(stderr, "failed read\n"); exit(EXIT_FAILURE); } if (fread(&len, sizeof(int), 1, file) !=1) { fprintf(stderr, "failed read\n"); exit(EXIT_FAILURE); } if (fread(t->vocab[i], len, 1, file) !=1) { fprintf(stderr, "failed read\n"); exit(EXIT_FAILURE); }
Or read this on Hacker News