Instructions to use MrMoeeee/lamp-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MrMoeeee/lamp-models with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MrMoeeee/lamp-models:Q8_0 # Run inference directly in the terminal: llama cli -hf MrMoeeee/lamp-models:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MrMoeeee/lamp-models:Q8_0 # Run inference directly in the terminal: llama cli -hf MrMoeeee/lamp-models:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf MrMoeeee/lamp-models:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf MrMoeeee/lamp-models:Q8_0
Use Docker
docker model run hf.co/MrMoeeee/lamp-models:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use MrMoeeee/lamp-models with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MrMoeeee/lamp-models" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MrMoeeee/lamp-models", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MrMoeeee/lamp-models:Q8_0
- Ollama
How to use MrMoeeee/lamp-models with Ollama:
ollama run hf.co/MrMoeeee/lamp-models:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use MrMoeeee/lamp-models with Docker Model Runner:
docker model run hf.co/MrMoeeee/lamp-models:Q8_0
- Lemonade
How to use MrMoeeee/lamp-models with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MrMoeeee/lamp-models:Q8_0
Run and chat with the model
lemonade run user.lamp-models-Q8_0
List all available models
lemonade list
- Atomic Chat
Add model card with training details and graphs
Browse files123445678910567891011121314151613171815192021221920212223242526272826272829303132333429303132333435363738363940384142404142434444454646474748495051525354554950515253545755596056575859606162636465666768696370717273747576777879808182838485868788899091659293679495969798---license: apache-2.0base_model: google/gemma-3-4b-ittags: - lamp - iot - pixel-art - light-control - fine-tuned - gguf - ollama- gemma3- gguf- fine-tuned- lamp- lighting- smart-home- jsondatasets:- custompipeline_tag: text-generation---
# LAMP Fine-Tuned Models# LAMP Models β Fine-tuned for Smart Lighting Control
Fine-tuned language models for the **LAMP** (Moonside Lamp Emulator) project. These models generate JSON light programs from natural language descriptions.Fine-tuned language models that generate JSON lighting programs from natural language descriptions.
## Models
| Model | Base | Parameters | GGUF Size | Final Eval Loss ||-------|------|-----------|-----------|-----------------|| `lamp-llama-3b.Q8_0.gguf` | Llama 3.2 3B Instruct | 3.2B | 3.2 GB | 0.0294 || `lamp-gemma-4b.Q8_0.gguf` | Gemma 3 4B IT | 4.3B | 3.9 GB | 0.0247 || Model | Base | Params | GGUF Size | Final Eval Loss ||-------|------|--------|-----------|-----------------|| **lamp-gemma-4b-v2** | Gemma 3 4B IT | 4.3B | ~4.1 GB (Q8_0) | 0.0288 |
## Training Details
- **Method**: Full fine-tune (100% parameters trainable, not LoRA)- **Precision**: bf16- **Hardware**: NVIDIA H200 (140GB VRAM)- **Framework**: Unsloth + HuggingFace TRL- **Dataset**: 2,268 train / 253 validation examples- **Epochs**: 3- **Batch size**: 16 (4 per device x 4 gradient accumulation)- **Learning rate**: 2e-5 with cosine decay- **Optimizer**: AdamW- **Fine-tune Type:** Full parameter (no LoRA) β all 4,300,079,472 parameters trained- **Precision:** bf16 (bfloat16)- **Dataset:** 6,567 training examples + 730 validation examples- **Epochs:** 2- **Effective Batch Size:** 16 (8 per device Γ 2 gradient accumulation)- **Learning Rate:** 2e-5 with cosine schedule- **Optimizer:** AdamW (weight decay 0.01)- **Training Time:** 38.1 minutes on NVIDIA H200- **Peak VRAM:** 24.3 GB
## Training Results## Training Loss

Both models converged well:- **Llama 3.2 3B**: Loss 1.38 -> 0.018, eval loss 0.0294- **Gemma 3 4B**: Loss 1.37 -> 0.018, eval loss 0.0247## Training Details
## Usage with Ollama
1. Download the GGUF file2. Create a Modelfile:## Summary
```# Modelfile.lamp-llama-3bFROM ./lamp-llama-3b.Q8_0.ggufPARAMETER temperature 0.3PARAMETER num_predict 4096PARAMETER stop <|eot_id|>```
## Usage
### With Ollama (GGUF)
3. Create and run:```bashollama create lamp-llama-3b -f Modelfile.lamp-llama-3bollama run lamp-llama-3b "warm and cozy"# Download the GGUF file and Modelfile from lamp-gemma-4b-v2-gguf/ollama create lamp-gemma -f Modelfileollama run lamp-gemma "warm and cozy lighting"```
### With Transformers (HuggingFace)
```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("MrMoeeee/lamp-models", subfolder="lamp-gemma-4b-v2")tokenizer = AutoTokenizer.from_pretrained("MrMoeeee/lamp-models", subfolder="lamp-gemma-4b-v2")```
## Example## Files
```lamp-gemma-4b-v2/ # Full model weights + training logs βββ model-00001-of-00002.safetensors βββ model-00002-of-00002.safetensors βββ config.json βββ tokenizer.json βββ training_config.json βββ training_log.json βββ training_metrics.csv βββ metrics_detailed.json βββ graphs/ βββ training_loss.png βββ training_details.png βββ training_summary.png
lamp-gemma-4b-v2-gguf/ # Quantized GGUF for inference βββ lamp-gemma-4b-v2-Q8_0.gguf βββ Modelfile```
**Input**: "Create a light program for: warm and cozy"## Dataset
**Output**: A JSON program controlling LED pixels with colors, animations, and timing for a warm ambient effect.The LAMP dataset consists of natural language lighting requests paired with JSON lighting programs. Each program controls RGB LEDs with support for:- Static colors and gradients- Animations (breathing, rainbow, chase, etc.)- Multi-step sequences with timing- Brightness and speed controlREADME.md+74-43