Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- adaptive-sparse-training
|
| 4 |
+
- energy-efficient
|
| 5 |
+
- sustainability
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
- energy_savings
|
| 9 |
+
license: mit
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# resnet18 (AST-Trained)
|
| 15 |
+
|
| 16 |
+
**Trained with 65% less energy than standard training** ⚡
|
| 17 |
+
|
| 18 |
+
## Model Details
|
| 19 |
+
- **Architecture:** resnet18
|
| 20 |
+
- **Dataset:** CIFAR-10
|
| 21 |
+
- **Training Method:** Adaptive Sparse Training (AST)
|
| 22 |
+
- **Target Activation Rate:** 35%
|
| 23 |
+
|
| 24 |
+
## Performance
|
| 25 |
+
- **Accuracy:** 6809.00%
|
| 26 |
+
- **Energy Savings:** 65%
|
| 27 |
+
- **Training Epochs:** 10
|
| 28 |
+
|
| 29 |
+
## Sustainability Report
|
| 30 |
+
This model was trained using Adaptive Sparse Training, which dynamically selects
|
| 31 |
+
the most important training samples. This resulted in:
|
| 32 |
+
|
| 33 |
+
- ⚡ **65% energy savings** compared to standard training
|
| 34 |
+
- 🌍 **Lower carbon footprint**
|
| 35 |
+
- ⏱️ **Faster training time**
|
| 36 |
+
- 🎯 **Maintained accuracy** (minimal degradation)
|
| 37 |
+
|
| 38 |
+
## How to Use
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
import torch
|
| 42 |
+
from torchvision import models
|
| 43 |
+
|
| 44 |
+
# Load model
|
| 45 |
+
model = models.resnet18(num_classes=10)
|
| 46 |
+
model.load_state_dict(torch.load("pytorch_model.bin"))
|
| 47 |
+
model.eval()
|
| 48 |
+
|
| 49 |
+
# Inference
|
| 50 |
+
# ... (your inference code)
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
## Training Details
|
| 54 |
+
|
| 55 |
+
**AST Configuration:**
|
| 56 |
+
- Target Activation Rate: 35%
|
| 57 |
+
- Adaptive PI Controller: Enabled
|
| 58 |
+
- Mixed Precision (AMP): Enabled
|
| 59 |
+
|
| 60 |
+
## Reproducing This Model
|
| 61 |
+
|
| 62 |
+
```bash
|
| 63 |
+
pip install adaptive-sparse-training
|
| 64 |
+
|
| 65 |
+
python -c "
|
| 66 |
+
from adaptive_sparse_training import AdaptiveSparseTrainer, ASTConfig
|
| 67 |
+
config = ASTConfig(target_activation_rate=0.35)
|
| 68 |
+
# ... (full training code)
|
| 69 |
+
"
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Citation
|
| 73 |
+
|
| 74 |
+
If you use this model or AST, please cite:
|
| 75 |
+
|
| 76 |
+
```bibtex
|
| 77 |
+
@software{adaptive_sparse_training,
|
| 78 |
+
title={Adaptive Sparse Training},
|
| 79 |
+
author={Idiakhoa, Oluwafemi},
|
| 80 |
+
year={2024},
|
| 81 |
+
url={https://github.com/oluwafemidiakhoa/adaptive-sparse-training}
|
| 82 |
+
}
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## Acknowledgments
|
| 86 |
+
|
| 87 |
+
Trained using the `adaptive-sparse-training` package. Special thanks to the PyTorch and HuggingFace communities.
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
*This model card was auto-generated by the AST Training Dashboard.*
|