(name)
| 262 | return sd |
| 263 | |
| 264 | def 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 | |
| 271 | def gguf_mmproj_loader(path): |
| 272 | # Reverse version of Qwen2VLVisionModel.modify_tensors |
no outgoing calls
no test coverage detected