Skip to content

Commit

Permalink
fix encoder states
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaizzy committed May 22, 2024
1 parent d88d1af commit c25d9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlx_vlm/models/paligemma/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __call__(
for l in self.layers:
x = l(x, mask=mask)
if output_hidden_states:
encoder_states = encoder_states + (h,)
encoder_states = encoder_states + (x,)

h = x[0]

Expand Down

0 comments on commit c25d9c0

Please sign in to comment.