Update.
authorFrançois Fleuret <francois@fleuret.org>
Mon, 24 Jun 2024 21:17:53 +0000 (23:17 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Mon, 24 Jun 2024 21:17:53 +0000 (23:17 +0200)
tasks.py

index 39372f3..6fd835d 100755 (executable)
--- 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: