Download code_snapshot/train_conv.py from BlueSourceJY/SiT-Complementary: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/BlueSourceJY/SiT-Complementary/resolve/main/code_snapshot/train_conv.py
- Command line
-
hf download hf://BlueSourceJY/SiT-Complementary/code_snapshot/train_conv.py
-
curl -L -o train_conv.py https://huggingface.co/BlueSourceJY/SiT-Complementary/resolve/main/code_snapshot/train_conv.py
437 Bytes
| #!/usr/bin/env python3 | |
| """Run the shared SiT trainer with the convolutional-layer model implementation.""" | |
| import os | |
| import runpy | |
| # Select models_conv.py before train.py imports the model registry, and require | |
| # the shared trainer to fail closed if another model module is selected. | |
| os.environ["SIT_MODEL_MODULE"] = "models_conv" | |
| os.environ["SIT_EXPECTED_MODEL_MODULE"] = "models_conv" | |
| runpy.run_module("train", run_name="__main__") | |