instruction-pretrain
commited on
Commit
•
2e7b4f8
1
Parent(s):
e8ab991
Update README.md
Browse files
README.md
CHANGED
@@ -111,6 +111,32 @@ You can use the following script to reproduce our results and evaluate any other
|
|
111 |
bash scripts/inference.sh ${DOMAIN} ${MODEL} ${add_bos_token} ${MODEL_PARALLEL} ${N_GPU}
|
112 |
```
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
|
116 |
## Citation
|
|
|
111 |
bash scripts/inference.sh ${DOMAIN} ${MODEL} ${add_bos_token} ${MODEL_PARALLEL} ${N_GPU}
|
112 |
```
|
113 |
|
114 |
+
## FAQ on Continual Pre-Training from LLama3
|
115 |
+
**Q1: Do you use the official Llama3 instruction prompt for pre-training?**
|
116 |
+
|
117 |
+
No, the provided Llama3 instruction prompt is designed for the [instruction-tuned model](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct), but our continual pre-training is conducted on the [pre-trained base model](https://huggingface.co/meta-llama/Meta-Llama-3-8B) where only BOS (`<|begin_of_text|>`) and EOS (`<|end_of_text|>`) tokens are required.
|
118 |
+
|
119 |
+
**Q2: For the general instructions from OpenOrca, do you concatenate each instruction with its output using '\n'?**
|
120 |
+
|
121 |
+
No, as mentioned in the pre-training suggestions, we use a simple whitespace to concatenate each question with its response for the general instruction data from OpenOrca. This is because OpenOrca's data is already templated with diverse natural languge templates (such as those with `\n`), so a whitespace is sufficient to formulate the data.
|
122 |
+
|
123 |
+
Note that when using our templated instruction-augmented texts, you don't need to add any concatenations.
|
124 |
+
|
125 |
+
**Q3: What about those system prompts in OpenOrca?**
|
126 |
+
|
127 |
+
We simply discard the system prompts.
|
128 |
+
|
129 |
+
**To put it all together, the text before tokenization looks like this:**
|
130 |
+
|
131 |
+
`general_instruction_response_text = "<|begin_of_text|>{question} {response}<|end_of_text|>"`
|
132 |
+
|
133 |
+
or
|
134 |
+
|
135 |
+
`instruction_augmented_text = "<|begin_of_text|>{instruction augmented text}<|end_of_text|>"`
|
136 |
+
|
137 |
+
Then, for tokenization, you don't need to add BOS and EOS token ids. The tokenization code looks like this:
|
138 |
+
|
139 |
+
`text_ids = tokenizer(text, add_special_tokens=False, **kwargs).input_ids`
|
140 |
|
141 |
|
142 |
## Citation
|