Fix pipeline parallel with embed scaling in the Transformers modelling backend (#35094)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -191,6 +191,7 @@ class Base(
|
|||||||
self.attention_instances = self.create_attention_instances()
|
self.attention_instances = self.create_attention_instances()
|
||||||
|
|
||||||
# Input embeddings
|
# Input embeddings
|
||||||
|
self.embed_scale = None
|
||||||
input_embeddings = self.model.get_input_embeddings()
|
input_embeddings = self.model.get_input_embeddings()
|
||||||
if not isinstance(input_embeddings, PPMissingLayer):
|
if not isinstance(input_embeddings, PPMissingLayer):
|
||||||
# Some models scale embeddings inside the input embedding layer
|
# Some models scale embeddings inside the input embedding layer
|
||||||
|
|||||||
Reference in New Issue
Block a user