@@ -1168,7 +1168,8 @@ def lora_state_dict(
1168
1168
allowed by Git.
1169
1169
subfolder (`str`, *optional*, defaults to `""`):
1170
1170
The subfolder location of a model file within a larger model repository on the Hub or locally.
1171
- return_lora_metadata: TODO
1171
+ return_lora_metadata (`bool`, *optional*, defaults to False):
1172
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
1172
1173
1173
1174
"""
1174
1175
# Load the main state dict first which has the LoRA layers for either of
@@ -1628,7 +1629,8 @@ def lora_state_dict(
1628
1629
allowed by Git.
1629
1630
subfolder (`str`, *optional*, defaults to `""`):
1630
1631
The subfolder location of a model file within a larger model repository on the Hub or locally.
1631
- return_lora_metadata: TODO
1632
+ return_lora_metadata (`bool`, *optional*, defaults to False):
1633
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
1632
1634
1633
1635
"""
1634
1636
# Load the main state dict first which has the LoRA layers for either of
@@ -1972,7 +1974,8 @@ def lora_state_dict(
1972
1974
allowed by Git.
1973
1975
subfolder (`str`, *optional*, defaults to `""`):
1974
1976
The subfolder location of a model file within a larger model repository on the Hub or locally.
1975
- return_lora_metadata: TODO
1977
+ return_lora_metadata (`bool`, *optional*, defaults to False):
1978
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
1976
1979
"""
1977
1980
# Load the main state dict first which has the LoRA layers for either of
1978
1981
# transformer and text encoder or both.
@@ -3006,7 +3009,8 @@ def lora_state_dict(
3006
3009
allowed by Git.
3007
3010
subfolder (`str`, *optional*, defaults to `""`):
3008
3011
The subfolder location of a model file within a larger model repository on the Hub or locally.
3009
- return_lora_metadata: TODO
3012
+ return_lora_metadata (`bool`, *optional*, defaults to False):
3013
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
3010
3014
3011
3015
"""
3012
3016
# Load the main state dict first which has the LoRA layers for either of
@@ -3342,7 +3346,8 @@ def lora_state_dict(
3342
3346
allowed by Git.
3343
3347
subfolder (`str`, *optional*, defaults to `""`):
3344
3348
The subfolder location of a model file within a larger model repository on the Hub or locally.
3345
- return_lora_metadata: TODO
3349
+ return_lora_metadata (`bool`, *optional*, defaults to False):
3350
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
3346
3351
3347
3352
"""
3348
3353
# Load the main state dict first which has the LoRA layers for either of
@@ -3680,7 +3685,8 @@ def lora_state_dict(
3680
3685
allowed by Git.
3681
3686
subfolder (`str`, *optional*, defaults to `""`):
3682
3687
The subfolder location of a model file within a larger model repository on the Hub or locally.
3683
- return_lora_metadata: TODO
3688
+ return_lora_metadata (`bool`, *optional*, defaults to False):
3689
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
3684
3690
"""
3685
3691
# Load the main state dict first which has the LoRA layers for either of
3686
3692
# transformer and text encoder or both.
@@ -4022,7 +4028,8 @@ def lora_state_dict(
4022
4028
allowed by Git.
4023
4029
subfolder (`str`, *optional*, defaults to `""`):
4024
4030
The subfolder location of a model file within a larger model repository on the Hub or locally.
4025
- return_lora_metadata: TODO
4031
+ return_lora_metadata (`bool`, *optional*, defaults to False):
4032
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
4026
4033
4027
4034
"""
4028
4035
# Load the main state dict first which has the LoRA layers for either of
@@ -4360,7 +4367,8 @@ def lora_state_dict(
4360
4367
allowed by Git.
4361
4368
subfolder (`str`, *optional*, defaults to `""`):
4362
4369
The subfolder location of a model file within a larger model repository on the Hub or locally.
4363
- return_lora_metadata: TODO
4370
+ return_lora_metadata (`bool`, *optional*, defaults to False):
4371
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
4364
4372
"""
4365
4373
# Load the main state dict first which has the LoRA layers for either of
4366
4374
# transformer and text encoder or both.
@@ -4701,7 +4709,8 @@ def lora_state_dict(
4701
4709
allowed by Git.
4702
4710
subfolder (`str`, *optional*, defaults to `""`):
4703
4711
The subfolder location of a model file within a larger model repository on the Hub or locally.
4704
- return_lora_metadata: TODO
4712
+ return_lora_metadata (`bool`, *optional*, defaults to False):
4713
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
4705
4714
"""
4706
4715
# Load the main state dict first which has the LoRA layers for either of
4707
4716
# transformer and text encoder or both.
@@ -5043,7 +5052,8 @@ def lora_state_dict(
5043
5052
allowed by Git.
5044
5053
subfolder (`str`, *optional*, defaults to `""`):
5045
5054
The subfolder location of a model file within a larger model repository on the Hub or locally.
5046
- return_lora_metadata: TODO
5055
+ return_lora_metadata (`bool`, *optional*, defaults to False):
5056
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
5047
5057
"""
5048
5058
# Load the main state dict first which has the LoRA layers for either of
5049
5059
# transformer and text encoder or both.
@@ -5436,7 +5446,8 @@ def lora_state_dict(
5436
5446
allowed by Git.
5437
5447
subfolder (`str`, *optional*, defaults to `""`):
5438
5448
The subfolder location of a model file within a larger model repository on the Hub or locally.
5439
- return_lora_metadata: TODO
5449
+ return_lora_metadata (`bool`, *optional*, defaults to False):
5450
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
5440
5451
5441
5452
"""
5442
5453
# Load the main state dict first which has the LoRA layers for either of
@@ -5774,7 +5785,8 @@ def lora_state_dict(
5774
5785
allowed by Git.
5775
5786
subfolder (`str`, *optional*, defaults to `""`):
5776
5787
The subfolder location of a model file within a larger model repository on the Hub or locally.
5777
- return_lora_metadata: TODO
5788
+ return_lora_metadata (`bool`, *optional*, defaults to False):
5789
+ When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.
5778
5790
"""
5779
5791
# Load the main state dict first which has the LoRA layers for either of
5780
5792
# transformer and text encoder or both.
0 commit comments