Skip to content

Commit 92f8533

Browse files
committed
Address PR feedback
Signed-off-by: SimJeg <[email protected]>
1 parent 083fe9c commit 92f8533

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

evaluation/evaluate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,7 @@ def _load_and_prepare_dataset(self):
329329
# FinchPress uses a delimiter token to separate context and question
330330
# So we need to update the tokenizer and the model embeddings.
331331
logger.info("FinchPress detected, updating model and tokenizer with delimiter token.")
332-
self.press.update_model_and_tokenizer(
333-
self.pipeline.model, self.pipeline.tokenizer
334-
) # type: ignore[attr-defined]
332+
self.press.update_model_and_tokenizer(self.pipeline.model, self.pipeline.tokenizer) # type: ignore[attr-defined]
335333
df["context"] = df["context"] + self.press.delimiter_token # type: ignore[attr-defined, index]
336334

337335
if self.config.compress_questions:

tests/test_decoding_compression.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,6 @@ def test_all_presses_work_with_decoding_press(press_config):
239239
# CompactorPress -> Meant for prefill scenario.
240240
logger.info(f"Press {press_cls.__name__} is not supported, skipping test")
241241
return
242-
if hasattr(base_press, "post_init_from_model"):
243-
base_press.post_init_from_model(pipe.model)
244242

245243
# Create DecodingPress with this base press
246244
decoding_press = DecodingPress(base_press=base_press, compression_interval=3, target_size=48)

tests/test_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from tests.fixtures import kv_press_llama3_2_flash_attn_pipeline, kv_press_unit_test_pipeline # noqa: F401
1818

1919

20-
@pytest.mark.skip(reason="Non kvpress related error")
20+
@pytest.mark.xfail(reason="Known issue not related to kvpress", strict=False)
2121
def test_pipeline(kv_press_unit_test_pipeline, caplog): # noqa: F811
2222
with caplog.at_level(logging.DEBUG):
2323
context = "This is a test article. It was written on 2022-01-01."

0 commit comments

Comments
 (0)