Update modeling_mobilellm.py
Browse files- modeling_mobilellm.py +3 -3
modeling_mobilellm.py
CHANGED
@@ -1145,9 +1145,9 @@ class MobileLLMForCausalLM(LlamaPreTrainedModel):
|
|
1145 |
|
1146 |
def get_output_embeddings(self):
|
1147 |
return (
|
1148 |
-
self.
|
1149 |
-
if
|
1150 |
-
else self.
|
1151 |
)
|
1152 |
|
1153 |
def set_output_embeddings(self, new_embeddings):
|
|
|
1145 |
|
1146 |
def get_output_embeddings(self):
|
1147 |
return (
|
1148 |
+
self.get_input_embeddings()
|
1149 |
+
if getattr(self.config, "share_embedding", True)
|
1150 |
+
else self.lm_head
|
1151 |
)
|
1152 |
|
1153 |
def set_output_embeddings(self, new_embeddings):
|