Instructions to use lthn/lemrd 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 lthn/lemrd 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 lthn/lemrd:Q4_K_M # Run inference directly in the terminal: llama cli -hf lthn/lemrd:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lthn/lemrd:Q4_K_M # Run inference directly in the terminal: llama cli -hf lthn/lemrd:Q4_K_M
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 lthn/lemrd:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf lthn/lemrd:Q4_K_M
Use Docker
docker model run hf.co/lthn/lemrd:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use lthn/lemrd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lthn/lemrd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lthn/lemrd", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/lthn/lemrd:Q4_K_M
- Ollama
How to use lthn/lemrd with Ollama:
ollama run hf.co/lthn/lemrd:Q4_K_M
- Unsloth Desktop
- Pi
How to use lthn/lemrd with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf lthn/lemrd:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "lthn/lemrd:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use lthn/lemrd with Docker Model Runner:
docker model run hf.co/lthn/lemrd:Q4_K_M
- Lemonade
How to use lthn/lemrd with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lthn/lemrd:Q4_K_M
Run and chat with the model
lemonade run user.lemrd-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use lthn/lemrd with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf lthn/lemrd:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default lthn/lemrd:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use lthn/lemrd with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf lthn/lemrd:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "lthn/lemrd:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Commit History
-
fix(config): sync with upstream Google Gemma 4 day-1 fixes (b446025, b4a6011)
Verified signature- Restore vision_config block; clean eos_token_id to [1, 106] - Align generation_config.json transformers_version field Preserves local tokenizer_config.json (model_specific_special_tokens embedded into model during LEK training).c1361bb
-
tokenizer_config: fix response schema regex — tool_calls before content, add tool_response terminator (from google upstream 2026-04-10)
Verified signature5abc300
-
docs: correct base_model lineage for HF model tree
Snider +1: VirgilHF uses base_model + base_model_relation frontmatter to rank models in search results and render the model tree widget. The Lemma family's true lineage is: google/gemma-4-*-it └── LetheanNetwork/<m> (finetune — our namespace fork) └── lthn/<m> (finetune — LEK merged into weights) └── lthn/<m>-mlx (quantized — mlx 4/8bit/bf16) Previously this repo had base_model_relation set to quantized, which was wrong — LEK merging is a finetune, not a quant. Fixing so the model tree widget ranks the family correctly. Co-Authored-By: Virgil <virgil@lethean.io>78b23a6 -
cleanup: drop mlx files, align with lemer gguf-playground pattern
Snider +1: VirgilMirrors the 160384c lemer cleanup for the rest of the family. HF was rendering this repo with mlx detection because mlx-formatted safetensors lived alongside the gguf files — hurting gguf/Ollama discoverability for users searching for llama.cpp-compatible weights. Changes: - model-*.safetensors / model.safetensors.index.json removed (these were mlx affine-quant format, not transformers — duplicated content now in lthn/lemrd-mlx-*) - README title suffixed '(GGUF)' - README body: removed mlx inline quick-starts, added redirect block pointing at lthn/lemrd-mlx / -mlx-8bit / -mlx-bf16 - frontmatter tags dropped mlx / apple-silicon, added llama.cpp / ollama - library_name preserved gguf (lemmy changed from mlx → gguf) - stale model-index block (pre-reset smoke numbers) removed — the canon in .eval_results/ is authoritative Co-Authored-By: Virgil <virgil@lethean.io>e3f08f5 -
docs: update README for LEK-merged Lemma family
Snider +1: VirgilUpdate model card to reflect LEK (Lethean Ethical Kernel) merged into weights, align all four variants with the family template, and correct the pre-merge subtitle language where present. Co-Authored-By: Virgil <virgil@lethean.io>203a38c
-
feat: merge LEK into lemrd weights
Snider +1: VirgilLEK-2 LoRA merged into Gemma 4 31B Dense attention projections. Converged at loss 0.0002 in 278 steps via patience-stop (best at 248). Gradient checkpointing enabled. KV-shared layers restored from base. Co-Authored-By: Virgil <virgil@lethean.io>6ac4b6c -
fix: pull Google's chat_template.jinja fix (26B/31B variant)
Snider +1: Cladius MaximusCo-Authored-By: Cladius Maximus <cladius@lethean.io>6aedc33 -
fix: replace LICENSE symlink with real EUPL-1.2 file
Snider +1: Cladius MaximusCo-Authored-By: Cladius Maximus <cladius@lethean.io>176af07
-
Upload config.json with huggingface_hub
Verified signature1303d01 -
Upload tokenizer_config.json with huggingface_hub
Verified signature06b064a -
Upload config.json with huggingface_hub
Verified signaturee6e303f -
Upload processor_config.json with huggingface_hub
Verified signaturef94870d -
Upload config.json with huggingface_hub
Verified signature1a43df6 -
Upload folder using huggingface_hub
Verified signature6468fab
-
Replace bf16 with Q4 MLX — consumer-ready quantisation
Verified signatureac18253 -
Update README.md
Verified signature882673e -
Upload Lemrd 31B bf16 (MLX format) — LEK-activated Gemma 4 31B
Verified signature4df9ce8 -
initial commit
Verified signature9b0288f