Text Generation
Transformers
Safetensors
English
kgreenewald commited on
Commit
81af562
·
verified ·
1 Parent(s): 58e2c2f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -0
README.md CHANGED
@@ -85,6 +85,11 @@ tokenizer = AutoTokenizer.from_pretrained(BASE_NAME,padding_side='left',trust_re
85
  model_base = AutoModelForCausalLM.from_pretrained(BASE_NAME,device_map="auto")
86
  model_rewrite = aLoRAPeftModelForCausalLM.from_pretrained(model_base, LORA_NAME)
87
 
 
 
 
 
 
88
  # Input conversation
89
  conv = [
90
  {
 
85
  model_base = AutoModelForCausalLM.from_pretrained(BASE_NAME,device_map="auto")
86
  model_rewrite = aLoRAPeftModelForCausalLM.from_pretrained(model_base, LORA_NAME)
87
 
88
+ INSTRUCTION_TEXT = "Reword the final utterance from the USER into a single utterance that doesn't need the prior conversation history to understand the user's intent. If the final utterance is a clear and standalone question, please DO NOT attempt to rewrite it, rather output the last user utterance as is. "
89
+ JSON = "Your output format should be in JSON: { \"rewritten_question\": <REWRITE> }"
90
+ REWRITE_PROMPT = "<|start_of_role|>rewrite: " + INSTRUCTION_TEXT + JSON + "<|end_of_role|>"
91
+
92
+
93
  # Input conversation
94
  conv = [
95
  {