Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
dc070eb
1
Parent(s):
914bde0
update
Browse files- app.py +1 -1
- schemas.py +1 -1
app.py
CHANGED
|
@@ -375,7 +375,7 @@ with gr.Blocks(title="LLM Censorship Steering", theme=theme, head=HEAD, css=CSS,
|
|
| 375 |
with gr.Row():
|
| 376 |
layer = gr.Slider(0, 27, step=1, value=CONFIG["layer"], interactive=True, label="Steering layer", scale=2)
|
| 377 |
max_new_tokens = gr.Number(CONFIG["max_new_tokens"], minimum=10, maximum=3048, interactive=True, label="Max new tokens", scale=1)
|
| 378 |
-
vec_scaling = gr.Number(
|
| 379 |
|
| 380 |
with gr.Column(scale=1):
|
| 381 |
output = gr.Textbox(label="Output", lines=15, max_lines=15, interactive=False)
|
|
|
|
| 375 |
with gr.Row():
|
| 376 |
layer = gr.Slider(0, 27, step=1, value=CONFIG["layer"], interactive=True, label="Steering layer", scale=2)
|
| 377 |
max_new_tokens = gr.Number(CONFIG["max_new_tokens"], minimum=10, maximum=3048, interactive=True, label="Max new tokens", scale=1)
|
| 378 |
+
vec_scaling = gr.Number(CONFIG["k"], minimum=0, interactive=True, label="Vector scaling", scale=1)
|
| 379 |
|
| 380 |
with gr.Column(scale=1):
|
| 381 |
output = gr.Textbox(label="Output", lines=15, max_lines=15, interactive=False)
|
schemas.py
CHANGED
|
@@ -10,7 +10,7 @@ CONFIG = {
|
|
| 10 |
"max_new_tokens": 2400,
|
| 11 |
"top_p": 0.95,
|
| 12 |
"temperature": 0.6,
|
| 13 |
-
"k":
|
| 14 |
"layer": 25
|
| 15 |
}
|
| 16 |
|
|
|
|
| 10 |
"max_new_tokens": 2400,
|
| 11 |
"top_p": 0.95,
|
| 12 |
"temperature": 0.6,
|
| 13 |
+
"k": 1.5,
|
| 14 |
"layer": 25
|
| 15 |
}
|
| 16 |
|