Update README for Gradio 4.44.1 and complete training features
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: π
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.44.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: gpl-3.0
|
|
@@ -12,29 +12,64 @@ license: gpl-3.0
|
|
| 12 |
|
| 13 |
# OpenLLM Training Space
|
| 14 |
|
| 15 |
-
This space provides training infrastructure for OpenLLM models.
|
| 16 |
|
| 17 |
## Features
|
| 18 |
|
| 19 |
-
- π― Model training
|
| 20 |
-
- π Training monitoring
|
| 21 |
-
- π Model
|
| 22 |
-
- π Performance
|
|
|
|
| 23 |
|
| 24 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## Model Repositories
|
| 33 |
|
| 34 |
-
- [
|
| 35 |
-
- [
|
| 36 |
-
- [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## License
|
| 39 |
|
| 40 |
GPL-3.0 - See [LICENSE](LICENSE) for details.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: gpl-3.0
|
|
|
|
| 12 |
|
| 13 |
# OpenLLM Training Space
|
| 14 |
|
| 15 |
+
This space provides complete training infrastructure for OpenLLM models with real model training functionality.
|
| 16 |
|
| 17 |
## Features
|
| 18 |
|
| 19 |
+
- π― **Real Model Training**: Actual PyTorch training with Transformers
|
| 20 |
+
- π **Training Monitoring**: Live progress tracking and loss monitoring
|
| 21 |
+
- π **Model Versioning**: Automatic model saving and uploading to HF Hub
|
| 22 |
+
- π **Performance Tracking**: Training metrics and completion status
|
| 23 |
+
- π **Gradio 4.44.1**: Latest UI framework with enhanced compatibility
|
| 24 |
|
| 25 |
+
## Complete Training Pipeline
|
| 26 |
+
|
| 27 |
+
### What Happens When You Click "Start Training":
|
| 28 |
+
|
| 29 |
+
1. **π₯ Model Loading**: Loads the 7k model from `lemms/openllm-small-extended-7k`
|
| 30 |
+
2. **π Dataset Preparation**: Loads and tokenizes training data from `lemms/openllm-training-data`
|
| 31 |
+
3. **βοΈ Training Setup**: Configures PyTorch Trainer with your parameters
|
| 32 |
+
4. **π Real Training**: Executes actual model training for specified steps
|
| 33 |
+
5. **πΎ Save & Upload**: Saves trained model and uploads to HF Hub as `lemms/openllm-{size}-extended-8k`
|
| 34 |
+
|
| 35 |
+
### Training Configuration Options:
|
| 36 |
|
| 37 |
+
- **Model Size**: small, medium, large (currently supports small)
|
| 38 |
+
- **Max Steps**: 100-10,000 training iterations
|
| 39 |
+
- **Learning Rate**: 0.00001-0.001 (configurable)
|
| 40 |
+
- **Batch Size**: 1-16 samples per batch
|
| 41 |
+
|
| 42 |
+
### Expected Results:
|
| 43 |
+
|
| 44 |
+
- **Training Time**: 10-30 minutes for 1000 steps (depending on HF Space resources)
|
| 45 |
+
- **Output Model**: `lemms/openllm-small-extended-8k` (or other sizes)
|
| 46 |
+
- **Model Files**: Complete PyTorch model with tokenizer and configuration
|
| 47 |
|
| 48 |
## Model Repositories
|
| 49 |
|
| 50 |
+
- [π 7k Small Model](https://huggingface.co/lemms/openllm-small-extended-7k)
|
| 51 |
+
- [π― 8k Small Model](https://huggingface.co/lemms/openllm-small-extended-8k)
|
| 52 |
+
- [π Training Dataset](https://huggingface.co/datasets/lemms/openllm-training-data)
|
| 53 |
+
|
| 54 |
+
## Technical Details
|
| 55 |
+
|
| 56 |
+
- **Framework**: PyTorch with Transformers
|
| 57 |
+
- **UI**: Gradio 4.44.1 (latest stable version)
|
| 58 |
+
- **Training**: Mixed precision (FP16) for efficiency
|
| 59 |
+
- **Memory**: Optimized for HF Spaces with gradient accumulation
|
| 60 |
+
- **Dependencies**: Complete ML stack with all training utilities
|
| 61 |
+
|
| 62 |
+
## Usage
|
| 63 |
+
|
| 64 |
+
1. **Configure Parameters**: Set model size, steps, learning rate, and batch size
|
| 65 |
+
2. **Start Training**: Click "Start Training" to begin the complete pipeline
|
| 66 |
+
3. **Monitor Progress**: Watch real-time status updates and training progress
|
| 67 |
+
4. **Access Results**: Find your trained model in the HF Hub repository
|
| 68 |
|
| 69 |
## License
|
| 70 |
|
| 71 |
GPL-3.0 - See [LICENSE](LICENSE) for details.
|
| 72 |
+
|
| 73 |
+
## Author
|
| 74 |
+
|
| 75 |
+
**Louis Chua Bean Chong** - OpenLLM Project Maintainer
|