tcftrees commited on
Commit
85aee05
β€’
1 Parent(s): af550fb
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -38,16 +38,18 @@ with gr.Blocks() as demo:
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
-
51
  with gr.Row():
52
  Nnv = gr.Textbox(label="Non-vocabulary Parameters", value=str(7*10**9))
53
  flops = gr.Textbox(label="FLOPs", placeholder="Optional (e.g. 7.05e21)")
 
38
  with gr.Column():
39
  gr.Markdown(
40
  """<h1>The Optimal Vocabulary Size Predictor</h1>
 
41
  This tool is used to predict the optimal vocabulary size given the non-vocabulary parameters. We provide 3 ways for prediction:
42
+
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
+
47
  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.
48
+
49
+ **Thanks for trying** 🌟🌟🌟!
50
  """)
51
 
52
+
53
  with gr.Row():
54
  Nnv = gr.Textbox(label="Non-vocabulary Parameters", value=str(7*10**9))
55
  flops = gr.Textbox(label="FLOPs", placeholder="Optional (e.g. 7.05e21)")