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
8baf9a0c
Unverified
Commit
8baf9a0c
authored
Mar 18, 2025
by
Wei Wu
Committed by
GitHub
Mar 18, 2025
Browse files
[Fix] Type annotation correction for UpdateWeightsFromTensorReqInput (#4532)
Co-authored-by:
Zhiqiang Xie
<
xiezhq@stanford.edu
>
parent
c7872985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/managers/io_struct.py
python/sglang/srt/managers/io_struct.py
+2
-1
No files found.
python/sglang/srt/managers/io_struct.py
View file @
8baf9a0c
...
@@ -540,7 +540,8 @@ class UpdateWeightsFromDistributedReqOutput:
...
@@ -540,7 +540,8 @@ class UpdateWeightsFromDistributedReqOutput:
@
dataclass
@
dataclass
class
UpdateWeightsFromTensorReqInput
:
class
UpdateWeightsFromTensorReqInput
:
serialized_named_tensors
:
bytes
# indeed Dict[str, torch.Tensor]
# List containing one serialized Dict[str, torch.Tensor] per TP worker
serialized_named_tensors
:
List
[
bytes
]
load_format
:
Optional
[
str
]
load_format
:
Optional
[
str
]
flush_cache
:
bool
flush_cache
:
bool
...
...
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