Instructions to use GoAutomateAI/terna-e2b-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 GoAutomateAI/terna-e2b-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 GoAutomateAI/terna-e2b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf GoAutomateAI/terna-e2b-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf GoAutomateAI/terna-e2b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf GoAutomateAI/terna-e2b-GGUF:Q2_K
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 GoAutomateAI/terna-e2b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf GoAutomateAI/terna-e2b-GGUF:Q2_K
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 GoAutomateAI/terna-e2b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf GoAutomateAI/terna-e2b-GGUF:Q2_K
Use Docker
docker model run hf.co/GoAutomateAI/terna-e2b-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use GoAutomateAI/terna-e2b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GoAutomateAI/terna-e2b-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": "GoAutomateAI/terna-e2b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GoAutomateAI/terna-e2b-GGUF:Q2_K
- Ollama
How to use GoAutomateAI/terna-e2b-GGUF with Ollama:
ollama run hf.co/GoAutomateAI/terna-e2b-GGUF:Q2_K
- Unsloth Desktop
- Pi
How to use GoAutomateAI/terna-e2b-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf GoAutomateAI/terna-e2b-GGUF:Q2_K
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": "GoAutomateAI/terna-e2b-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use GoAutomateAI/terna-e2b-GGUF with Docker Model Runner:
docker model run hf.co/GoAutomateAI/terna-e2b-GGUF:Q2_K
- Lemonade
How to use GoAutomateAI/terna-e2b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull GoAutomateAI/terna-e2b-GGUF:Q2_K
Run and chat with the model
lemonade run user.terna-e2b-GGUF-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use GoAutomateAI/terna-e2b-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 GoAutomateAI/terna-e2b-GGUF:Q2_K
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 GoAutomateAI/terna-e2b-GGUF:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use GoAutomateAI/terna-e2b-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf GoAutomateAI/terna-e2b-GGUF:Q2_K
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 "GoAutomateAI/terna-e2b-GGUF:Q2_K" \ --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"
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 GoAutomateAI/terna-e2b-GGUF:Q2_KRun Hermes
hermes
TernaโE2B (GGUF)
A ternary (~1.6โbit) distillation of Gemmaโ4โE2B ยท Preโrelease ๐
GoAutomate AI Institute โ Canadian Sovereign AI
Terna is the GoAutomate AI Institute's family of ternaryโweight language models. The name comes from the Latin terni โ "three each" โ a nod to the three values every weight is constrained to: { โ1, 0, +1 }, the ternary representation at the heart of the family. That constraint is our defining bet: models that are โ8โ10ร smaller and multiplyโfree, engineered to subtract cost, not intelligence โ capable from the edge to legacy datacenter GPUs to modern accelerators. TernaโE2B is the first member of the family.
โ ๏ธ Preโrelease checkpoint โ read first
These weights are an early checkpoint trained on ~1B tokens, published to demonstrate the method and invite community evaluation. They are not a finished model. Expect fluentโbutโconfidentlyโwrong answers, and verify every output. Production weights (~15B tokens) with full capability benchmarks will follow and replace this checkpoint. We deliberately defer quantitative capability claims to that release.
Model at a glance
| Base / teacher | google/gemma-4-E2B-it (capabilityโdense, Western openโweight lineage) |
| Method | Quantizationโaware distillation to ternary weights โ learned, not postโhoc rounded |
| Weight representation | Ternary โ each weight โ { โ1, 0, +1 } (โ1.58 bits; โ8โ10ร smaller than FP16, โ2ร smaller than 4โbit) |
| Format | GGUF (Q2_K), runs on llama.cpp |
| Language | English |
| Training tokens (this release) | ~1B (preโrelease checkpoint) |
| License | Gemma Terms of Use |
What is ternary?
Ternary constrains every weight to one of three values โ { โ1, 0, +1 } โ which does two things at once:
- Footprint collapses to โ1.58 bits per weight (logโ3), roughly an order of magnitude below half precision.
- The multiply disappears:
w ยท xwithw โ {โ1, 0, +1}is just add x, subtract x, or skip โ a general matrixโmultiply becomes a sparse signed sum, with ~โ of the work vanishing as structured sparsity.
Crucially, we reach ternary through distillation โ training a ternary "student" to reproduce a highโprecision Gemmaโ4โE2B "teacher" โ so the constraint is learned, not crudely imposed on a finished model. The guiding principle: subtract cost, not intelligence.
Full mathematics, methodology, and engineering are in TRโ2026โ001 โ Ternary Foundations for Efficient, Sovereign AI (Zenodo, DOI 10.5281/zenodo.21110909).
Files
| File | Size | Format |
|---|---|---|
terna-e2b-Q2_K.gguf |
~3.6 GB | GGUF (Q2_K) โ runs on llama.cpp |
Usage
This is a standard GGUF and runs on llama.cpp.
Quick test (CLI):
llama-cli -m terna-e2b-Q2_K.gguf -p "Explain what a mitochondrion does, in two sentences." --temp 0.7
Serve an OpenAIโcompatible endpoint:
llama-server \
-m terna-e2b-Q2_K.gguf \
-c 4096 --host 127.0.0.1 --port 8000
Then POST to http://127.0.0.1:8000/v1/chat/completions. The Gemmaโ4 chat template ships in the GGUF and is applied automatically when you use the chat endpoint.
Recommended generation settings
This checkpoint has a lowโentropy output distribution (very confident). For anything beyond short answers, soften it:
temperature: 0.7- a mild repetition penalty (e.g.
--repeat-penalty 1.2) for longโform generations, to avoid rigidity/repetition
Intended use
- Research and community evaluation of ternary distillation and efficient serving.
- Efficiency / systems experimentation โ edge, memoryโconstrained, and legacyโGPU serving where footprint dominates.
- Best behaved in wellโcovered domains: general science, biology, medicine (educational), mathematics, and computer science.
Out of scope / not recommended (for this preโrelease)
- Production or highโstakes use of any kind. This is an early checkpoint.
- Unverified factual, medical, legal, or safetyโcritical output. The model is confident even when wrong โ a human must verify.
- Longโcontext or longโform tasks without the softened sampling above.
Limitations & known behaviors
Honest notes from our own evaluation of this checkpoint:
- Confidently wrong. High topโ1 confidence means errors are stated as fluently and assertively as correct answers. Do not treat outputs as facts without checking.
- Low entropy โ rigidity. Peaked output distribution can make long generations repetitive or rigid; mitigate with the recommended sampling.
- Echoโloops on outโofโdistribution inputs. Limited chatโformat training means unusual phrasings or niche topics can trigger repetition/echoing. Stays healthiest in the wellโcovered domains listed above.
- Englishโcentric, small effective size, and inherits any biases/limitations of the Gemmaโ4โE2B base.
- Preโrelease quality. Capability is not yet benchmarked; the production (~15Bโtoken) release is the intended quality bar.
Training & method (summary)
The ternary student is trained under quantizationโaware objectives that align its outputs and intermediate representations to the Gemmaโ4โE2B teacher, so the { โ1, 0, +1 } constraint is learned during training rather than applied afterward. Languageโmodel linear layers are ternarized; embeddings, the LM head, and normalization layers are kept at higher precision. Serving optimizations are held to a tokenโidentical correctness gate against a reference path, so throughput work never silently changes outputs.
Exact data mixes, hyperparameters, and kernel/encoding internals are held proprietary; the methods and mental models are described in the Institute's technical reports.
About the GoAutomate AI Institute
The GoAutomate AI Institute is a notโforโprofit advancing Canadian sovereign AI โ accessible, responsible, Canadianโgoverned models for organizations across Canada, with a focus on efficiency and on sectors where provenance and governability matter (healthcare, public sector, critical infrastructure). Ternary is our bet on the next wave of efficient AI: capability that scales down in cost as readily as it scales up in ability.
License
This model is a derivative of Gemmaโ4โE2B and is governed by the Gemma Terms of Use. By downloading or using these weights you agree to those terms. Gemma is provided under and subject to the Gemma Terms of Use.
Citation
@techreport{goautomate2026ternary,
title = {Ternary Foundations for Efficient, Sovereign AI},
author = {{GoAutomate AI Institute}},
institution = {GoAutomate AI Institute},
number = {TR-2026-001},
year = {2026},
doi = {10.5281/zenodo.21110909},
url = {https://doi.org/10.5281/zenodo.21110909},
note = {Pre-release; ternary-distilled Gemma-4-E2B}
}
Contact
Questions, evaluation feedback, or collaboration: info@goautomate.ai ยท goautomate.institute
- Downloads last month
- 49
2-bit
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf GoAutomateAI/terna-e2b-GGUF:Q2_K