Instructions to use spinozans/emender-e97-4b-gguf 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 spinozans/emender-e97-4b-gguf 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 spinozans/emender-e97-4b-gguf:F32 # Run inference directly in the terminal: llama cli -hf spinozans/emender-e97-4b-gguf:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf spinozans/emender-e97-4b-gguf:F32 # Run inference directly in the terminal: llama cli -hf spinozans/emender-e97-4b-gguf:F32
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf spinozans/emender-e97-4b-gguf:F32 # Run inference directly in the terminal: ./llama-cli -hf spinozans/emender-e97-4b-gguf:F32
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf spinozans/emender-e97-4b-gguf:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf spinozans/emender-e97-4b-gguf:F32
Use Docker
docker model run hf.co/spinozans/emender-e97-4b-gguf:F32
- LM Studio
- Jan
- Ollama
How to use spinozans/emender-e97-4b-gguf with Ollama:
ollama run hf.co/spinozans/emender-e97-4b-gguf:F32
- Unsloth Desktop
- Docker Model Runner
How to use spinozans/emender-e97-4b-gguf with Docker Model Runner:
docker model run hf.co/spinozans/emender-e97-4b-gguf:F32
- Lemonade
How to use spinozans/emender-e97-4b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull spinozans/emender-e97-4b-gguf:F32
Run and chat with the model
lemonade run user.emender-e97-4b-gguf-F32
List all available models
lemonade list
- Atomic Chat
EMENDER E97 4B β GGUF (llama.cpp)
GGUF conversions of the EMENDER E97 4B model family for llama.cpp. E97 is a 4,045,972,080-parameter hybrid recurrent architecture (bounded tanh-state sequential recurrence, 18 layers, d_model 3840, 60 heads x 64, SwiGLU MLP hidden 9600, tied embedding/lm_head, vocab 50,281 p50k_base + 24 codex space-run extras). It has NO attention and NO KV cache β state is bounded per layer, which is why it runs efficiently on CPU.
Two checkpoints are provided:
e97-4b-base-99B-f32/e97-4b-base-99B-q4_0β the raw from-scratch pretraining checkpoint (~99.7B tokens). Pure LM continuation model; no post-training, no chat training.e97-4b-pi-f32-aligned/e97-4b-pi-q8_0-v2/e97-4b-pi-q4_0β the verified Pi-native tool-agent checkpoint (the dual-gate-passed, promoted v6-u96), post-trained for a coding-agent tool surface.
Quantification β read before choosing
Every quant was qualified on a frozen 32-prompt panel against its own f32 reference (top-1 next-token agreement, KL over top-64 logits, greedy-exact):
| Model | Quant | top-1 vs f32 | mean KL | size | decode tok/s* | Verdict |
|---|---|---|---|---|---|---|
| agent | q8_0-v2 | 32/32 (100%) | 0.0020 | 4.87 GB | 19.4 | qualified β recommended |
| agent | q4_0 | 31/32 (96.9%) | 0.0371 | 2.94 GB | 25.4 | footprint option β one prompt off |
| base-99B | q4_0 | 27/32 (84.4%) | 0.0186 | 2.94 GB | 25.0 | footprint option |
* 32 CPU threads, shared host. f32 runs at ~7-8 tok/s.
Honest guidance: q8_0-v2 is the smallest quant that passes the port's qualification precedent (top-1 >= 0.97, KL <= 0.05). The q4_0 files are provided as small-footprint options with their measured degradation stated β the agent q4_0 misses by exactly one prompt; the base q4_0 degrades more.
Running (requires the emender_e97 llama.cpp arch)
These GGUFs use a registered custom architecture (emender_e97); use a
llama.cpp build with that arch registered (the Emender repo carries the
registration patch series). Standard invocation:
llama-cli -m e97-4b-base-99B-q4_0.gguf -p "Once upon a time" -n 64 -t 32 --temp 0.7 -st
llama-server -m e97-4b-pi-q8_0-v2.gguf --host 127.0.0.1 --port 8151 -t 32
Caveats, stated plainly
- No chat template is embedded. llama.cpp falls back to a ChatML-style wrapper; that is NOT the trained format. The agent checkpoint was trained on a strict five-line Analysis/Commentary/Action/Arguments frame protocol under a canonical system prompt β for on-distribution behavior, use the Emender repo's serving path (OpenAI-compatible server) or the CPU REPL, which implement the trained codec.
- Greedy decoding repetition-collapses this model (both checkpoints; a model property, reproduced identically across f32 and q4). Sample with temperature ~0.7 / min-p, or use DRY/repetition penalties.
- The base model is a raw LM: it continues text, it does not chat.
- The agent checkpoint is a narrow coding/tool agent, not a general assistant.
Provenance
- Base: from-scratch frontier pretraining run, step 24448 (~99.72B tokens),
checkpoint SHA-256
3ace004251643acf2e7c7f720e8f29968ad0a483441553c0c885b87b3df84568. - Agent: promoted v6-u96 dual-gate-passed checkpoint, SHA-256
d81464982c3ebc0d72769a87e079068bf535d6ca2010185dc1bb03ce264b8f5b. - Conversion: bitwise-verified tensor-by-tensor against the source state dicts.
- Port qualification: GGML runner + registered llama.cpp arch vs GPU reference: 32/32 top-1, KL 0.0007 (f32).
- Downloads last month
- 63
4-bit
8-bit
32-bit