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
44f011d2
Unverified
Commit
44f011d2
authored
Dec 27, 2024
by
fzyzcjy
Committed by
GitHub
Dec 26, 2024
Browse files
Super tiny typo fix (#2564)
parent
ed91e003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/models/llama.py
python/sglang/srt/models/llama.py
+2
-2
No files found.
python/sglang/srt/models/llama.py
View file @
44f011d2
...
...
@@ -325,8 +325,8 @@ class LlamaForCausalLM(nn.Module):
self
.
config
=
config
self
.
quant_config
=
quant_config
self
.
model
=
LlamaModel
(
config
,
quant_config
=
quant_config
)
# Llama 3.2 1B Inst
u
rct set tie_word_embeddings to True
# Llama 3.1 8B Inst
u
rct set tie_word_embeddings to False
# Llama 3.2 1B Instr
u
ct set tie_word_embeddings to True
# Llama 3.1 8B Instr
u
ct set tie_word_embeddings to False
if
self
.
config
.
tie_word_embeddings
:
self
.
lm_head
=
self
.
model
.
embed_tokens
else
:
...
...
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