Commit b0c824d9 authored by rprenger's avatar rprenger
Browse files

Adding message to ValueError

parent 42982fc3
......@@ -136,7 +136,7 @@ def generate_tokens_probs_and_return_on_first_stage(
# If the context is too big, this happens
if min_prompt_length >= max_sequence_length:
raise ValueError
raise ValueError("context length + tokens_to_generate too large")
# forward step.
forward_step = ForwardStep(model, batch_size, max_sequence_length)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment