Skip to content

Commit 82b04c5

Browse files
继优Simon-Lichus-chus
committed
set the start_layer in the init only.
Co-authored-by: Simon-Li <[email protected]> Co-authored-by: chus-chus <[email protected]>
1 parent 357fb2d commit 82b04c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/sglang/srt/mem_cache/memory_pool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ def __init__(
925925
super().__init__(
926926
device_pool, host_to_device_ratio, host_size, pin_memory, device, page_size
927927
)
928+
self.start_layer = device_pool.start_layer
928929

929930
def get_size_per_token(self):
930931
self.head_num = self.device_pool.head_num
@@ -1008,6 +1009,7 @@ def __init__(
10081009
super().__init__(
10091010
device_pool, host_to_device_ratio, host_size, pin_memory, device, page_size
10101011
)
1012+
self.start_layer = device_pool.start_layer
10111013

10121014
def get_size_per_token(self):
10131015
self.kv_lora_rank = self.device_pool.kv_lora_rank

0 commit comments

Comments
 (0)