Pablo Montalvo
1360801a69
Add PaliGemma (#30814)
* add new model like
* add state dict slicing + new model config
* update palma config and weights, passes vision activations
* fix
* update
* reorder loading/unpacking
* clean up
* add debug statements
* change device
* fix
* debugging
* fix noncausal mask
* fixup sdpa + causal mask
* fix activation function
* remove debug before changing modeling file
* add variants
* debug attention mask in generate
* revert to non-debug sdpa
* revert gemma modifications
* add custom language modeling
* use Processor
* add language modeling file to init
* try thin wrapper around generate
* Update
* update mask
* breakpoints galore
* remove conflict
* switch to left-padding
* add incomplete model doc
* add paligemma global files
* batch rename paligemma
* make generation match outputs and captioning
* style
* style
* remove copied from + doc
* remove more copied from
* remove copy from projector
* minor fix
* update config and style
* add readme - dummy
* CORRECT image captioning
* moving to args
* add siglip proper + fix merging image + text features
* take update_causal_mask from upstream
* remove breakpoint
* leverage AutoModel
* fix input_ids slicing
* make siglip head conditional
* remove encoder_decoder value
* remove unneeded modeling file
* add commented 4d attention mask
* FIXED generation with 4D mask
* Update src/transformers/models/siglip/modeling_siglip.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* fix left padding detection
* shuffle order of verifications
* fix missing labels for training
* fix
* vectorize merging of features, improve slicing
* improve testing before conversion
* handle merging in processor
* image token index depends on checkpoint
* add variants, save processor too
* save processors, base tokenizer off spm file
* expand model embeddings due to additional image token
* pass image processing args
* add convert rgb to siglip processor
* add \n token separately
* fix tokenizer and prompts
* fix docstrings
* change to camel
* fix casing
* debug pos_ids and sdpa
* pass and use cache_position
* add flag for newline tokenization
* Update src/transformers/models/paligemma/processing_paligemma.py
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
* simplify conversion script
* add copied from
* add precision to conversion script
* Update src/transformers/models/paligemma/modeling_paligemma.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
* clean up
* Shift attention mask from `1:`
After discussion with @molbap
* add docs, fix quality
* quality, tied weights inheritance, and logits/label alignment
* fix more tests
* pass attn_implementation to language model correctly
* add SiglipVisionTransformer to no split modules
* skip paligemma test for sdpa dispatch to flash
* skip incompatible tests
* quality
* [broken archive maps]
* Apply suggestions
- remove archive lists
- style
- take shape of inputs_embeds for batch
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* Update src/transformers/utils/dummy_pt_objects.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* simplify conversion script
* add suggestions
* add suggestions
* add copied from
* fix
* move labels out
* revert
* fix
* remove placeholder labels if None
* use cache_position
* fix quality + docstrings
* fix quality
* fix paligemma 4d gemma mask incompatibility
* fix config docstring
* fix query and attn_mask dtype
---------
Co-authored-by: ArthurZucker <arthur.zucker@gmail.com>
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
2024-05-14 22:07:15 +02:00
..
2024-03-25 10:33:38 +01:00
2024-05-01 12:33:00 +05:00
2024-03-25 10:33:38 +01:00
2024-04-15 09:36:06 +01:00
2024-04-05 17:49:46 +02:00
2024-03-12 17:46:19 +00:00
2024-05-01 12:33:00 +05:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-04-26 16:23:44 +01:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-04-19 17:32:52 +01:00
2024-04-02 09:51:45 +02:00
2024-03-25 10:33:38 +01:00
2024-03-08 10:06:46 +00:00
2024-03-13 14:53:27 +01:00
2024-05-13 12:20:16 +01:00
2024-05-13 12:20:16 +01:00
2024-03-25 10:33:38 +01:00
2024-05-01 12:33:00 +05:00
2024-04-15 16:30:52 +01:00
2024-03-25 10:33:38 +01:00
2024-03-13 14:53:27 +01:00
2024-05-01 12:33:00 +05:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-13 14:53:27 +01:00
2024-04-17 12:19:18 +02:00
2024-05-08 18:26:34 +01:00
2024-05-01 12:33:00 +05:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2023-03-22 20:02:24 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-08 18:26:34 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-07 11:12:21 +02:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-07 11:12:21 +02:00
2024-05-01 12:33:00 +05:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-04-01 07:51:00 +00:00
2023-06-29 10:17:36 +01:00
2024-05-09 14:15:56 +02:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-07 11:12:21 +02:00
2024-02-20 16:17:51 +00:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-13 13:32:43 +02:00
2024-03-13 14:53:27 +01:00
2024-04-02 10:27:26 +02:00
2024-03-25 10:33:38 +01:00
2024-03-28 09:53:31 +00:00
2024-03-25 10:33:38 +01:00
2024-05-01 12:33:00 +05:00
2024-03-13 14:53:27 +01:00
2023-11-23 21:00:39 +01:00
2024-05-08 18:26:34 +01:00
2024-04-15 09:36:06 +01:00
2024-03-25 10:33:38 +01:00
2024-03-28 09:31:24 +00:00
2023-08-02 20:22:36 +02:00
2024-03-25 10:33:38 +01:00
2024-03-28 11:25:50 +00:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-05-01 12:33:00 +05:00
2024-03-25 10:33:38 +01:00
2024-04-23 09:56:14 +01:00
2024-03-25 10:33:38 +01:00
2024-03-13 14:53:27 +01:00
2023-10-05 10:27:05 +02:00
2024-05-01 12:33:00 +05:00
2024-05-13 15:59:46 +01:00
2024-05-01 12:33:00 +05:00
2024-05-01 12:33:00 +05:00
2024-04-02 10:27:26 +02:00
2024-05-13 12:20:16 +01:00
2024-04-22 17:02:55 +01:00
2024-05-14 16:32:01 +02:00
2024-03-28 09:53:31 +00:00
2024-04-30 21:11:37 +02:00
2024-03-25 10:33:38 +01:00
2024-05-06 10:10:32 +02:00
2024-05-06 10:10:32 +02:00
2024-03-20 15:50:22 +00:00
2024-04-19 17:32:52 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-13 13:46:06 +02:00
2024-05-01 17:49:44 +01:00
2024-05-01 17:49:44 +01:00
2024-03-13 14:53:27 +01:00
2024-04-19 17:32:52 +01:00
2024-03-25 10:33:38 +01:00
2024-05-07 11:12:21 +02:00
2024-04-18 10:27:58 +02:00
2024-03-27 04:52:12 +01:00
2024-05-07 11:12:21 +02:00
2024-03-20 15:50:22 +00:00
2024-04-15 09:36:06 +01:00
2024-04-15 09:36:06 +01:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2023-08-02 20:22:36 +02:00
2024-03-13 14:53:27 +01:00
2024-05-13 13:46:06 +02:00
2024-04-17 14:38:48 +05:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-07 11:12:21 +02:00
2024-05-07 11:12:21 +02:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-13 14:53:27 +01:00
2024-03-28 09:53:31 +00:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-05-08 18:26:34 +01:00
2024-03-04 11:04:49 +00:00
2024-03-25 10:33:38 +01:00
2023-12-14 15:17:30 +00:00
2024-05-09 17:02:03 +01:00
2024-03-25 10:33:38 +01:00
2024-05-14 22:07:15 +02:00
2024-01-29 10:09:26 +00:00
2024-01-29 10:09:26 +00:00
2024-03-13 14:53:27 +01:00
2023-10-31 18:12:14 +01:00
2024-03-25 10:33:38 +01:00
2024-04-08 12:49:31 +01:00
2024-03-28 11:25:50 +00:00
2024-04-24 17:32:09 +02:00
2024-03-13 14:53:27 +01:00
2024-04-16 17:46:53 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-13 14:53:27 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-04-17 14:38:48 +05:00
2024-04-17 14:38:48 +05:00
2024-03-14 16:48:11 +01:00
2024-03-13 14:53:27 +01:00
2024-05-08 18:26:34 +01:00
2024-04-19 17:32:52 +01:00
2024-03-25 10:33:38 +01:00
2024-04-15 09:36:06 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-28 09:53:31 +00:00
2024-05-09 18:01:57 +01:00
2024-05-09 18:01:57 +01:00
2024-03-25 10:33:38 +01:00
2024-04-26 19:40:12 +01:00
2024-05-07 11:12:21 +02:00
2024-05-07 11:12:21 +02:00
2024-05-09 11:10:38 +01:00
2024-02-20 16:17:51 +00:00
2024-05-09 18:01:57 +01:00
2024-03-13 14:53:27 +01:00
2024-04-15 09:36:06 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-04-08 23:51:58 +02:00
2024-04-01 07:51:00 +00:00
2024-05-09 14:15:56 +02:00
2024-05-09 14:15:56 +02:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-28 09:53:31 +00:00
2024-03-25 10:33:38 +01:00
2024-05-01 12:33:00 +05:00
2024-05-06 10:10:32 +02:00
2024-03-12 17:46:19 +00:00
2024-03-25 10:33:38 +01:00
2024-05-07 11:12:21 +02:00
2023-08-02 20:22:36 +02:00
2024-04-15 09:36:06 +01:00
2024-01-23 11:01:50 +00:00
2024-04-19 09:06:01 +02:00
2024-03-28 09:53:31 +00:00
2023-10-03 10:52:34 +02:00
2024-01-11 16:18:27 +01:00
2024-03-12 17:46:19 +00:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-05-01 12:33:00 +05:00
2024-05-01 12:32:45 +05:00
2024-03-07 20:45:51 +00:00
2023-11-16 17:43:19 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2023-12-08 14:54:32 +01:00
2024-05-02 11:00:07 +01:00
2024-03-13 14:53:27 +01:00
2024-05-09 11:23:39 +01:00
2024-04-22 18:30:38 +01:00
2024-01-18 13:37:34 +00:00
2023-10-31 18:12:14 +01:00
2024-03-25 10:33:38 +01:00
2023-10-30 15:27:15 +01:00
2024-05-02 17:25:19 +01:00
2024-05-09 18:01:57 +01:00
2024-03-25 10:33:38 +01:00
2024-03-25 10:33:38 +01:00
2024-04-02 10:27:26 +02:00
2024-03-13 14:53:27 +01:00
2024-03-13 14:53:27 +01:00
2024-02-20 12:06:46 +00:00
2024-04-19 17:32:52 +01:00
2024-02-16 08:16:58 +01:00
2024-04-24 09:50:17 +01:00
2024-03-25 10:33:38 +01:00