Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -4,34 +4,59 @@ tags:
|
|
| 4 |
- knowledge-distillation
|
| 5 |
- pytorch
|
| 6 |
- transformers
|
| 7 |
-
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
#
|
| 11 |
|
| 12 |
-
This model
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
## Model Description
|
| 16 |
|
| 17 |
-
A distilled model created using multi-modal knowledge distillation.
|
| 18 |
|
| 19 |
## Training Details
|
| 20 |
|
| 21 |
-
- **
|
| 22 |
-
- **
|
| 23 |
-
- **Training Steps**: 2000
|
| 24 |
- **Learning Rate**: 0.001
|
| 25 |
|
| 26 |
## Usage
|
| 27 |
|
| 28 |
```python
|
| 29 |
-
from transformers import AutoModel,
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
```
|
| 34 |
|
| 35 |
-
##
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
- knowledge-distillation
|
| 5 |
- pytorch
|
| 6 |
- transformers
|
| 7 |
+
- student-model
|
| 8 |
+
base_model: unknown
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Distilled Student Model
|
| 12 |
|
| 13 |
+
This is a student model created through knowledge distillation.
|
| 14 |
+
|
| 15 |
+
## Model Details
|
| 16 |
+
|
| 17 |
+
- **Architecture**: StudentModel
|
| 18 |
+
- **Hidden Size**: 1024
|
| 19 |
+
- **Number of Layers**: 12
|
| 20 |
+
- **Modalities**: ['text']
|
| 21 |
+
- **Created**: 2025-08-26T13:45:10.851453
|
| 22 |
+
|
| 23 |
+
## Teacher Models
|
| 24 |
|
|
|
|
| 25 |
|
|
|
|
| 26 |
|
| 27 |
## Training Details
|
| 28 |
|
| 29 |
+
- **Strategy**: weighted
|
| 30 |
+
- **Training Steps**: 5000
|
|
|
|
| 31 |
- **Learning Rate**: 0.001
|
| 32 |
|
| 33 |
## Usage
|
| 34 |
|
| 35 |
```python
|
| 36 |
+
from transformers import AutoModel, AutoConfig
|
| 37 |
|
| 38 |
+
# Load the model
|
| 39 |
+
model = AutoModel.from_pretrained("path/to/model", trust_remote_code=True)
|
| 40 |
+
config = AutoConfig.from_pretrained("path/to/model")
|
| 41 |
+
|
| 42 |
+
# Use for inference or further training
|
| 43 |
+
outputs = model(input_ids)
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Retraining
|
| 47 |
+
|
| 48 |
+
This model can be used as a student model for incremental training:
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
# Load as existing student for further distillation
|
| 52 |
+
existing_student = "path/to/this/model"
|
| 53 |
+
# Add new teachers and continue training
|
| 54 |
```
|
| 55 |
|
| 56 |
+
## Files
|
| 57 |
|
| 58 |
+
- `pytorch_model.safetensors`: Model weights
|
| 59 |
+
- `config.json`: Model configuration
|
| 60 |
+
- `model.py`: Custom model architecture
|
| 61 |
+
- `training_history.json`: Complete training history
|
| 62 |
+
- `README.md`: This file
|