From e5d7c530ffd7ab88131988a05f66109ec880b809 Mon Sep 17 00:00:00 2001 From: Jonas Knobloch Date: Mon, 9 Mar 2026 19:14:50 +0100 Subject: Fix perplexity calculation * Track total evaluated tokens * Use first token as context --- llm/result.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llm/result.go (limited to 'llm/result.go') diff --git a/llm/result.go b/llm/result.go new file mode 100644 index 0000000..c77f68d --- /dev/null +++ b/llm/result.go @@ -0,0 +1,6 @@ +package llm + +type result struct { + nll float64 + n int +} -- cgit v1.3.1