Download src/softasp/cli/train_scratch.py from wabdalm/AS2: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/wabdalm/AS2/resolve/main/src/softasp/cli/train_scratch.py
- Command line
-
hf download hf://wabdalm/AS2/src/softasp/cli/train_scratch.py
-
curl -L -o train_scratch.py https://huggingface.co/wabdalm/AS2/resolve/main/src/softasp/cli/train_scratch.py
703 Bytes
| """Hydra entry point for training an AS2 instantiation without supplied weights. | |
| Run with ``uv run --locked softasp-train-scratch``. | |
| """ | |
| import hydra | |
| from omegaconf import DictConfig | |
| from softasp_core.utils.logging import setup_logging | |
| from softasp.configuration import config_directory | |
| from softasp.instantiations.runtime import train_from_scratch | |
| _CONFIGS = config_directory() | |
| def main(cfg: DictConfig) -> None: | |
| setup_logging(level=cfg.logging.get("level", "INFO")) | |
| manifest = train_from_scratch(cfg) | |
| print(f"Training workflow complete. Manifest: {manifest}") | |
| if __name__ == "__main__": | |
| main() | |