kyegomez / tree-of-thoughts

Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large Language Models that Elevates Model Reasoning by atleast 70%
https://discord.gg/qUtxnK2NMf
Apache License 2.0
4.18k stars 353 forks source link

max() arg is an empty sequence #41

Closed mustache-commits closed 1 year ago

mustache-commits commented 1 year ago

Not reaching past Step 1 with the following error:

`2023-05-29 09:11:32,869 - INFO - Step: 2, S0_t: set(), Vt: {}, St: [], S0: set()

Saving tree

2023-05-29 09:11:32,870 - INFO - Step: 3, S0_t: set(), Vt: {}, St: [], S0: set()

2023-05-29 09:11:32,870 - ERROR - Error: max() arg is an empty sequence

2023-05-29 09:11:32,870 - INFO - Saving the current tree and metrics.`

kyegomez commented 1 year ago

Which search algorithm are you using?

mustache-commits commented 1 year ago

BFS. I noticed that it depends on the problem. Simple math problems are OK, but as soon as it is slighly more elaborate it runs into problems with pruning and text cutoff. I resolved it by increasing max_tokens and adding pruning threshold management.

kyegomez commented 1 year ago

What do you mean by pruning threshold management?