Spaces:
Running
Running
Do not use a form
Browse files
app.py
CHANGED
|
@@ -43,17 +43,14 @@ def ids_to_readable_tokens(tokenizer, ids, strip_whitespace=False):
|
|
| 43 |
|
| 44 |
st.header("Context length probing")
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
window_len = st.select_slider(r"Window size ($c_\text{max}$)", options=[8, 16, 32, 64, 128, 256, 512, 1024], value=512)
|
| 51 |
-
text = st.text_area(
|
| 52 |
-
"Input text",
|
| 53 |
-
"The complex houses married and single soldiers and their families.",
|
| 54 |
-
)
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
if metric_name == "KL divergence":
|
| 59 |
st.error("KL divergence is not supported yet. Stay tuned!", icon="😭")
|
|
|
|
| 43 |
|
| 44 |
st.header("Context length probing")
|
| 45 |
|
| 46 |
+
model_name = st.selectbox("Model", ["distilgpt2", "gpt2", "EleutherAI/gpt-neo-125m"])
|
| 47 |
+
metric_name = st.selectbox("Metric", ["KL divergence", "Cross entropy"], index=1)
|
| 48 |
+
window_len = st.select_slider(r"Window size ($c_\text{max}$)", options=[8, 16, 32, 64, 128, 256, 512, 1024], value=512)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
text = st.text_area(
|
| 51 |
+
"Input text",
|
| 52 |
+
"The complex houses married and single soldiers and their families.",
|
| 53 |
+
)
|
| 54 |
|
| 55 |
if metric_name == "KL divergence":
|
| 56 |
st.error("KL divergence is not supported yet. Stay tuned!", icon="😭")
|