zechunliu commited on
Commit
9c91562
1 Parent(s): 767ed57

Update modeling_mobilellm.py

Browse files
Files changed (1) hide show
  1. 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.lm_head
1149
- if not getattr(self.config, "share_embedding", False)
1150
- else self.get_input_embeddings()
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):