Spaces:
Sleeping
Sleeping
Change default selected head to a more interesting one
Browse files
hexviz/Attention_Visualization.py
CHANGED
@@ -64,7 +64,7 @@ with left:
|
|
64 |
selected_model_name = st.selectbox("Select a model", [model.name.value for model in models], index=0)
|
65 |
selected_model = next((model for model in models if model.name.value == selected_model_name), None)
|
66 |
with mid:
|
67 |
-
layer_one = st.number_input("Layer", value=
|
68 |
layer = layer_one - 1
|
69 |
with right:
|
70 |
head_one = st.number_input("Head", value=1, min_value=1, max_value=selected_model.heads)
|
|
|
64 |
selected_model_name = st.selectbox("Select a model", [model.name.value for model in models], index=0)
|
65 |
selected_model = next((model for model in models if model.name.value == selected_model_name), None)
|
66 |
with mid:
|
67 |
+
layer_one = st.number_input("Layer", value=5, min_value=1, max_value=selected_model.layers)
|
68 |
layer = layer_one - 1
|
69 |
with right:
|
70 |
head_one = st.number_input("Head", value=1, min_value=1, max_value=selected_model.heads)
|