tcftrees commited on
Commit
d9a70f5
β€’
1 Parent(s): 221bd2e
Files changed (1) hide show
  1. app.py +7 -12
app.py CHANGED
@@ -38,18 +38,13 @@ with gr.Blocks() as demo:
38
  with gr.Column():
39
  gr.Markdown(
40
  """<h1>The Optimal Vocabulary Size Predictor</h1>
41
- <div style='font-size: 18px;'>
42
- <p>This tool is used to predict the optimal vocabulary size given the non-vocabulary parameters.
43
- We provide 3 ways for prediction:
44
-
45
- <p>- **Approach 1: Build the relationship between studied attributes and FLOPs**: Build the relationship between the optimal data points (the points that reach the lowest loss under the same FLOPs budget) and the FLOPs.</p>
46
- <p>- **Approach 2: Derivative-Based Estimation**: Fast calculation method using the derivative of FLOPs with respect to the vocabulary size.</p>
47
- <p>- **Approach 3: Parametric Fit of Loss Formula**: Design a loss formula that considers the effect of vocabulary size and utilizes the loss to make prediction.</p>
48
-
49
- <p>Approach 1 and 2 can only be used to compute the optimal vocabulary size when the compute is optimally allocated to non-vocabulary parameters, vocabulary parameters and data jointly. Approach 3 will not only consider the case above, but also consider the case when the amount of data does not satisfy the optimal compute allocation, and can calculate the optimal vocabulary size with specified FLOPs.</p>
50
-
51
- <p>**Thanks for trying** 🌟🌟🌟!</p>
52
- </div>
53
  """)
54
 
55
  with gr.Row():
 
38
  with gr.Column():
39
  gr.Markdown(
40
  """<h1>The Optimal Vocabulary Size Predictor</h1>
41
+ <p style='font-size: 18px;'>
42
+ This tool is used to predict the optimal vocabulary size given the non-vocabulary parameters. We provide 3 ways for prediction:
43
+ - **Approach 1: Build the relationship between studied attributes and FLOPs**: Build the relationship between the optimal data points (the points that reach the lowest loss under the same FLOPs budget) and the FLOPs.
44
+ - **Approach 2: Derivative-Based Estimation**: Fast calculation method using the derivative of FLOPs with respect to the vocabulary size.
45
+ - **Approach 3: Parametric Fit of Loss Formula**: Design a loss formula that considers the effect of vocabulary size and utilizes the loss to make prediction.
46
+ Approach 1 and 2 can only be used to compute the optimal vocabulary size when the compute is optimally allocated to non-vocabulary parameters, vocabulary parameters and data jointly. Approach 3 will not only consider the case above, but also consider the case when the amount of data does not satisfy the optimal compute allocation, and can calculate the optimal vocabulary size with specified FLOPs.
47
+ **Thanks for trying** 🌟🌟🌟!</p>
 
 
 
 
 
48
  """)
49
 
50
  with gr.Row():