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"
Upload config.json with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144{"architectures": ["Gemma4ForConditionalGeneration"],"audio_config": null,"audio_token_id": 258881,"boa_token_id": 256000,"boi_token_id": 255999,"dtype": "bfloat16","eoa_token_id": 258883,"eoa_token_index": 258883,"eoi_token_id": 258882,"eos_token_id": [1,106,50],"image_token_id": 258880,"initializer_range": 0.02,"model_type": "gemma4","quantization": {"group_size": 64,"bits": 4,"mode": "affine"},"quantization_config": {"group_size": 64,"bits": 4,"mode": "affine"},"text_config": {"attention_bias": false,"attention_dropout": 0.0,"attention_k_eq_v": true,"bos_token_id": 2,"dtype": "bfloat16","enable_moe_block": false,"eos_token_id": 1,"expert_intermediate_size": null,"final_logit_softcapping": 30.0,"global_head_dim": 512,"head_dim": 256,"hidden_activation": "gelu_pytorch_tanh","hidden_size": 5376,"hidden_size_per_layer_input": 0,"initializer_range": 0.02,"intermediate_size": 21504,"layer_types": ["sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention"],"max_position_embeddings": 262144,"model_type": "gemma4_text","num_attention_heads": 32,"num_experts": null,"num_global_key_value_heads": 4,"num_hidden_layers": 60,"num_key_value_heads": 16,"num_kv_shared_layers": 0,"pad_token_id": 0,"rms_norm_eps": 1e-06,"rope_parameters": {"full_attention": {"partial_rotary_factor": 0.25,"rope_theta": 1000000.0,"rope_type": "proportional"},"sliding_attention": {"rope_theta": 10000.0,"rope_type": "default"}},"sliding_window": 1024,"tie_word_embeddings": true,"top_k_experts": null,"use_bidirectional_attention": "vision","use_cache": true,"use_double_wide_mlp": false,"vocab_size": 262144,"vocab_size_per_layer_input": 262144},"tie_word_embeddings": true,"transformers_version": "5.5.0.dev0","video_token_id": 258884,"vision_soft_tokens_per_image": 280}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143{"architectures": ["Gemma4ForConditionalGeneration"],"audio_config": null,"audio_token_id": 258881,"boa_token_id": 256000,"boi_token_id": 255999,"dtype": "bfloat16","eoa_token_id": 258883,"eoa_token_index": 258883,"eoi_token_id": 258882,"eos_token_id": [1,106],"image_token_id": 258880,"initializer_range": 0.02,"model_type": "gemma4","quantization": {"group_size": 64,"bits": 4,"mode": "affine"},"quantization_config": {"group_size": 64,"bits": 4,"mode": "affine"},"text_config": {"attention_bias": false,"attention_dropout": 0.0,"attention_k_eq_v": true,"bos_token_id": 2,"dtype": "bfloat16","enable_moe_block": false,"eos_token_id": 1,"expert_intermediate_size": null,"final_logit_softcapping": 30.0,"global_head_dim": 512,"head_dim": 256,"hidden_activation": "gelu_pytorch_tanh","hidden_size": 5376,"hidden_size_per_layer_input": 0,"initializer_range": 0.02,"intermediate_size": 21504,"layer_types": ["sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention"],"max_position_embeddings": 262144,"model_type": "gemma4_text","num_attention_heads": 32,"num_experts": null,"num_global_key_value_heads": 4,"num_hidden_layers": 60,"num_key_value_heads": 16,"num_kv_shared_layers": 0,"pad_token_id": 0,"rms_norm_eps": 1e-06,"rope_parameters": {"full_attention": {"partial_rotary_factor": 0.25,"rope_theta": 1000000.0,"rope_type": "proportional"},"sliding_attention": {"rope_theta": 10000.0,"rope_type": "default"}},"sliding_window": 1024,"tie_word_embeddings": true,"top_k_experts": null,"use_bidirectional_attention": "vision","use_cache": true,"use_double_wide_mlp": false,"vocab_size": 262144,"vocab_size_per_layer_input": 262144},"tie_word_embeddings": true,"transformers_version": "5.5.0.dev0","video_token_id": 258884,"vision_soft_tokens_per_image": 280}
config.json+137-138