()
| 85 | return platform.system(), ARCH_ALIAS[platform.machine()] |
| 86 | |
| 87 | def get_model_name(): |
| 88 | if args.hf_repo: |
| 89 | return SUPPORTED_HF_MODELS[args.hf_repo]["model_name"] |
| 90 | return os.path.basename(os.path.normpath(args.model_dir)) |
| 91 | |
| 92 | def run_command(command, shell=False, log_step=None): |
| 93 | """Run a system command and ensure it succeeds.""" |