Add TimmWrapper #34564

qubvel merged 92 commits into huggingface:main from qubvel:timm-wrapper
qubvel
amyeroberts Add files
39c42db9
amyeroberts Init
4b983757
amyeroberts Add TimmWrapperModel
aa494f16
amyeroberts Fix up
44d123e3
amyeroberts Some fixes
4b35ae25
amyeroberts Fix up
2b5db8f0
amyeroberts Remove old file
b07a5c98
amyeroberts Sort out import orders
e3a88b61
amyeroberts Fix some model loading
baffbe21
amyeroberts Compatible with pipeline and trainer
6fc50cf1
amyeroberts Fix up
ed00b41b
amyeroberts Delete test_timm_model_1/config.json
50b507ba
amyeroberts Remove accidentally commited files
de87e547
amyeroberts Delete src/transformers/models/modeling_timm_wrapper.py
a9070616
amyeroberts Remove empty imports; fix transformations applied
1f558416
amyeroberts Tidy up
23b38afd
amyeroberts Add image classifcation model to special cases
2f0aee1f
amyeroberts Create pretrained model; enable device_map='auto'
bff2e981
amyeroberts Enable most tests; fix init order
0c802533
amyeroberts Sort imports
a32de6a9
amyeroberts [run-slow] timm_wrapper
59f55d15
qubvel Pass num_classes into timm.create_model
666419f0
qubvel Remove train transforms from image processor
5540d32a
qubvel Update timm creation with pretrained=False
88f737c3
qubvel Fix gamma/beta issue for timm models
496d38da
qubvel Fixing gamma and beta renaming for timm models
4cfa51f9
qubvel Simplify config and model creation
3891975d
qubvel qubvel marked this pull request as draft 1 year ago
qubvel qubvel added New model
qubvel qubvel added Vision
qubvel qubvel added run-slow
qubvel Remove attn_implementation diff
f878ab40
qubvel Fixup
b1f145f0
qubvel Docstrings
7d87a95c
HuggingFaceDocBuilderDev
qubvel Fix warning msg text according to test case
ae0425d0
qubvel Fix device_map auto
ec9eade9
qubvel Set dtype and device for pixel_values in forward
97670485
qubvel Enable output hidden states
d5478f6d
qubvel Enable tests for hidden_states and model parallel
b61048be
qubvel Remove default scriptable arg
72236b5c
qubvel Refactor inner model
e290f22b
qubvel Update timm version
0a08a1f9
qubvel
qubvel commented on 2024-11-04
qubvel
qubvel qubvel requested a review from rwightman rwightman 1 year ago
rwightman
rwightman
qubvel
rwightman
rwightman
rwightman
rwightman commented on 2024-11-05
rwightman
rwightman commented on 2024-11-05
qubvel Fix _find_mismatched_keys function
1faf9ece
qubvel Change inheritance for Classification model (fix weights loading with…
addbac8b
qubvel
qubvel
rwightman
rwightman
qubvel Minor bugfix
8ba45927
qubvel Disable save pretrained for image processor
2b993a70
qubvel Rename hook method for loaded keys correction
0b00cef1
qubvel Rename state dict keys on save, remove `timm_model` prefix, make chec…
485fe7aa
qubvel Managing num_labels <-> num_classes attributes
dede4e45
qubvel Enable loading checkpoints in Trainer to resume training
1ec132c8
qubvel qubvel requested a review from copilot-pull-request-reviewer copilot-pull-request-reviewer 1 year ago
copilot-pull-request-reviewer
copilot-pull-request-reviewer commented on 2024-11-19
qubvel
qubvel
qubvel Update error message for output_hidden_states
d96b257a
qubvel Add output hidden states test
6b1b6210
qubvel Decouple base and classification models
bb7d465b
qubvel Add more test cases
43902135
qubvel Add save-load-to-timm test
4233850a
qubvel Merge branch 'main' into timm-wrapper
ef96b6d0
qubvel Fix test name
c3bb39ab
qubvel Fixup
5444a6c7
qubvel
qubvel qubvel requested a review from rwightman rwightman 1 year ago
rwightman
rwightman
rwightman commented on 2024-11-21
rwightman
rwightman
rwightman commented on 2024-11-21
rwightman
rwightman
qubvel
rwightman
qubvel
qubvel Add do_pooling
06039d05
qubvel Add test for do_pooling
0b787359
qubvel Fix doc
5bb29502
qubvel Add tests for TimmWrapperModel
38b94232
qubvel Add validation for `num_classes=0` in timm config + test for DINO che…
c1cc1fa6
qubvel Adjust atol for test
3acafada
qubvel Fix docs
8e8f41b9
qubvel dev-ci
c5c288f1
qubvel dev-ci
a4ae76fb
qubvel Add tests for image processor
464874f0
qubvel Update docs
02fbd583
qubvel Update init to new format
eb9a66fd
qubvel Update docs in configuration
e08fe708
qubvel Fix some docs in image processor
77348045
qubvel Improve docs for modeling
051aceef
qubvel fix for is_timm_checkpoint
185fab8c
qubvel Update code examples
bca3279f
qubvel Fix header
672cc6d3
qubvel Fix typehint
983b9b20
qubvel
qubvel commented on 2024-11-28
qubvel Increase tolerance a bit
9c128cea
qubvel Merge branch 'main' into timm-wrapper
f2dba795
qubvel Fix Path
9bc887b0
qubvel Fixing model parallel tests
f92216f8
qubvel Disable "parallel" tests
42278a7b
qubvel qubvel marked this pull request as ready for review 1 year ago
LysandreJik
LysandreJik commented on 2024-12-02
qubvel Add comment for metadata
6b3ba3b2
qubvel Refactor AutoImageProcessor for timm wrapper loading
ff6efde8
qubvel Remove custom test_model_outputs_equivalence
a476610c
qubvel Add require_timm decorator
327095a8
qubvel Fix comment
7e0d2c6d
LysandreJik
molbap
molbap commented on 2024-12-03
qubvel Make image processor work with older timm versions and tensor input
a10bc0de
qubvel Save config instead of whole model in image processor tests
a87fbf6a
qubvel Add docstring for `image_processor_filename`
90c1c88d
qubvel Sanitize kwargs for timm image processor
fd7b646f
qubvel Fix doc style
cdd38116
qubvel Update check for tensor input
3d1a76e9
qubvel
qubvel Merge branch 'main' into timm-wrapper
cc0a3304
LysandreJik
LysandreJik LysandreJik requested a review from ArthurZucker ArthurZucker 1 year ago
ArthurZucker
ArthurZucker approved these changes on 2024-12-09
qubvel Update normalize
4edfe902
qubvel Remove _load_timm_model function
8b82e2b7
qubvel qubvel merged 5fcf6286 into main 1 year ago
hongwhatamazon
hongwhatamazon commented on 2025-04-28

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone