Commit 799a193b authored by Nicolas Patry's avatar Nicolas Patry
Browse files

Fixing Phi3.

parent 08b3eac2
...@@ -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":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment