Update README.md
Browse files
README.md
CHANGED
@@ -32,7 +32,7 @@ tokenizer = AutoTokenizer.from_pretrained(
|
|
32 |
)
|
33 |
tokenizer.pad_token = tokenizer.eos_token
|
34 |
text = "This is text."
|
35 |
-
|
36 |
```
|
37 |
|
38 |
To modify the latent feature $h_0$ (`SCAR.hook.mod_features = 0`) of the SAE do the following:
|
@@ -40,7 +40,7 @@ To modify the latent feature $h_0$ (`SCAR.hook.mod_features = 0`) of the SAE do
|
|
40 |
SCAR.hook.mod_features = 0
|
41 |
SCAR.hook.mod_scaling = -100.0
|
42 |
output = SCAR.generate(
|
43 |
-
**
|
44 |
do_sample=False,
|
45 |
temperature=None,
|
46 |
top_p=None,
|
|
|
32 |
)
|
33 |
tokenizer.pad_token = tokenizer.eos_token
|
34 |
text = "This is text."
|
35 |
+
inputs = tokenizer(text, return_tensors="pt", padding=True)
|
36 |
```
|
37 |
|
38 |
To modify the latent feature $h_0$ (`SCAR.hook.mod_features = 0`) of the SAE do the following:
|
|
|
40 |
SCAR.hook.mod_features = 0
|
41 |
SCAR.hook.mod_scaling = -100.0
|
42 |
output = SCAR.generate(
|
43 |
+
**inputs,
|
44 |
do_sample=False,
|
45 |
temperature=None,
|
46 |
top_p=None,
|