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 files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667---license: apache-2.0tags:- lamp- iot- pixel-art- light-control- fine-tuned- gguf- ollama---# LAMP Fine-Tuned ModelsFine-tuned language models for the **LAMP** (Moonside Lamp Emulator) project. These models generate JSON light 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 |## 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## Training ResultsBoth 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## Usage with Ollama1. Download the GGUF file2. Create a Modelfile:```# Modelfile.lamp-llama-3bFROM ./lamp-llama-3b.Q8_0.ggufPARAMETER temperature 0.3PARAMETER num_predict 4096PARAMETER stop <|eot_id|>```3. Create and run:```bashollama create lamp-llama-3b -f Modelfile.lamp-llama-3bollama run lamp-llama-3b "warm and cozy"```## Example**Input**: "Create a light program for: warm and cozy"**Output**: A JSON program controlling LED pixels with colors, animations, and timing for a warm ambient effect.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798---license: apache-2.0base_model: google/gemma-3-4b-ittags:- gemma3- gguf- fine-tuned- lamp- lighting- smart-home- jsondatasets:- custompipeline_tag: text-generation---# LAMP Models β Fine-tuned for Smart Lighting ControlFine-tuned language models that generate JSON lighting programs from natural language descriptions.## Models| 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- **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 Loss## Training Details## Summary## Usage### With Ollama (GGUF)```bash# 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, AutoTokenizermodel = AutoModelForCausalLM.from_pretrained("MrMoeeee/lamp-models", subfolder="lamp-gemma-4b-v2")tokenizer = AutoTokenizer.from_pretrained("MrMoeeee/lamp-models", subfolder="lamp-gemma-4b-v2")```## 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.pnglamp-gemma-4b-v2-gguf/ # Quantized GGUF for inferenceβββ lamp-gemma-4b-v2-Q8_0.ggufβββ Modelfile```## DatasetThe 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 control
README.md+74-43