Old config support ?

This commit is contained in:
Nicolas Patry 2024-05-13 10:32:29 +00:00
parent b7c26f0f46
commit dbc8a65a5d

View File

@ -193,7 +193,7 @@ class LlamaMLP(nn.Module):
) )
) )
# Fuse gate and up proj # Fuse gate and up proj
bias = config.mlp_bias bias = getattr(config, "mlp_bias", False)
if config.model_type == "phi3": if config.model_type == "phi3":
self.gate_up_proj = TensorParallelColumnLinear.load_gate_up( self.gate_up_proj = TensorParallelColumnLinear.load_gate_up(
config, config,