Download src/part2/__init__.py from Chiru20/ANLP_assignment2: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/Chiru20/ANLP_assignment2/resolve/main/src/part2/__init__.py
- Command line
-
hf download hf://Chiru20/ANLP_assignment2/src/part2/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Chiru20/ANLP_assignment2/resolve/main/src/part2/__init__.py
561 Bytes
| """ | |
| Part 2: Custom Optimizers and Pretraining Dynamics | |
| """ | |
| from .optimizers import ( | |
| CustomAdamW, | |
| CustomAdan, | |
| CustomLion, | |
| CustomMuon, | |
| CustomSophia, | |
| ) | |
| from .dataset import PretrainDataset | |
| from .train import get_optimizer, evaluate_val_and_bleu, run_optimizer_benchmark, plot_comparative_dynamics | |
| __all__ = [ | |
| "CustomAdamW", | |
| "CustomAdan", | |
| "CustomLion", | |
| "CustomMuon", | |
| "CustomSophia", | |
| "PretrainDataset", | |
| "get_optimizer", | |
| "evaluate_val_and_bleu", | |
| "run_optimizer_benchmark", | |
| "plot_comparative_dynamics", | |
| ] | |