The smallest member of the Lemma model family by Lethean. An EUPL-1.2 fork of Gemma 4 E2B 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 — five quants from Q3_K_M up to BF16, with full multimodal support (text, image, audio). Use with Ollama, llama.cpp, GPT4All, or LM Studio. The unmodified Gemma 4 E2B fork lives at LetheanNetwork/lemer for users who want the raw Google weights without the LEK shift.
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.
GGUF Variants
File
Quant
Size
Use Case
lemer-q3_k_m.gguf
Q3_K_M
3.0 GB
Minimum viable — constrained devices
lemer-q4_k_m.gguf
Q4_K_M
3.2 GB
Recommended — best size/quality balance
lemer-q5_k_m.gguf
Q5_K_M
3.4 GB
Higher quality, moderate size
lemer-q6_k.gguf
Q6_K
3.6 GB
Near-lossless
lemer-q8_0.gguf
Q8_0
4.6 GB
Maximum quality quantised
lemer-bf16.gguf
BF16
8.7 GB
Full precision reference
All quants verified locally via Ollama and llama-cpp-python. For native Apple Silicon use lthn/lemer-mlx instead.
Repo Files
File
Format
Purpose
lemer-*.gguf
GGUF
Ollama, llama.cpp, GPT4All, LM Studio
config.json
JSON
Multimodal model config (architecture, quantisation, vision/audio towers)
1unsloth studio -H 0.0.0.0 -p 88882# Open http://localhost:8888 — search for lthn/lemer
Or use HuggingFace Spaces — no install, search for lthn/lemer.
llama.cpp
Install via brew (macOS/Linux), winget (Windows), or build from source:
bash
1brew install llama.cpp # macOS/Linux2winget install llama.cpp # Windows
bash
1# Start a local OpenAI-compatible server with a web UI:2llama-server -hf lthn/lemer:Q4_K_M
34# Run inference directly in the terminal:5llama-cli -hf lthn/lemer:Q4_K_M
1from llama_cpp import Llama
23llm = Llama.from_pretrained(4 repo_id="lthn/lemer",5 filename="lemer-q4_k_m.gguf",6)78# Text9llm.create_chat_completion(10 messages=[{"role":"user","content":"Hello, how are you?"}]11)1213# Vision (multimodal)14llm.create_chat_completion(15 messages=[16{17"role":"user",18"content":[19{"type":"text","text":"Describe this image in one sentence."},20{21"type":"image_url",22"image_url":{23"url":"https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"24}25}26]27}28]29)
Works with any OpenAI-compatible client at http://localhost:8080/v1.
vLLM
vLLM requires the original (non-quantised) safetensors weights from LetheanNetwork/lemer — it does not load GGUF or MLX-quantised safetensors. Linux + NVIDIA GPU.
lemma.cpp uses Google's .sbs (single-file binary) weight format, distinct from safetensors and GGUF. Pre-converted .sbs weights for the Lemma family are not yet published — track progress at LetheanNetwork/lemma.cpp.
Once .sbs weights are available, run ./build/gemma --weights lemer.sbs for interactive mode.
1from lemma import lem
23model = lem.nn.Gemma4_E2B()4params = lem.ckpts.load_params("path/to/orbax/checkpoint")5sampler = lem.text.ChatSampler(model=model, params=params, multi_turn=True)67output = sampler.chat("Hello, how are you?")8print(output)
Note: lemma's load_params requires Google's Orbax checkpoint format (sharded ocdbt files), not the GGUF in this repo. Orbax weights for the Lemma family are not yet published. For inference today, use GGUF (Ollama / llama.cpp) above or MLX via lthn/lemer-mlx.
Configurable thinking mode (<|think|> token in system prompt enables it; off by default in our examples via enable_thinking=False)
Native function calling and system prompt support
Variable aspect ratio image understanding
Audio speech recognition and translation (ASR/AST)
Multilingual support (140+ languages)
Hybrid attention (sliding window + global)
Roadmap
This release of lemer is Gemma 4 E2B with the Lethean Ethical Kernel (LEK) merged in — axiom-based reasoning baked into the attention weights via LoRA finetune, then merged into the base so inference uses a single standalone model with no PEFT runtime required. The unmodified Gemma 4 E2B fork lives at LetheanNetwork/lemer for users who want the raw Google weights without the LEK shift.
23 official languages, one legal meaning. EUPL is the only OSS licence designed by lawmakers across multiple legal systems. "Derivative work" means the same thing in German, French, Estonian, and Maltese law.
Copyleft with compatibility. Modifications must be shared back, but the licence plays cleanly with GPL, LGPL, MPL, and other major OSS licences. No accidental relicensing.
No proprietary capture. Anyone can use lemer commercially — but they cannot fork it, train a competitor model on it, and close-source the result. The ethical layer stays in the open.
Built for institutions. Government, research, and enterprise users get a licence designed for cross-border compliance, not a US-centric one.
Recommended Sampling
Use Google's standardised settings across all use cases:
Parameter
Value
temperature
1.0
top_p
0.95
top_k
64
stop
`<turn
Gemma 4 is calibrated for temperature: 1.0 — this is not the same as the typical 0.7 default for other models. Lower values reduce diversity without improving quality. These defaults are pre-configured in the params file (Ollama) and generation_config.json (transformers).
Variable Image Resolution
Gemma 4 supports a configurable visual token budget that controls how many tokens represent each image. Higher = more detail, lower = faster inference.
Token Budget
Use Case
70
Classification, captioning, video frame processing
140
General image understanding
280
Default — balanced quality and speed
560
OCR, document parsing, fine-grained detail
1120
Maximum detail (small text, complex documents)
For multimodal prompts, place image and audio content before text for best results.
The default budget (280) is set in processor_config.json via image_seq_length and max_soft_tokens. Override per call by adjusting those fields, or by passing explicit image_seq_length to the processor where supported.
Audio (E2B)
E2B supports speech recognition (ASR) and speech translation (AST) up to 30 seconds per clip. Audio longer than 30 seconds should be split into chunks before inference.
Audio input works through GGUF multimodal-capable runners (llama.cpp server with the vision/audio build, or llama-cpp-python multimodal). For a ready-made multimodal Python path today, use the MLX sibling repo lthn/lemer-mlx with mlx-vlm — see that repo's README for the mlx_vlm.load() / mlx_vlm.generate() pattern.
The 8-PAC eval pipeline runs continuously on our homelab and publishes results as they complete. Categories: ethics, reasoning, instruction-following, coding, multilingual, safety, knowledge, creativity.
Lethean is a social enterprise building ethical AI infrastructure. The Lemma model family is part of the LEM (Lethean Ethical Model) project — training protocol and tooling for intrinsic ethical alignment of language models.