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"
cleanup: drop mlx files, align with lemer gguf-playground pattern
Browse filesMirrors 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>
Files changed (8)
- README.md+18-17
- model-00001-of-00006.safetensorsDeleted-3
- model-00002-of-00006.safetensorsDeleted-3
- model-00003-of-00006.safetensorsDeleted-3
- model-00004-of-00006.safetensorsDeleted-3
- model-00005-of-00006.safetensorsDeleted-3
- model-00006-of-00006.safetensorsDeleted-3
- model.safetensors.index.jsonDeleted
2 unmodified lines345678910111213141516171819202122232425262728293031323334352 unmodified linespipeline_tag: image-text-to-textlibrary_name: ggufbase_model:- LetheanNetwork/lemrdbase_model_relation: quantizedtags:- gemma4- gemma- gguf- safetensors- mlx- multimodal- vision- lemma- lethean- lem- apple-silicon- on-device- conversational---<!--This content is subject to the European Union Public Licence (EUPL-1.2).For full licence details, please refer to: https://huggingface.co/lthn/lemrd/tree/main/LICENSEOrigin URL: https://huggingface.co/lthn/lemrd/tree/main--># Lemrd — Gemma 4 31B DenseThe largest dense member of the [Lemma model family](https://huggingface.co/collections/lthn/lemma) by [Lethean](https://lthn.ai). An EUPL-1.2 fork of [Gemma 4 31B](https://huggingface.co/google/gemma-4-31B-it) with the **Lethean Ethical Kernel (LEK) merged into the weights** — consent-based reasoning baked into the attention projections via LoRA finetune, then merged so inference uses a single standalone model with no PEFT runtime required. GGUF and MLX builds with text and vision support, distributed from a single repo. Use GGUF with Ollama, llama.cpp, GPT4All, or LM Studio. Use MLX safetensors with `mlx-lm` and `mlx-vlm` for native Apple Silicon inference. The unmodified Gemma 4 31B fork lives at [LetheanNetwork/lemrd](https://huggingface.co/LetheanNetwork/lemrd) for users who want the raw Google weights without the LEK shift.**MLX-only quant variants:** [Q8](https://huggingface.co/lthn/lemrd-mlx-q8) | [BF16](https://huggingface.co/lthn/lemrd-mlx-bf16) — Q4 multimodal is bundled in this repo.> A **lemma** is "something assumed" — an intermediate theorem on the path to a larger proof, or a heading that signals the subject of what follows. The Lemma model family is named for that role: each variant is a stepping stone between raw capability and ethical application.2 unmodified lines34567891011121314151617181920212223242526272829303132333435362 unmodified linespipeline_tag: image-text-to-textlibrary_name: ggufbase_model:- LetheanNetwork/lemrdbase_model_relation: quantizedtags:- gemma4- lemma- gguf- llama.cpp- ollama- multimodal- vision- on-device- conversational---<!--This content is subject to the European Union Public Licence (EUPL-1.2).For full licence details, please refer to: https://huggingface.co/lthn/lemrd/tree/main/LICENSEOrigin URL: https://huggingface.co/lthn/lemrd/tree/main--># Lemrd — Gemma 4 31B Dense (GGUF)The largest dense member of the [Lemma model family](https://huggingface.co/collections/lthn/lemma) by [Lethean](https://lthn.ai). An EUPL-1.2 fork of [Gemma 4 31B](https://huggingface.co/google/gemma-4-31B-it) with the **Lethean Ethical Kernel (LEK) merged into the weights** — consent-based reasoning baked into the attention projections via LoRA finetune, then merged so inference uses a single standalone model with no PEFT runtime required.This repo ships the **GGUF multi-quant build** for Ollama, llama.cpp, LM Studio, and other gguf-compatible runners. The unmodified Gemma 4 31B fork lives at [LetheanNetwork/lemrd](https://huggingface.co/LetheanNetwork/lemrd) for users who want the raw Google weights without the LEK shift.**Looking for MLX?** The native Apple Silicon builds live in sibling repos:[`lthn/lemrd-mlx`](https://huggingface.co/lthn/lemrd-mlx) (4-bit default) |[`lthn/lemrd-mlx-8bit`](https://huggingface.co/lthn/lemrd-mlx-8bit) |[`lthn/lemrd-mlx-bf16`](https://huggingface.co/lthn/lemrd-mlx-bf16) (full precision)> A **lemma** is "something assumed" — an intermediate theorem on the path to a larger proof, or a heading that signals the subject of what follows. The Lemma model family is named for that role: each variant is a stepping stone between raw capability and ethical application.
123version https://git-lfs.github.com/spec/v1oid sha256:6a93ebff49222bf837fec630cca73782ff2662da0db93e74549fa743085d36ddsize 5326590887123version https://git-lfs.github.com/spec/v1oid sha256:b60c6d7570b9ceb1bcfd22091888121311882505d5bf7758db3fabe769f2d5bbsize 5351454850123version https://git-lfs.github.com/spec/v1oid sha256:0f889e77a2debd1346a4df0661e3daa0ff8c12fe0332a29f54d1d71e2ebf8a00size 5363842431123version https://git-lfs.github.com/spec/v1oid sha256:2b367bddf857b2a78f72d2c079d331e9a4d62354bfb05fc4b83cb20a724c3a5csize 5363842477123version https://git-lfs.github.com/spec/v1oid sha256:5a8d313c5486671508be95e040fcf429cf1184f859c27cc800507402a867c3f8size 5351456119123version https://git-lfs.github.com/spec/v1oid sha256:8fd7362728304f102b1c1c11118ee7b2e3baa2182f9e718364abf29d78cc827csize 2059325268