mirror of
https://github.com/ollama/ollama.git
synced 2026-04-21 16:25:42 +02:00
gocritic
This commit is contained in:
@@ -30,7 +30,7 @@ func temperature(ts []token, temp float32) {
|
||||
// Ensure temperature clipping near 0 to avoid numerical instability
|
||||
temp = max(temp, 1e-7)
|
||||
for i := range ts {
|
||||
ts[i].value = ts[i].value / temp
|
||||
ts[i].value /= temp
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user