Skip to content

Commit a8edf82

Browse files
committed
Fix empty context
Signed-off-by: SimJeg <[email protected]>
1 parent 8306602 commit a8edf82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kvpress/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def preprocess(
134134
context = bos_token + context
135135
question_suffix = "\n" # to separate the question from the answer
136136
else:
137-
separator = "\n" + "#" * len(context)
137+
separator = "#" * (len(context) + 10)
138138
context = self.tokenizer.apply_chat_template(
139139
[{"role": "user", "content": context + separator}],
140140
add_generation_prompt=True,

0 commit comments

Comments
 (0)