Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,24 @@ tags: []
|
|
7 |
|
8 |
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
## Model Details
|
13 |
|
|
|
7 |
|
8 |
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
|
10 |
+
## How to load the model
|
11 |
+
|
12 |
+
This repository contains the weights and tokenizer for a circuit-broken "mistralai/Mistral-7B-v0.1".
|
13 |
+
During training we added a padding token, so you should only use the model together with this the tokenizer in this repository to avoid errors.
|
14 |
+
|
15 |
+
Example coding for loading:
|
16 |
+
```
|
17 |
+
model = AutoModelForCausalLM.from_pretrained(
|
18 |
+
"FelixHofstaetter/mistral-7b-sandbagging-cb-new",
|
19 |
+
# other loading arguments
|
20 |
+
)
|
21 |
+
|
22 |
+
# only use the tokenizer from this repository for the model to avoid errors
|
23 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
24 |
+
"FelixHofstaetter/mistral-7b-sandbagging-cb-new",
|
25 |
+
# other tokenizer arguments
|
26 |
+
)
|
27 |
+
```
|
28 |
|
29 |
## Model Details
|
30 |
|