Instructions to use MrMoeeee/lamp-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use MrMoeeee/lamp-models with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MrMoeeee/lamp-models", filename="lamp-gemma-4b-v2-gguf/lamp-gemma-4b-v2-Q8_0.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use MrMoeeee/lamp-models with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -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-server -hf MrMoeeee/lamp-models:Q8_0 # Run inference directly in the terminal: llama-cli -hf MrMoeeee/lamp-models:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -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/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -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
- 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 Studio new
How to use MrMoeeee/lamp-models with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MrMoeeee/lamp-models to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MrMoeeee/lamp-models to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MrMoeeee/lamp-models to start chatting
- 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
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
|