(state_dict)
| 161 | return matched |
| 162 | |
| 163 | def detect_arch(state_dict): |
| 164 | model_arch = None |
| 165 | for arch in arch_list: |
| 166 | if is_model_arch(arch, state_dict): |
| 167 | model_arch = arch() |
| 168 | break |
| 169 | assert model_arch is not None, "Unknown model architecture!" |
| 170 | return model_arch |
| 171 | |
| 172 | def parse_args(): |
| 173 | parser = argparse.ArgumentParser(description="Generate F16 GGUF files from single UNET") |
no test coverage detected