transformers
Support sharded safetensors in TF
#29350
Merged

Support sharded safetensors in TF #29350

Rocketknight1
HuggingFaceDocBuilderDev
Rocketknight1 Rocketknight1 marked this pull request as ready for review 1 year ago
Rocketknight1
ArthurZucker ArthurZucker requested a review from ArthurZucker ArthurZucker 1 year ago
LysandreJik
LysandreJik approved these changes on 2024-03-07
Rocketknight1
LysandreJik
Rocketknight1
Rocketknight1 Rocketknight1 force pushed 1 year ago
Rocketknight1
Rocketknight1 Rocketknight1 force pushed to dba05ff2 1 year ago
Rocketknight1 Rocketknight1 force pushed from dba05ff2 to a1001c8d 1 year ago
Rocketknight1 Rocketknight1 force pushed from a1001c8d to a9f240ea 1 year ago
amyeroberts
amyeroberts commented on 2024-03-12
Rocketknight1 Initial commit (still lots of unfinished bits)
080c24a9
Rocketknight1 (Still untested) add safetensors sharding to save_pretrained
aaa02123
Rocketknight1 Fix savetensors saving, update default shard size to match PT
43a1b2cd
Rocketknight1 Add proper loading of TF-format safetensors
36014c73
Rocketknight1 Revert default size in case that changes things
ab90852f
Rocketknight1 Fix incorrect index name
7eae1b49
Rocketknight1 Update loading priority
0a9cf9ab
Rocketknight1 Update tests
73d3d75f
Rocketknight1 Make the tests a little more stringent
b09d7573
Rocketknight1 Expand tests
8329061e
Rocketknight1 Add sharded cross-test
ffc0e3a1
Rocketknight1 Fix argument name
03efce91
Rocketknight1 One more test fix
f415eb89
Rocketknight1 Adding mlx to the list of allowed formats
e5aace5c
Rocketknight1 Remove irrelevant block for safetensors
e0faed0c
Rocketknight1 Refactor warning logging into a separate function
a7dbf06f
Rocketknight1 Remove unused skip_logger_warnings arg
e7a2c249
Rocketknight1 Rocketknight1 force pushed to e7a2c249 1 year ago
Rocketknight1
amyeroberts
amyeroberts approved these changes on 2024-03-15
Rocketknight1 Update src/transformers/modeling_tf_utils.py
7ef18f9e
Rocketknight1 Move function def
d75d69a4
Rocketknight1
Rocketknight1 Rocketknight1 merged 11ef35e8 into main 1 year ago
Rocketknight1 Rocketknight1 deleted the supported_sharded_safetensors_loading_in_tf branch 1 year ago
Rocketknight1

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone