[Fix] Fix unexpected idx bug of Phi-3-small (#4728)
This commit is contained in:
@@ -301,7 +301,7 @@ class Phi3SmallModel(nn.Module):
|
|||||||
self.mup_embedding_multiplier = config.mup_embedding_multiplier
|
self.mup_embedding_multiplier = config.mup_embedding_multiplier
|
||||||
self.start_layer, self.end_layer, self.layers = make_layers(
|
self.start_layer, self.end_layer, self.layers = make_layers(
|
||||||
config.num_hidden_layers,
|
config.num_hidden_layers,
|
||||||
lambda prefix: Phi3SmallDecoderLayer(
|
lambda idx, prefix: Phi3SmallDecoderLayer(
|
||||||
config,
|
config,
|
||||||
int(prefix.split(".")[-1]),
|
int(prefix.split(".")[-1]),
|
||||||
quant_config,
|
quant_config,
|
||||||
|
|||||||
Reference in New Issue
Block a user