Skip to content

Distribute and run LLMs with a single file.

Make more fixes to tracing feature

Justine Tunney2699f6b452c7
diff --git a/llama.cpp/common.cpp b/llama.cpp/common.cpp
index 9fb83724..93cf9947 100644
--- a/llama.cpp/common.cpp
+++ b/llama.cpp/common.cpp
@@ -185,6 +185,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
}
if (arg == "--trace") {
FLAG_trace = true;
+ FLAG_unsecure = true;
return true;
}
if (arg == "--fast") {
diff --git a/llamafile/trace.c b/llamafile/trace.c
index 804836d5..d758f0dd 100644
--- a/llamafile/trace.c
+++ b/llamafile/trace.c
@@ -40,7 +40,7 @@ static atomic_int g_count;
static thread_local int g_id;
static thread_local int g_ids;
static thread_local int g_tid;
-static struct TraceEvent g_events[1000000];
+static struct TraceEvent g_events[10000000];
static int llamafile_trace_oom(void) {
if (atomic_load_explicit(&g_oom, memory_order_relaxed))