iandennismiller commited on
Commit
904eb75
1 Parent(s): ccefb81

update for dolphin

Browse files
bin/llama.sh CHANGED
@@ -70,6 +70,9 @@ function llama_interactive {
70
 
71
  function get_model_prefix {
72
  case $1 in
 
 
 
73
  *guanaco*)
74
  printf "### Human: "
75
  ;;
@@ -85,9 +88,6 @@ function get_model_prefix {
85
  *orca*)
86
  printf "### User: "
87
  ;;
88
- chatml)
89
- printf "<|im_start|>user\\\n"
90
- ;;
91
  *)
92
  printf "Input: "
93
  ;;
@@ -96,6 +96,9 @@ function get_model_prefix {
96
 
97
  function get_model_suffix {
98
  case $1 in
 
 
 
99
  *guanaco*)
100
  printf "### Assistant:"
101
  ;;
@@ -111,9 +114,6 @@ function get_model_suffix {
111
  *orca*)
112
  printf "### Response:"
113
  ;;
114
- chatml)
115
- printf "<|im_end|>\n<|im_start|>assistant\\\n"
116
- ;;
117
  *)
118
  printf "Output:"
119
  ;;
@@ -128,6 +128,9 @@ function get_model_prompt {
128
  *alpaca*|*upstage*|*airoboros*|*hermes*)
129
  echo "$LLAMA_PROMPT_PATH/alpaca.txt"
130
  ;;
 
 
 
131
  *vicuna*|*wizardlm*)
132
  echo "$LLAMA_PROMPT_PATH/vicuna-v11.txt"
133
  ;;
@@ -137,9 +140,12 @@ function get_model_prompt {
137
  *samantha*)
138
  echo "$LLAMA_PROMPT_PATH/samantha.txt"
139
  ;;
140
- *based*|*yi*)
141
  echo "$LLAMA_PROMPT_PATH/based.txt"
142
  ;;
 
 
 
143
  *orca*)
144
  echo "$LLAMA_PROMPT_PATH/orca.txt"
145
  ;;
 
70
 
71
  function get_model_prefix {
72
  case $1 in
73
+ chatml|*dolphin*)
74
+ printf "<|im_start|>user\\\n"
75
+ ;;
76
  *guanaco*)
77
  printf "### Human: "
78
  ;;
 
88
  *orca*)
89
  printf "### User: "
90
  ;;
 
 
 
91
  *)
92
  printf "Input: "
93
  ;;
 
96
 
97
  function get_model_suffix {
98
  case $1 in
99
+ chatml|*dolphin*)
100
+ printf "<|im_end|>\n<|im_start|>assistant\\\n"
101
+ ;;
102
  *guanaco*)
103
  printf "### Assistant:"
104
  ;;
 
114
  *orca*)
115
  printf "### Response:"
116
  ;;
 
 
 
117
  *)
118
  printf "Output:"
119
  ;;
 
128
  *alpaca*|*upstage*|*airoboros*|*hermes*)
129
  echo "$LLAMA_PROMPT_PATH/alpaca.txt"
130
  ;;
131
+ *dolphin*)
132
+ echo "$LLAMA_PROMPT_PATH/chatml-gpt.txt"
133
+ ;;
134
  *vicuna*|*wizardlm*)
135
  echo "$LLAMA_PROMPT_PATH/vicuna-v11.txt"
136
  ;;
 
140
  *samantha*)
141
  echo "$LLAMA_PROMPT_PATH/samantha.txt"
142
  ;;
143
+ *based*)
144
  echo "$LLAMA_PROMPT_PATH/based.txt"
145
  ;;
146
+ *yi*)
147
+ echo "$LLAMA_PROMPT_PATH/yi.txt"
148
+ ;;
149
  *orca*)
150
  echo "$LLAMA_PROMPT_PATH/orca.txt"
151
  ;;
share/prompts/chatml-gpt.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ <|im_start|>system
2
+ You are an AI assistant that follows instruction extremely well. Help as much as you can.<|im_end|>
share/prompts/orca.txt CHANGED
@@ -1,4 +1,2 @@
1
  ### System:
2
  You are an AI assistant that follows instruction extremely well. Help as much as you can.
3
-
4
-
 
1
  ### System:
2
  You are an AI assistant that follows instruction extremely well. Help as much as you can.
 
 
share/prompts/yi.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ You are an AI assistant that follows instruction extremely well. Help as much as you can.