Skip to content

Commit 89b22f8

Browse files
committed
quick fix
1 parent f2d201f commit 89b22f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

HRM/hrm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def evaluate_pred():
224224
min_reasoning_steps = self.max_reasoning_steps
225225

226226
if self.training:
227-
min_reasoning_steps = randrange(2, self.max_reasoning_steps + 1) if satisfy_prob(self.min_reasoning_steps_epsilon_prob) else 1
227+
min_reasoning_steps = randrange(2, max_reasoning_steps + 1) if satisfy_prob(self.min_reasoning_steps_epsilon_prob) else 1
228228

229229
with context():
230230
for index in range(max_reasoning_steps * self.lowest_steps_per_reasoning_step - 1):
@@ -243,7 +243,7 @@ def evaluate_pred():
243243
is_reasoning_step_boundary = divisible_by(index, self.lowest_steps_per_reasoning_step)
244244
num_reasoning_steps = index // self.lowest_steps_per_reasoning_step
245245

246-
if is_reasoning_step_boundary and num_reasoning_steps > min_reasoning_steps:
246+
if is_reasoning_step_boundary and num_reasoning_steps >= min_reasoning_steps:
247247

248248
highest_hidden = hiddens[self.num_networks - 1]
249249

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "HRM-pytorch"
3-
version = "0.0.5"
3+
version = "0.0.6"
44
description = "The proposal from a Singaporean AGI company"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

0 commit comments

Comments
 (0)