Add model card with training details and graphs
Browse files
README.md
CHANGED
|
@@ -1,67 +1,98 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# LAMP Fine-
|
| 14 |
|
| 15 |
-
Fine-tuned language models
|
| 16 |
|
| 17 |
## Models
|
| 18 |
|
| 19 |
-
| Model | Base |
|
| 20 |
-
|-------|------|--------
|
| 21 |
-
|
|
| 22 |
-
| `lamp-gemma-4b.Q8_0.gguf` | Gemma 3 4B IT | 4.3B | 3.9 GB | 0.0247 |
|
| 23 |
|
| 24 |
## Training Details
|
| 25 |
|
| 26 |
-
- **
|
| 27 |
-
- **Precision**
|
| 28 |
-
- **
|
| 29 |
-
- **
|
| 30 |
-
- **
|
| 31 |
-
- **
|
| 32 |
-
- **
|
| 33 |
-
- **
|
| 34 |
-
- **
|
| 35 |
|
| 36 |
-
## Training
|
| 37 |
|
| 38 |
-

|
| 42 |
|
| 43 |
+
## Training Details
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+

|
| 46 |
|
| 47 |
+
## Summary
|
|
|
|
| 48 |
|
| 49 |
+

|
| 50 |
+
|
| 51 |
+
## Usage
|
| 52 |
+
|
| 53 |
+
### With Ollama (GGUF)
|
|
|
|
|
|
|
| 54 |
|
|
|
|
| 55 |
```bash
|
| 56 |
+
# Download the GGUF file and Modelfile from lamp-gemma-4b-v2-gguf/
|
| 57 |
+
ollama create lamp-gemma -f Modelfile
|
| 58 |
+
ollama run lamp-gemma "warm and cozy lighting"
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
### With Transformers (HuggingFace)
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 65 |
+
|
| 66 |
+
model = AutoModelForCausalLM.from_pretrained("MrMoeeee/lamp-models", subfolder="lamp-gemma-4b-v2")
|
| 67 |
+
tokenizer = AutoTokenizer.from_pretrained("MrMoeeee/lamp-models", subfolder="lamp-gemma-4b-v2")
|
| 68 |
```
|
| 69 |
|
| 70 |
+
## Files
|
| 71 |
+
|
| 72 |
+
```
|
| 73 |
+
lamp-gemma-4b-v2/ # Full model weights + training logs
|
| 74 |
+
βββ model-00001-of-00002.safetensors
|
| 75 |
+
βββ model-00002-of-00002.safetensors
|
| 76 |
+
βββ config.json
|
| 77 |
+
βββ tokenizer.json
|
| 78 |
+
βββ training_config.json
|
| 79 |
+
βββ training_log.json
|
| 80 |
+
βββ training_metrics.csv
|
| 81 |
+
βββ metrics_detailed.json
|
| 82 |
+
βββ graphs/
|
| 83 |
+
βββ training_loss.png
|
| 84 |
+
βββ training_details.png
|
| 85 |
+
βββ training_summary.png
|
| 86 |
+
|
| 87 |
+
lamp-gemma-4b-v2-gguf/ # Quantized GGUF for inference
|
| 88 |
+
βββ lamp-gemma-4b-v2-Q8_0.gguf
|
| 89 |
+
βββ Modelfile
|
| 90 |
+
```
|
| 91 |
|
| 92 |
+
## Dataset
|
| 93 |
|
| 94 |
+
The LAMP dataset consists of natural language lighting requests paired with JSON lighting programs. Each program controls RGB LEDs with support for:
|
| 95 |
+
- Static colors and gradients
|
| 96 |
+
- Animations (breathing, rainbow, chase, etc.)
|
| 97 |
+
- Multi-step sequences with timing
|
| 98 |
+
- Brightness and speed control
|