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
OpenDAS
text-generation-inference
Commits
799a193b
Commit
799a193b
authored
Jun 01, 2024
by
Nicolas Patry
Browse files
Fixing Phi3.
parent
08b3eac2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
...ion_server/models/custom_modeling/flash_llama_modeling.py
+2
-1
No files found.
server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
View file @
799a193b
...
@@ -52,7 +52,8 @@ if SYSTEM == "rocm":
...
@@ -52,7 +52,8 @@ if SYSTEM == "rocm":
def
load_attention
(
config
,
prefix
,
weights
):
def
load_attention
(
config
,
prefix
,
weights
):
bias
=
config
.
attention_bias
# Only defined in granite.
bias
=
getattr
(
config
,
"attention_bias"
,
False
)
# if specific model type, load the correct attention
# if specific model type, load the correct attention
if
config
.
model_type
==
"phi3"
:
if
config
.
model_type
==
"phi3"
:
...
...
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