@@ -2799,10 +2799,6 @@ def parse_args() -> argparse.Namespace:
2799
2799
"--verbose" , action = "store_true" ,
2800
2800
help = "increase output verbosity" ,
2801
2801
)
2802
- parser .add_argument (
2803
- "--split" , action = "store_true" ,
2804
- help = "split the converted model into multiple files" ,
2805
- )
2806
2802
parser .add_argument (
2807
2803
"--split-max-tensors" , type = int ,
2808
2804
help = "max tensors in each split" ,
@@ -2816,8 +2812,8 @@ def parse_args() -> argparse.Namespace:
2816
2812
help = "only print out a split plan and exit, without writing any new files" ,
2817
2813
)
2818
2814
parser .add_argument (
2819
- "--small- first-shard " , action = "store_true" ,
2820
- help = "do not add tensors to the first shard (disabled by default)" ,
2815
+ "--no-tensor- first-split " , action = "store_true" ,
2816
+ help = "do not add tensors to the first split (disabled by default)"
2821
2817
)
2822
2818
2823
2819
return parser .parse_args ()
@@ -2847,9 +2843,6 @@ def main() -> None:
2847
2843
logger .error (f'Error: { args .model } is not a directory' )
2848
2844
sys .exit (1 )
2849
2845
2850
- if args .split and not (args .split_max_tensors or args .split_max_size ):
2851
- raise ValueError ("Need to specify one of --split-max-tensors or --split-max-size when splitting" )
2852
-
2853
2846
if args .split_max_tensors and args .split_max_size :
2854
2847
raise ValueError ("Can't specify both --split-max-tensors and --split-max-size" )
2855
2848
0 commit comments