MCPcopy
hub / github.com/city96/ComfyUI-GGUF / detect_arch

Function detect_arch

tools/convert.py:163–170  ·  view source on GitHub ↗
(state_dict)

Source from the content-addressed store, hash-verified

161 return matched
162
163def 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
172def parse_args():
173 parser = argparse.ArgumentParser(description="Generate F16 GGUF files from single UNET")

Callers 2

gguf_sd_loaderFunction · 0.85
convert_fileFunction · 0.85

Calls 1

is_model_archFunction · 0.85

Tested by

no test coverage detected