da03 commited on
Commit
85fafa0
1 Parent(s): c3853cd
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -58,11 +58,6 @@ def predict_product(num1, num2):
58
  ground_truth_annotations = ground_truth_annotations[::-1]
59
  # Predicted
60
  for model_name in models:
61
- import time
62
- if not finished_per_model['implicit']:
63
- time.sleep(0.034)
64
- else:
65
- time.sleep(0.01)
66
  model = models[model_name]
67
  if finished_per_model[model_name]:
68
  continue
@@ -146,6 +141,13 @@ demo = gr.Interface(
146
  gr.HighlightedText(label='No CoT Prediction', combine_adjacent=False, show_legend=False, color_map=color_map, show_inline_category=False),
147
  gr.HighlightedText(label='Explicit CoT Steps & Prediction', combine_adjacent=False, show_legend=False, color_map=color_map, show_inline_category=False),
148
  ],
 
 
 
 
 
 
 
149
  clear_btn=None,
150
  submit_btn="Multiply!",
151
  live=False,
 
58
  ground_truth_annotations = ground_truth_annotations[::-1]
59
  # Predicted
60
  for model_name in models:
 
 
 
 
 
61
  model = models[model_name]
62
  if finished_per_model[model_name]:
63
  continue
 
141
  gr.HighlightedText(label='No CoT Prediction', combine_adjacent=False, show_legend=False, color_map=color_map, show_inline_category=False),
142
  gr.HighlightedText(label='Explicit CoT Steps & Prediction', combine_adjacent=False, show_legend=False, color_map=color_map, show_inline_category=False),
143
  ],
144
+ title='Predicting Multiplication with GPT-2: Implicit vs. Explicit CoT',
145
+ description='This demo showcases GPT-2\'s ability to directly predict the product of two large numbers without intermediate steps, using our stepwise internalization method. Compare the performance of implicit CoT (our method), no CoT, and explicit CoT. Implicit CoT offers accuracy and speed, while explicit CoT provides detailed reasoning but is slower.',
146
+ article="""
147
+ - [Paper: From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Step](https://arxiv.org/pdf/2405.14838)
148
+ - [Code Repository](https://github.com/da03/Internalize_CoT_Step_by_Step)
149
+ - [Tweet Announcement](https://twitter.com/yuntiandeng/status/1795854740879774036)
150
+ """,
151
  clear_btn=None,
152
  submit_btn="Multiply!",
153
  live=False,