Text Generation
Transformers
Safetensors
English
llama
finance
text-generation-inference
Inference Endpoints
instruction-pretrain commited on
Commit
04de3ba
1 Parent(s): 9242acf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -108,6 +108,33 @@ You can use the following script to reproduce our results and evaluate any other
108
  bash scripts/inference.sh ${DOMAIN} ${MODEL} ${add_bos_token} ${MODEL_PARALLEL} ${N_GPU}
109
  ```
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
  ## Citation
113
  If you find our work helpful, please cite us:
 
108
  bash scripts/inference.sh ${DOMAIN} ${MODEL} ${add_bos_token} ${MODEL_PARALLEL} ${N_GPU}
109
  ```
110
 
111
+ ## FAQ on Continual Pre-Training from LLama3
112
+ **Q1: Do you use the official Llama3 instruction prompt for pre-training?**
113
+
114
+ 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.
115
+
116
+ **Q2: For the general instructions from OpenOrca, do you concatenate each instruction with its output using '\n'?**
117
+
118
+ 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.
119
+
120
+ Note that when using our templated instruction-augmented texts, you don't need to add any concatenations.
121
+
122
+ **Q3: What about those system prompts in OpenOrca?**
123
+
124
+ We simply discard the system prompts.
125
+
126
+ **To put it all together, the text before tokenization looks like this:**
127
+
128
+ `general_instruction_response_text = "<|begin_of_text|>{question} {response}<|end_of_text|>"`
129
+
130
+ or
131
+
132
+ `instruction_augmented_text = "<|begin_of_text|>{instruction augmented text}<|end_of_text|>"`
133
+
134
+ Then, for tokenization, you don't need to add BOS and EOS token ids. The tokenization code looks like this:
135
+
136
+ `text_ids = tokenizer(text, add_special_tokens=False, **kwargs).input_ids`
137
+
138
 
139
  ## Citation
140
  If you find our work helpful, please cite us: