FelixHofstaetter commited on
Commit
a255a07
·
verified ·
1 Parent(s): a8092d7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -7,6 +7,24 @@ tags: []
7
 
8
  <!-- Provide a quick summary of what the model is/does. -->
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
 
12
  ## Model Details
 
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-Instruct-v0.2".
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-instruct-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-instruct-sandbagging-cb-new",
25
+ # other tokenizer arguments
26
+ )
27
+ ```
28
 
29
 
30
  ## Model Details