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"
tokenizer_config: fix response schema regex — tool_calls before content, add tool_response terminator (from google upstream 2026-04-10)
Browse files16 unmodified lines17181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878816 unmodified lines"<|video|>"],"image_token": "<|image|>","is_local": true,"mask_token": "<mask>","model_max_length": 1000000000000000019884624838656,"model_specific_special_tokens": {"audio_token": "<|audio|>","boa_token": "<|audio>","boi_token": "<|image>","eoa_token": "<audio|>","eoc_token": "<channel|>","eoi_token": "<image|>","eot_token": "<turn|>","escape_token": "<|\"|>","etc_token": "<tool_call|>","etd_token": "<tool|>","etr_token": "<tool_response|>","image_token": "<|image|>","soc_token": "<|channel>","sot_token": "<|turn>","stc_token": "<|tool_call>","std_token": "<|tool>","str_token": "<|tool_response>","think_token": "<|think|>"},"pad_token": "<pad>","padding_side": "left","processor_class": "Gemma4Processor","response_schema": {"properties": {"content": {"type": "string"},"role": {"const": "assistant"},"thinking": {"type": "string"},"tool_calls": {"items": {"properties": {"function": {"properties": {"arguments": {"additionalProperties": {},"type": "object","x-parser": "gemma4-tool-call"},"name": {"type": "string"}},"type": "object","x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"},"type": {"const": "function"}},"type": "object"},"type": "array","x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"}},"type": "object","x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<content>(?:(?!\\<\\|tool_call\\>)(?!\\<turn\\|\\>).)+)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?:\\<turn\\|\\>)?"},"soc_token": "<|channel>","sot_token": "<|turn>",16 unmodified lines17181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666716 unmodified lines"<|video|>"],"image_token": "<|image|>","mask_token": "<mask>","model_max_length": 1000000000000000019884624838656,"pad_token": "<pad>","padding_side": "left","processor_class": "Gemma4Processor","response_schema": {"type": "object","properties": {"role": {"const": "assistant"},"thinking": {"type": "string"},"content": {"type": "string"},"tool_calls": {"x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>","type": "array","items": {"type": "object","properties": {"type": {"const": "function"},"function": {"type": "object","x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})","properties": {"name": {"type": "string"},"arguments": {"type": "object","x-parser": "gemma4-tool-call","additionalProperties": {}}}}}}}},"x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"},"soc_token": "<|channel>","sot_token": "<|turn>",
tokenizer_config.json+21-42