Instructions to use debackerl/elephant-1-Q8_0-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 debackerl/elephant-1-Q8_0-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 debackerl/elephant-1-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0
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 debackerl/elephant-1-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/debackerl/elephant-1-Q8_0-GGUF:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use debackerl/elephant-1-Q8_0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "debackerl/elephant-1-Q8_0-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "debackerl/elephant-1-Q8_0-GGUF", "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/debackerl/elephant-1-Q8_0-GGUF:Q8_0
- Ollama
How to use debackerl/elephant-1-Q8_0-GGUF with Ollama:
ollama run hf.co/debackerl/elephant-1-Q8_0-GGUF:Q8_0
- Unsloth Desktop
- Pi
How to use debackerl/elephant-1-Q8_0-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "debackerl/elephant-1-Q8_0-GGUF:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use debackerl/elephant-1-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/debackerl/elephant-1-Q8_0-GGUF:Q8_0
- Lemonade
How to use debackerl/elephant-1-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull debackerl/elephant-1-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.elephant-1-Q8_0-GGUF-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use debackerl/elephant-1-Q8_0-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0
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:8080/v1 hermes config set model.default debackerl/elephant-1-Q8_0-GGUF:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use debackerl/elephant-1-Q8_0-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf debackerl/elephant-1-Q8_0-GGUF:Q8_0
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:8080/v1 \ --custom-model-id "debackerl/elephant-1-Q8_0-GGUF:Q8_0" \ --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"
elephant-1 โ Q8_0, decision-wired GGUF
baselabs/elephant-1 (9B decision model, Qwen3.5-9B post-train, vision) in Q8_0, with the
llama.cpp decision metadata and a systemone prompt template so that POST /v1/systemone
works.
- Base model:
baselabs/elephant-1โ MIT, Base Labs at Baseten. - Q8_0 weights and Q8_0 vision tower:
mradermacher/elephant-1-GGUF. - This repo adds metadata/template only. No weights were changed or re-quantized.
- Used scripts from scripts from
waseigo/elephant-1-decision-GGUF, MIT license.
Why this repo exists
A plain GGUF conversion of elephant-1 is a qwen35 text model. llama.cpp/llama-swap's
/v1/systemone then answers 501 "This model is not a decision model", because the file has no
<arch>.decision.* keys and no named systemone template. The decision readout is headless โ
qev's slot_lm falls back to the LM logits of the slot labels โ which llama.cpp already implements
as OPENJEV.
This build adds:
| Key | Value |
|---|---|
qwen35.decision.type |
openjev |
qwen35.decision.temperature.choice |
1.0 |
qwen35.decision.temperature.score |
1.0 |
qwen35.decision.temperature.noul |
1.0 |
qwen35.attention.causal |
false |
tokenizer.chat_template.systemone |
qev prompt template (see systemone.jinja) |
The template reproduces qev's qev/prompt.py layout byte-for-byte for choice, noul and
score, wrapped in the base Qwen chat template's markers. Verify with
test-chat-template --no-common; the choice/score/noul renders are identical to the transformers
apply_chat_template output that qev feeds the model.
Two template details matter and are easy to get wrong:
- Generate the labels in the template.
OPENJEVreads the logits of the label tokens (AโZ, aโz) but does not pass alabelto the template. Use{% set letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' %}and{{ letters[loop.index0] }}. - Emit newlines explicitly. transformers' Jinja (
trim_blocks=True) and llama.cpp's minja trim differently. A literal newline after a block tag disappears in minja, which concatenates option lines. Use{{ '\n' }}.
Files
| File | Size | SHA-256 |
|---|---|---|
elephant-1-Q8_0.gguf |
9,527,504,224 B | 652c102967efa9a1adf9c63ebaada547fba189888ca0680944aae595398fdf9d |
elephant-1.mmproj-Q8_0.gguf |
624,229,760 B | 6906d682cc8ca0e353c39e4f9926c9a02c7770fd2f367ace5cb08c5b2cc48603 |
systemone.jinja |
1,479 B | the template above |
graft_decision_metadata.py |
โ | adds the decision keys + template to a plain GGUF |
graft_noncausal.py |
โ | adds qwen35.attention.causal = false |
Usage
Build with decision support (llama.cpp b11820 or newer):
llama-server \
-m elephant-1-Q8_0.gguf \
--mmproj elephant-1.mmproj-Q8_0.gguf \
--image-min-tokens 1024 -c 32768 -fa on --jinja \
--host 127.0.0.1 --port 8999
The log must say decision model type: openjev.
curl -s http://127.0.0.1:8999/v1/systemone -H 'Content-Type: application/json' -d '{
"state": "I was charged twice for my order last week and nobody has replied.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {"billing": "payments and refunds", "shipping": null, "technical": null}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this?",
"criteria": ["can wait", "this week", "today", "right now"]
},
"angry": {"type": "noul", "instructions": "Is the customer angry?"}
}
}'
Caveats
- Q8_0: quantized by mradermacher. Quality tracks that quant, not BF16.
- Attention mask: the base declares
full_attention: block_bidirectional. llama.cpp has no per-block mask key, soattention.causal = falsemakes the full-attention layers fully noncausal. Because llama.cpp evaluates the shared prefix on its own and each question suffix afterwards, this reproduces qev's two-block mask (prefix block, suffix block). A prompt that is evaluated as one unsplit batch would not have the same semantics. - Label space:
OPENJEVreads 52 single-token labels (AโZ, aโz). qev'sslot_lmdefines up to 256 labels (AโZ plus two-letter codes). Up to 26 options is the validated path; larger option sets were not validated. - Temperature: 1.0. The base repo has no
calibration.json; qev's calibration defaults to identity. - JSON states: a state object is rendered with
tojson(indent=2), matching qev'sjson.dumps(..., indent=2). Non-ASCII escaping may differ from Python'sensure_ascii=False.
Credits and license
- Model: Base Labs at Baseten,
baselabs/elephant-1, MIT. - Quant and vision tower: mradermacher,
mradermacher/elephant-1-GGUF. - Prompt/readout reference: OneJev
qev(qev/prompt.py,serve.patch). - llama.cpp decision models: ggml-org, PR #29818 and follow-ups.
The graft and this packaging are released under the base model's MIT terms. No warranty.
- Downloads last month
- 239
8-bit