From 896197c194d32b4b3bd9263952cd7b36c39d54bd Mon Sep 17 00:00:00 2001 From: Abitofevrything Date: Sun, 15 Jan 2023 12:56:30 +0100 Subject: [PATCH] Update gpt-2.cpp --- examples/talk/gpt-2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/talk/gpt-2.cpp b/examples/talk/gpt-2.cpp index f8a4be8..13b3d95 100644 --- a/examples/talk/gpt-2.cpp +++ b/examples/talk/gpt-2.cpp @@ -837,7 +837,7 @@ struct gpt2_context * gpt2_init(const char * path_model) { // load the model { - const int64_t t_start_us = ggml_real_time_us(); + const int64_t t_start_us = ggml_time_real_us(); if (!gpt2_model_load(path_model, ctx->model, ctx->vocab)) { fprintf(stderr, "%s: failed to load model from '%s'\n", __func__, path_model); @@ -845,7 +845,7 @@ struct gpt2_context * gpt2_init(const char * path_model) { return nullptr; } - const int64_t t_load_us = ggml_real_time_us() - t_start_us; + const int64_t t_load_us = ggml_time_real_us() - t_start_us; printf("gpt-2: model loaded in %d ms\n", (int) (t_load_us/1000)); }