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 @@ -407,10 +407,7 @@ def handle_args():
407
407
408
408
def main ():
409
409
cfg = handle_args ()
410
- if cfg .verbose :
411
- logging .basicConfig (level = logging .DEBUG )
412
- else :
413
- logging .basicConfig (level = logging .INFO )
410
+ logging .basicConfig (level = logging .DEBUG if cfg .verbose else logging .INFO )
414
411
logger .info (f'* Using config: { cfg } ' )
415
412
logger .warning ('=== WARNING === Be aware that this conversion script is best-effort. Use a native GGUF model if possible. === WARNING ===' )
416
413
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