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
6d08ce2a
"tools/vscode:/vscode.git/clone" did not exist on "b0a8831cb8519e94e2833fa89278db0df4621d30"
Unverified
Commit
6d08ce2a
authored
Jan 07, 2025
by
HAI
Committed by
GitHub
Jan 07, 2025
Browse files
Use Optional with None default (#2770)
parent
380930a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/models/grok.py
python/sglang/srt/models/grok.py
+1
-1
No files found.
python/sglang/srt/models/grok.py
View file @
6d08ce2a
...
...
@@ -376,7 +376,7 @@ class Grok1ForCausalLM(nn.Module):
def
load_weights
(
self
,
weights
:
Iterable
[
Tuple
[
str
,
torch
.
Tensor
]],
use_presharded_weights
:
bool
|
None
=
None
,
use_presharded_weights
:
Optional
[
bool
]
=
None
,
):
if
use_presharded_weights
is
None
:
use_presharded_weights
=
self
.
use_presharded_weights
...
...
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