Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
metadata
title: AST Dashboard
emoji: π’
colorFrom: yellow
colorTo: indigo
sdk: gradio
sdk_version: 6.0.2
app_file: app.py
pinned: false
AST Training Dashboard - HuggingFace Space
Interactive dashboard for training models with Adaptive Sparse Training (AST).
Features
- π Live Training: Watch your model train in real-time
- π Energy Tracking: See energy savings as you train
- π― Model Card Generation: Auto-generate HuggingFace model cards
- β‘ 60-70% Energy Savings: Train faster with minimal accuracy loss
Quick Start
Deploy to HuggingFace Spaces
- Create new Space at https://huggingface.co/spaces
- Choose Gradio as SDK
- Upload files from this directory:
app.pyrequirements.txtREADME.md
- Space will auto-deploy!
Run Locally
cd hf_space
pip install -r requirements.txt
python app.py
Then open http://localhost:7860
Usage
- Select Model: Choose from ResNet18, EfficientNet, MobileNet
- Set Activation Rate: Lower = more energy savings (0.35 recommended)
- Choose Epochs: 30-50 epochs for good results
- Start Training: Click "Start Training" and watch live metrics
- Get Model Card: Copy auto-generated card for HuggingFace Hub
Example Results
Training ResNet18 on CIFAR-10 with AST (activation_rate=0.35):
- Accuracy: 92.1% (vs 92.3% baseline)
- Energy Savings: 65%
- Training Time: 2.8h (vs 7.2h baseline)
About AST
Adaptive Sparse Training (AST) automatically selects the most important training samples per batch, reducing compute by 60-70% while maintaining accuracy.
How it works:
- Computes significance score (loss + entropy) for each sample
- PI controller dynamically adjusts selection threshold
- Only backpropagates through "hard" samples
- Result: Same accuracy, way less compute
Links
- π¦ PyPI Package
- π GitHub
- π Full Documentation
Citation
@software{adaptive_sparse_training,
title={Adaptive Sparse Training},
author={Idiakhoa, Oluwafemi},
year={2024},
url={https://github.com/oluwafemidiakhoa/adaptive-sparse-training}
}