Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/e2e/test_logits_processors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Optional

import pytest
import torch
from llm_cache import patch_environment
from spyre_util import ModelInfo
Expand Down Expand Up @@ -54,8 +55,9 @@ def apply(self, logits: torch.Tensor) -> torch.Tensor:
assert has_invoked_logits_processor


@pytest.mark.cb
def test_cb_logits_processor(model: ModelInfo, backend, monkeypatch,
warmup_shapes, max_model_len, cb):
max_model_len):
'''
Test if the state of logits for CB are correct due to the switch of
prefill/decode in a step engine. The LLM is initialized with bs=2,
Expand Down