(path: Path)
| 10410 | |
| 10411 | @staticmethod |
| 10412 | def _safe_open(path: Path) -> Any: |
| 10413 | try: |
| 10414 | from safetensors import safe_open |
| 10415 | except ImportError as exc: |
| 10416 | raise RuntimeError( |
| 10417 | "model.mtmd.embedding_cache requires safetensors. " |
| 10418 | "Install it with `pip install safetensors`." |
| 10419 | ) from exc |
| 10420 | return safe_open(str(path), framework="numpy") |
| 10421 | |
| 10422 | @staticmethod |
| 10423 | def _save_file( |