pcuenq HF staff commited on
Commit
099e2ee
1 Parent(s): 3777798

Remove initial bos

Browse files

In this case, the tokenizer runs in the server.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ examples=[
36
  def predict(message, chatbot):
37
  # The first user message is _not_ stripped
38
  do_strip = False
39
- input_prompt = f"<s>[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n "
40
  for interaction in chatbot:
41
  user_message = str(interaction[0])
42
  user_message = user_message.strip() if do_strip else user_message
 
36
  def predict(message, chatbot):
37
  # The first user message is _not_ stripped
38
  do_strip = False
39
+ input_prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n "
40
  for interaction in chatbot:
41
  user_message = str(interaction[0])
42
  user_message = user_message.strip() if do_strip else user_message