Skip to content

Commit e04cf1a

Browse files
fixup! lookup: evaluation tools, use corpus/previous gens
1 parent e2f6704 commit e04cf1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/ngram-cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void llama_ngram_cache_update(llama_ngram_cache & ngram_cache, int ngram_min, in
3939
const int64_t eta_min = eta_ms / (60*1000);
4040
const int64_t eta_s = (eta_ms - 60*1000*eta_min) / 1000;
4141

42-
fprintf(stderr, "%s: %ld/%ld done, ETA: %02ld:%02ld\n", __func__, n_done, n_todo, eta_min, eta_s);
42+
fprintf(stderr, "%s: %ld/%ld done, ETA: %02" PRId64 ":%02" PRId64 "\n", __func__, n_done, n_todo, eta_min, eta_s);
4343
}
4444
}
4545
}

examples/lookup/lookup-stats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int main(int argc, char ** argv){
132132
const int64_t eta_min = eta_ms / (60*1000);
133133
const int64_t eta_s = (eta_ms - 60*1000*eta_min) / 1000;
134134

135-
LOG_TEE("%d/%d done, ETA: %02ld:%02ld\n", i_start, n_input, eta_min, eta_s);
135+
LOG_TEE("lookup-stats: %d/%d done, ETA: %02" PRId64 ":%02" PRId64 "\n", i_start, n_input, eta_min, eta_s);
136136
}
137137

138138
// After each chunk, update the dynamic ngram cache with the context ngram cache:

0 commit comments

Comments
 (0)