Spaces:
Sleeping
Sleeping
abrakjamson
commited on
Commit
·
63bd849
1
Parent(s):
749d9e3
Bux fix when running on CPU
Browse files
app.py
CHANGED
|
@@ -398,13 +398,16 @@ with gr.Blocks(
|
|
| 398 |
|
| 399 |
|
| 400 |
# Header
|
| 401 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
gr.Markdown("""Unlike prompting, direct weight manipulation lets you fine-tune the amount of a personality
|
| 403 |
trait or topic. Enabled through [Representation Engineering](https://arxiv.org/abs/2310.01405)
|
| 404 |
via the [repeng](https://pypi.org/project/repeng) library.
|
| 405 |
[Watch a demo](https://youtu.be/gYZPGVafD7M) for usage tips.""")
|
| 406 |
-
if not cuda:
|
| 407 |
-
gr.Markdown("*Warning: running on CPU will be very slow*")
|
| 408 |
|
| 409 |
with gr.Row():
|
| 410 |
# Left Column: Control Vectors and advanced settings
|
|
|
|
| 398 |
|
| 399 |
|
| 400 |
# Header
|
| 401 |
+
if cuda:
|
| 402 |
+
gr.Markdown("# 🧠 LLM Mind Control")
|
| 403 |
+
else:
|
| 404 |
+
gr.Markdown(""" 🧠 LLM Mind Control
|
| 405 |
+
|
| 406 |
+
*Warning: running on CPU will be very slow*""")
|
| 407 |
gr.Markdown("""Unlike prompting, direct weight manipulation lets you fine-tune the amount of a personality
|
| 408 |
trait or topic. Enabled through [Representation Engineering](https://arxiv.org/abs/2310.01405)
|
| 409 |
via the [repeng](https://pypi.org/project/repeng) library.
|
| 410 |
[Watch a demo](https://youtu.be/gYZPGVafD7M) for usage tips.""")
|
|
|
|
|
|
|
| 411 |
|
| 412 |
with gr.Row():
|
| 413 |
# Left Column: Control Vectors and advanced settings
|