llama : disambiguate API

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-09-02 10:06:42 +03:00
parent 8f1d81a0b6
commit 086e7f6ebc
No known key found for this signature in database
GPG key ID: BF970631944C16B7
9 changed files with 22 additions and 18 deletions

View file

@ -796,7 +796,7 @@ static void hellaswag_score(llama_context * ctx, const gpt_params & params) {
size_t hs_task_count = prompt_lines.size()/6;
fprintf(stderr, "%s : loaded %zu tasks from prompt.\n", __func__, hs_task_count);
const bool is_spm = llama_vocab_type(llama_get_model(ctx)) == LLAMA_VOCAB_TYPE_SPM;
const bool is_spm = llama_get_vocab_type(llama_get_model(ctx)) == LLAMA_VOCAB_TYPE_SPM;
fprintf(stderr, "================================= is_spm = %d\n", is_spm);
// The tasks should be randomized so the score stabilizes quickly.