From 1fb7ff66e07f267511f0f2592509a3f3212fc8f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Fleuret?= Date: Mon, 24 Jun 2024 23:17:53 +0200 Subject: [PATCH] Update. --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 39372f3..6fd835d 100755 --- a/tasks.py +++ b/tasks.py @@ -295,11 +295,11 @@ class World(Task): # Oh man that's ugly if average_logits < desired_average_logits: - if d_temperature < 0: + if d_temperature > 0: d_temperature *= -0.5 temperature += d_temperature elif average_logits > desired_average_logits * 0.95: - if d_temperature > 0: + if d_temperature < 0: d_temperature *= -0.5 temperature += d_temperature else: -- 2.39.5