Treewalker filters alternative candidate tokens by calculating their percentage softmax probability from logprobs and discarding any branch that falls below the user-defined threshold.
Referenced by