Skip to content

Commit

Permalink
use default embed_scale
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Aug 23, 2024
1 parent 8ba828c commit e81a177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ctranslate2/converters/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def set_attention(self, spec, attention, self_attention=False):
self.set_linear(spec.linear[-1], attention.out_proj)

def set_common_layers(self, spec, module):
spec.scale_embeddings = module.embed_scale
spec.scale_embeddings = getattr(module, 'embed_scale', False)
self.set_position_encodings(spec.position_encodings, module.embed_positions)
self.set_embeddings(
(
Expand Down

0 comments on commit e81a177

Please sign in to comment.