mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 00:12:08 +00:00
Fixing Phi3.
This commit is contained in:
parent
c46a223a6d
commit
7752f1050b
@ -52,7 +52,8 @@ if SYSTEM == "rocm":
|
||||
|
||||
|
||||
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 config.model_type == "phi3":
|
||||
|
Loading…
Reference in New Issue
Block a user