Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e04cf1a

Browse filesBrowse files
fixup! lookup: evaluation tools, use corpus/previous gens
1 parent e2f6704 commit e04cf1a
Copy full SHA for e04cf1a

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎common/ngram-cache.cpp

Copy file name to clipboardExpand all lines: common/ngram-cache.cpp
+1-1Lines 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

Copy file name to clipboardExpand all lines: examples/lookup/lookup-stats.cpp
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.