Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
93cf7fc5
Unverified
Commit
93cf7fc5
authored
Mar 24, 2025
by
c1lovez1
Committed by
GitHub
Mar 23, 2025
Browse files
Unify variable naming: replace is_in_free_group with is_not_in_free_group (#4698)
parent
2a206b22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/mem_cache/memory_pool.py
python/sglang/srt/mem_cache/memory_pool.py
+1
-1
python/sglang/srt/mem_cache/paged_allocator.py
python/sglang/srt/mem_cache/paged_allocator.py
+1
-1
No files found.
python/sglang/srt/mem_cache/memory_pool.py
View file @
93cf7fc5
...
@@ -190,7 +190,7 @@ class TokenToKVPoolAllocator:
...
@@ -190,7 +190,7 @@ class TokenToKVPoolAllocator:
self
.
free_slots
=
torch
.
arange
(
self
.
free_slots
=
torch
.
arange
(
1
,
self
.
size
+
1
,
dtype
=
torch
.
int64
,
device
=
self
.
device
1
,
self
.
size
+
1
,
dtype
=
torch
.
int64
,
device
=
self
.
device
)
)
self
.
is_in_free_group
=
Fals
e
self
.
is_
not_
in_free_group
=
Tru
e
self
.
free_group
=
[]
self
.
free_group
=
[]
...
...
python/sglang/srt/mem_cache/paged_allocator.py
View file @
93cf7fc5
...
@@ -279,5 +279,5 @@ class PagedTokenToKVPoolAllocator:
...
@@ -279,5 +279,5 @@ class PagedTokenToKVPoolAllocator:
self
.
free_pages
=
torch
.
arange
(
self
.
free_pages
=
torch
.
arange
(
1
,
self
.
num_pages
+
1
,
dtype
=
torch
.
int64
,
device
=
self
.
device
1
,
self
.
num_pages
+
1
,
dtype
=
torch
.
int64
,
device
=
self
.
device
)
)
self
.
is_in_free_group
=
Fals
e
self
.
is_
not_
in_free_group
=
Tru
e
self
.
free_group
=
[]
self
.
free_group
=
[]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment