summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-09-03 13:42:56 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-09-03 13:43:17 +0300
commit8f429fa5111901f9646cf998643ac5310846d487 (patch)
treedb1ceb2a6696a70eff42487866d1986dc0c6902d /examples
parent6519e9c99cffbad19b31bcba86df48c500628c09 (diff)
perplexity : fix ETA by warming up the model with an empty run
Diffstat (limited to 'examples')
-rw-r--r--examples/main/main.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp
index 7117db4b..db98312c 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -492,14 +492,6 @@ int main(int argc, char ** argv) {
std::vector<llama_token> embd;
std::vector<llama_token> embd_guidance;
- {
- LOG("warming up the model with an empty run\n");
-
- const std::vector<llama_token> tmp = { llama_token_bos(ctx), };
- llama_eval(ctx, tmp.data(), tmp.size(), 0, params.n_threads);
- llama_reset_timings(ctx);
- }
-
while ((n_remain != 0 && !is_antiprompt) || params.interactive) {
// predict
if (embd.size() > 0) {