Download adam/model_inspector/maskgit.py from SyntheticMDProductions/AI_Development_Automation_Manager: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/SyntheticMDProductions/AI_Development_Automation_Manager/resolve/main/adam/model_inspector/maskgit.py
- Command line
-
hf download hf://SyntheticMDProductions/AI_Development_Automation_Manager/adam/model_inspector/maskgit.py
-
curl -L -o maskgit.py https://huggingface.co/SyntheticMDProductions/AI_Development_Automation_Manager/resolve/main/adam/model_inspector/maskgit.py
1.05 kB
| from __future__ import annotations | |
| from pathlib import Path | |
| from typing import Any | |
| from .generic import GenericModelInspector | |
| class MaskGITInspector(GenericModelInspector): | |
| architecture = "MaskGIT" | |
| def inspect(self, path: str | Path, *, recorded_architecture: str = "", run_settings: dict[str, Any] | None = None, progress=None, cancelled=None): | |
| summary = super().inspect( | |
| path, | |
| recorded_architecture=recorded_architecture or "maskgit", | |
| run_settings=run_settings, | |
| progress=progress, | |
| cancelled=cancelled, | |
| ) | |
| summary.architecture = "MaskGIT" if summary.architecture == "Generic / Unknown" else summary.architecture | |
| names = "\n".join(tensor.name for tensor in summary.tensors).casefold() | |
| if summary.tensors and not any(token in names for token in ("attention", "attn", "transformer", "embed")): | |
| summary.health.append("Worth inspecting: expected MaskGIT transformer or embedding tensors were not obvious") | |
| return summary | |