Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
s5u13b committed Oct 22, 2024
1 parent a5b2351 commit afe166e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llumnix/backends/backend_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def remove_waiting_request(self, request_id: str) -> bool:
Args:
request_id: A string identifier for the request that is to be removed from the waiting
queue. This ID uniquely identifies the request within the backend system.
Returns:
True if the request was successfully removed from the waiting queue, False otherwise.
"""
Expand Down
3 changes: 2 additions & 1 deletion llumnix/backends/vllm/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def _get_instance_info(self, scheduled_seq_groups: List[SequenceGroupLlumnix]) -
instance_info.inference_type = scheduled_seq_groups[-1].inference_type
# TODO(ZeldaHuang) adapt chunked-prefill
instance_info.num_batched_tokens = sum([seq_group.request_len for seq_group in scheduled_seq_groups]) \
if instance_info.inference_type == RequestInferenceType.PREFILL else len(instance_info.running_seq_lens)
if instance_info.inference_type == RequestInferenceType.PREFILL \
else len(instance_info.running_seq_lens)
instance_info.finished_request_ids = [seq_group.request_id for seq_group in self.running if seq_group.finished]
return instance_info

Expand Down
2 changes: 0 additions & 2 deletions llumnix/backends/vllm/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import math

from vllm.sequence import SequenceGroup, SequenceStatus

from llumnix.llumlet.request import LlumnixRequest, RequestInferenceType, RequestStatus
Expand Down

0 comments on commit afe166e

Please sign in to comment.