(self)
| 12466 | raise |
| 12467 | |
| 12468 | def _load_entries(self) -> None: |
| 12469 | for path in sorted(self.path.glob("*.safetensors")): |
| 12470 | try: |
| 12471 | header = self._read_entry_header(path) |
| 12472 | if header is None: |
| 12473 | continue |
| 12474 | self._add_entry( |
| 12475 | path=path, |
| 12476 | tokens=header.tokens, |
| 12477 | has_prompt_logits=header.has_prompt_logits, |
| 12478 | last_accessed=path.stat().st_mtime, |
| 12479 | ) |
| 12480 | except Exception: # noqa: BLE001 |
| 12481 | continue |
| 12482 | |
| 12483 | def _add_entry( |
| 12484 | self, |
no test coverage detected