Skip to content

Commit

Permalink
[Misc] Remove unused vllm/block.py (vllm-project#11336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghjk94522 authored Dec 19, 2024
1 parent 276738c commit e461c26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 90 deletions.
88 changes: 0 additions & 88 deletions vllm/block.py

This file was deleted.

4 changes: 2 additions & 2 deletions vllm/core/evictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class EvictionPolicy(enum.Enum):

class Evictor(ABC):
"""The Evictor subclasses should be used by the BlockAllocator class to
handle eviction of freed PhysicalTokenBlocks.
handle eviction of freed Blocks.
"""

@abstractmethod
Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, content_hash: int, num_hashed_tokens: int,

class LRUEvictor(Evictor):
"""Evicts in a least-recently-used order using the last_accessed timestamp
that's recorded in the PhysicalTokenBlock. If there are multiple blocks with
that's recorded in the Block. If there are multiple blocks with
the same last_accessed time, then the one with the largest num_hashed_tokens
will be evicted. If two blocks each have the lowest last_accessed time and
highest num_hashed_tokens value, then one will be chose arbitrarily
Expand Down

0 comments on commit e461c26

Please sign in to comment.