diff options
| author | Jonas Knobloch <jonas.knobloch@t-online.de> | 2026-03-09 19:14:50 +0100 |
|---|---|---|
| committer | Jonas Knobloch <jonas.knobloch@t-online.de> | 2026-03-09 19:22:08 +0100 |
| commit | e5d7c530ffd7ab88131988a05f66109ec880b809 (patch) | |
| tree | 91303f2e7729400048ce7cd533f349217ed35c27 /llm/evaluator.go | |
| parent | 591c4e3ae32aef6a63bdbf72c1903df72131389b (diff) | |
Fix perplexity calculation
* Track total evaluated tokens
* Use first token as context
Diffstat (limited to 'llm/evaluator.go')
| -rw-r--r-- | llm/evaluator.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llm/evaluator.go b/llm/evaluator.go index ccc554e..9faf483 100644 --- a/llm/evaluator.go +++ b/llm/evaluator.go @@ -6,14 +6,14 @@ type Evaluator struct { mutex sync.RWMutex models []Causal tokenizer Tokenizer - results []float64 + results []result jobs int } func NewEvaluator() *Evaluator { return &Evaluator{ models: make([]Causal, 0), - results: make([]float64, 0), + results: make([]result, 0), } } |
