Add PaliGemma #30814

molbap merged 120 commits into main from add_palma
molbap
molbap add new model like
2fddcc9d
molbap Merge pull request #9 from huggingface/update
e536f6a3
molbap add state dict slicing + new model config
6ca0bf7e
molbap update palma config and weights, passes vision activations
21db4a79
molbap fix
7985fc43
molbap update
bcb341da
molbap reorder loading/unpacking
38ad70e4
molbap clean up
929746a3
molbap add debug statements
ae55ad93
molbap change device
9d5f8fbf
molbap Merge branch 'add_palma' of github.com:huggingface/new-model-addition…
524a0739
molbap fix
d171c4e4
molbap debugging
1638a73d
molbap fix noncausal mask
4aad8506
molbap fixup sdpa + causal mask
29726744
molbap fix activation function
71fa912c
molbap remove debug before changing modeling file
94e48067
molbap add variants
7b6f0b38
molbap debug attention mask in generate
4e8e1c66
molbap revert to non-debug sdpa
ba8fb4e8
molbap revert gemma modifications
6c2348d7
molbap add custom language modeling
906e87f3
molbap use Processor
f26361d7
molbap add language modeling file to init
b3e4a03a
molbap try thin wrapper around generate
500a3605
molbap Update
96a82e27
molbap update mask
347df2c1
molbap breakpoints galore
d01b502c
molbap remove conflict
bb8030cb
molbap switch to left-padding
a6056c65
molbap add incomplete model doc
dacd2974
molbap add paligemma global files
f133a1d1
molbap batch rename paligemma
37c13686
molbap make generation match outputs and captioning
9935e2ee
molbap style
e7fd0496
molbap style
edcf1b15
molbap remove copied from + doc
2a29a2e7
molbap remove more copied from
5607c9da
molbap remove copy from projector
8ce77f35
molbap minor fix
3563926e
molbap update config and style
f48f61d0
molbap add readme - dummy
b84d1c15
molbap CORRECT image captioning
deb35ba2
molbap moving to args
9275d53a
molbap add siglip proper + fix merging image + text features
54877348
molbap take update_causal_mask from upstream
7f9c479c
molbap remove breakpoint
438b1438
molbap leverage AutoModel
00d29228
molbap fix input_ids slicing
72697b62
molbap make siglip head conditional
17b30fdf
molbap remove encoder_decoder value
26cb46e7
molbap remove unneeded modeling file
f49f3896
molbap add commented 4d attention mask
d1964ea8
molbap FIXED generation with 4D mask
6da4d2e1
ArthurZucker Merge branch 'main' of github.com:huggingface/new-model-addition
ef8c0fb4
molbap Update src/transformers/models/siglip/modeling_siglip.py
9f261d77
molbap fix left padding detection
11c34882
molbap shuffle order of verifications
6d527e4a
molbap Merge branch 'main' into add_palma
8b679b14
molbap fix missing labels for training
fdba83a1
molbap fix
eee3c1e3
molbap vectorize merging of features, improve slicing
e4869dd8
molbap improve testing before conversion
b9733653
molbap handle merging in processor
8cab59cf
molbap image token index depends on checkpoint
9186b79e
molbap add variants, save processor too
78398a13
molbap save processors, base tokenizer off spm file
4ede86e6
ArthurZucker Merge branch 'main' of github.com:huggingface/transformers into main
c8991363
molbap expand model embeddings due to additional image token
a9122738
molbap pass image processing args
2c8a508c
molbap add convert rgb to siglip processor
7201d437
molbap add \n token separately
c74f3a35
ArthurZucker Merge branch 'main' of github.com:huggingface/transformers
23b12a38
ArthurZucker Merge branch 'main' of github.com:huggingface/new-model-addition
4e4a9576
molbap fix tokenizer and prompts
1f465c08
molbap fix docstrings
38a04017
molbap change to camel
16baabc0
molbap fix casing
9119db41
molbap debug pos_ids and sdpa
267a0da0
molbap Merge branch 'main' into add_palma
3e321185
molbap pass and use cache_position
4ed05944
molbap add flag for newline tokenization
46c5c0bc
molbap Update src/transformers/models/paligemma/processing_paligemma.py
5b47a5b6
molbap simplify conversion script
b80c5917
molbap add copied from
7d214095
molbap add precision to conversion script
b1eda0e3
molbap Update src/transformers/models/paligemma/modeling_paligemma.py
404abd88
molbap clean up
a7e24463
molbap Merge branch 'add_palma' of github.com:huggingface/new-model-addition…
2f6b17d2
pcuenca Shift attention mask from `1:`
60ad9c5d
molbap Merge pull request #6 from pcuenca/add_palma_shift_mask
daccbe7d
molbap add docs, fix quality
91c7aabc
molbap Merge branch 'add_palma' of github.com:huggingface/new-model-addition…
372d5663
molbap quality, tied weights inheritance, and logits/label alignment
63464ec3
molbap fix more tests
55187a15
molbap pass attn_implementation to language model correctly
5ea6c9f3
molbap add SiglipVisionTransformer to no split modules
ddb7ac77
molbap skip paligemma test for sdpa dispatch to flash
7f327181
molbap skip incompatible tests
ac9fd9a9
molbap quality
cceb3d0a
molbap [broken archive maps]
a2648244
molbap Apply suggestions
9310873d
molbap Update src/transformers/utils/dummy_pt_objects.py
0711b127
molbap simplify conversion script
e7ec2164
molbap add suggestions
8b0724de
molbap add suggestions
7bcea3e0
molbap add copied from
498bbde3
molbap fix
a8bd223e
molbap move labels out
04d962fd
molbap revert
e7caa8a2
molbap fix
ac5ed67d
molbap remove placeholder labels if None
72f6fdc0
molbap use cache_position
c8247714
molbap fix quality + docstrings
7a8e62ef
molbap fix quality
4913c07e
molbap Merge branch 'main' of github.com:huggingface/transformers into main
0c8f2c96
ArthurZucker
ArthurZucker approved these changes on 2024-05-14
molbap Merge branch 'main' into add_palma
54fd284c
molbap fix paligemma 4d gemma mask incompatibility
99c3ac51
HuggingFaceDocBuilderDev
molbap fix config docstring
75c36c26
molbap fix query and attn_mask dtype
9b49838e
molbap molbap merged 1360801a into main 2 years ago
molbap molbap deleted the add_palma branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone