Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ with gr.Blocks() as demo:
|
|
| 41 |
|
| 42 |
This repo is the offical demo space for [Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies](https://huggingface.co/papers/2407.13623). In summary, we show that when scaling up model size, increase vocabulary size too, but at a slower rate than other parameters.
|
| 43 |
|
| 44 |
-
 as demo:
|
|
| 68 |
outputs=output_text
|
| 69 |
)
|
| 70 |
demo.launch()
|
| 71 |
-
|
| 72 |
-
# import gradio as gr
|
| 73 |
-
# def update(name):
|
| 74 |
-
# return f"Welcome to Gradio, {name}!"
|
| 75 |
-
|
| 76 |
-
# with gr.Blocks() as demo:
|
| 77 |
-
# gr.Markdown("Start typing below and then click **Run** to see the output.")
|
| 78 |
-
# with gr.Row():
|
| 79 |
-
# inp = gr.Textbox(placeholder="What is your name?")
|
| 80 |
-
# out = gr.Textbox()
|
| 81 |
-
# btn = gr.Button("Run")
|
| 82 |
-
# btn.click(fn=update, inputs=inp, outputs=out)
|
| 83 |
-
|
| 84 |
-
# demo.launch()
|
|
|
|
| 41 |
|
| 42 |
This repo is the offical demo space for [Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies](https://huggingface.co/papers/2407.13623). In summary, we show that when scaling up model size, increase vocabulary size too, but at a slower rate than other parameters.
|
| 43 |
|
| 44 |
+

|
| 45 |
|
| 46 |
This tool is used to predict the optimal vocabulary size given the non-vocabulary parameters. We provide 3 ways for prediction:
|
| 47 |
|
|
|
|
| 68 |
outputs=output_text
|
| 69 |
)
|
| 70 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|