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

Function strip_quant_suffix

loader.py:264–269  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

262 return sd
263
264def strip_quant_suffix(name):
265 pattern = r"[-_]?(?:ud-)?i?q[0-9]_[a-z0-9_\-]{1,8}$"
266 match = re.search(pattern, name, re.IGNORECASE)
267 if match:
268 name = name[:match.start()]
269 return name
270
271def gguf_mmproj_loader(path):
272 # Reverse version of Qwen2VLVisionModel.modify_tensors

Callers 1

gguf_mmproj_loaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected