Skip to content

Commit

Permalink
fix pixtral language only
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaizzy committed Dec 31, 2024
1 parent 2a97875 commit cdb722c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlx_vlm/models/pixtral/pixtral.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_input_embeddings(
pixel_values: Optional[mx.array] = None,
):
if pixel_values is None:
return self.language_model(input_ids)
return self.language_model.model.embed_tokens(input_ids)

# Get the input embeddings from the language model
inputs_embeds = self.language_model.model.embed_tokens(input_ids)
Expand Down

0 comments on commit cdb722c

Please sign in to comment.