Commit 8335b49
authored
Modify image embedding return for Llava compatibility (#147)
* Modify image embedding return for Llava compatibility
For `Gemma3` we don't need to unsqueeze the image embedding. For `Llava` we got a list of 2D tensors and here I'm assuming it only contains 1 tensor.
https://github.com/huggingface/transformers/blob/main/src/transformers/models/llava/modeling_llava.py#L214
* Address comments1 parent 08b55f1 commit 8335b49
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments