Skip to content

Commit

Permalink
Remove old filter
Browse files Browse the repository at this point in the history
  • Loading branch information
s5u13b committed Feb 7, 2025
1 parent f2df197 commit b4a45ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 1 addition & 12 deletions llumnix/backends/vllm/llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from vllm.engine.async_llm_engine import _AsyncLLMEngine
from vllm.outputs import RequestOutput
from vllm.sequence import SequenceGroup, SequenceStatus, SequenceGroupOutput
from vllm.sequence import SequenceGroup, SequenceStatus
from vllm.engine.arg_utils import EngineArgs
from vllm.utils import Counter
from vllm.usage.usage_lib import UsageContext
Expand All @@ -49,16 +49,6 @@
NO_OUTPUTS_STEP_INTERVAL = 0.01


class SingleStepOutputProcessorLlumnix(SingleStepOutputProcessor):
def _process_sequence_group_outputs(self,
seq_group: SequenceGroup,
outputs: SequenceGroupOutput,
is_async: bool) -> None:
# if RequestStatus.is_migrating(seq_group.status):
# return
super()._process_sequence_group_outputs(seq_group, outputs, is_async)


class LLMEngineLlumnix(_AsyncLLMEngine):
def __init__(self,
instance_id: str,
Expand All @@ -68,7 +58,6 @@ def __init__(self,
# pylint: disable=import-outside-toplevel
import vllm.outputs
vllm.outputs.RequestOutputFactory.create = LlumnixRequestOutputFactory.create
vllm.engine.output_processor.single_step.SingleStepOutputProcessor = SingleStepOutputProcessorLlumnix
super().__init__(*arg, **kwargs)
self.instance_id = instance_id
self.step_counter = Counter()
Expand Down
2 changes: 0 additions & 2 deletions llumnix/backends/vllm/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ def create(seq_group: SequenceGroupLlumnix, use_cache: bool = False):
if hasattr(seq_group,
'embeddings') and seq_group.embeddings is not None:
return EmbeddingRequestOutput.from_seq_group(seq_group), seq_group.server_info
# if RequestStatus.is_migrating(seq_group.status):
# return None
# pylint: disable=too-many-function-args
return RequestOutput.from_seq_group(seq_group, use_cache), seq_group.server_info

0 comments on commit b4a45ef

Please sign in to comment.