We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8306602 commit ea3a08eCopy full SHA for ea3a08e
kvpress/pipeline.py
@@ -134,7 +134,7 @@ def preprocess(
134
context = bos_token + context
135
question_suffix = "\n" # to separate the question from the answer
136
else:
137
- separator = "\n" + "#" * len(context)
+ separator = "#" * (len(context) + 10)
138
context = self.tokenizer.apply_chat_template(
139
[{"role": "user", "content": context + separator}],
140
add_generation_prompt=True,
0 commit comments