File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -408,10 +408,7 @@ def handle_args():
408
408
409
409
def main ():
410
410
cfg = handle_args ()
411
- if cfg .verbose :
412
- logging .basicConfig (level = logging .DEBUG )
413
- else :
414
- logging .basicConfig (level = logging .INFO )
411
+ logging .basicConfig (level = logging .DEBUG if cfg .verbose else logging .INFO )
415
412
logger .info (f'* Using config: { cfg } ' )
416
413
logger .warning ('=== WARNING === Be aware that this conversion script is best-effort. Use a native GGUF model if possible. === WARNING ===' )
417
414
if cfg .model_metadata_dir is None and (cfg .gqa == 1 or cfg .eps == '5.0e-06' ):
Original file line number Diff line number Diff line change 67
67
parser .print_help ()
68
68
sys .exit (0 )
69
69
70
- if known_args .verbose :
71
- logging .basicConfig (level = logging .DEBUG )
72
- else :
73
- logging .basicConfig (level = logging .INFO )
70
+ logging .basicConfig (level = logging .DEBUG if known_args .verbose else logging .INFO )
74
71
75
72
props = dict ()
76
73
You can’t perform that action at this time.
0 commit comments