renpas22 commited on
Commit
f941008
·
1 Parent(s): 464ac9b

Fix ReasoningStep attribute - use description not content

Browse files
Files changed (1) hide show
  1. src/reasoning/step_level_cot.py +1 -1
src/reasoning/step_level_cot.py CHANGED
@@ -392,7 +392,7 @@ class StepLevelCoTTrainer:
392
  text = f"Question: {chain.prompt}\n"
393
  text += "<|reasoning_start|>\n"
394
  for step in chain.steps:
395
- text += f"<|step_start|>{step.content}<|step_end|>\n"
396
  text += "<|reasoning_end|>\n"
397
  text += f"Answer: {chain.final_answer}"
398
 
 
392
  text = f"Question: {chain.prompt}\n"
393
  text += "<|reasoning_start|>\n"
394
  for step in chain.steps:
395
+ text += f"<|step_start|>{step.description}<|step_end|>\n"
396
  text += "<|reasoning_end|>\n"
397
  text += f"Answer: {chain.final_answer}"
398