Instructions to use HumanjavaEnterprises/Ergo-upstream-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 HumanjavaEnterprises/Ergo-upstream-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 HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
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 HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS # Run inference directly in the terminal: ./build/bin/llama cli -hf HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
Use Docker
docker model run hf.co/HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
- Llama new
- LM Studio
- Jan
- vLLM
How to use HumanjavaEnterprises/Ergo-upstream-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HumanjavaEnterprises/Ergo-upstream-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": "HumanjavaEnterprises/Ergo-upstream-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
- Ollama
How to use HumanjavaEnterprises/Ergo-upstream-GGUF with Ollama:
ollama run hf.co/HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
- Unsloth Desktop
- Pi
How to use HumanjavaEnterprises/Ergo-upstream-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
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": "HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use HumanjavaEnterprises/Ergo-upstream-GGUF with Docker Model Runner:
docker model run hf.co/HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
- Lemonade
How to use HumanjavaEnterprises/Ergo-upstream-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
Run and chat with the model
lemonade run user.Ergo-upstream-GGUF-IQ2_XXS
List all available models
lemonade list
- Hermes Agent
How to use HumanjavaEnterprises/Ergo-upstream-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 HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
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 HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use HumanjavaEnterprises/Ergo-upstream-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS
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 "HumanjavaEnterprises/Ergo-upstream-GGUF:IQ2_XXS" \ --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"
Ergo, upstream GGUF (one 96 GB card + RAM, 265 GiB)
Amazon-FMR/Ergo (1.1T-parameter MoE, 55B active) quantized from Amazon's
BF16 release for one 96 GB card + RAM on stock upstream llama.cpp (ee467158 or newer). Routed experts are at
โ1.9 bits per weight with an importance matrix computed on this model, which covers all 256 experts in every MoE
layer. Everything else is Q8_0.
The recipe, tools and evals are in HumanjavaEnterprises/ergo-upstream (build/), so the build can be repeated for any Ergo checkpoint.
What this build is and isn't
What it is
- Amazon's model, quantized. No fine-tuning, merging or behavior edits. It answers and refuses as the base model does.
- A solid build for a large single-GPU workstation: the full 1.1T model (nothing pruned) on one 96 GB card + 256 GB of RAM at โ7 tok/s, โ17 with llama.cpp's expert cache. With more VRAM, more expert layers move onto the GPU (โ3.8 GiB each) and decode speeds up.
- It runs on upstream llama.cpp, so any llama.cpp-based tool can load it.
What hasn't been verified
- How close it stays to full precision on every task. At โ2 bits per expert weight, some loss is expected. The measured numbers are below; the BF16 (2.2 TB) and MXFP4 (583 GiB) originals don't fit on the test machine, so there is no local full-precision baseline.
- Long context. Measured at 8k context. Longer contexts should work (Ergo supports them) but haven't been tested here.
Run it
hf download HumanjavaEnterprises/Ergo-upstream-GGUF --local-dir ergo/
cd ergo && sha256sum -c SHA256SUMS
llama-server -m Ergo-IQ2_XXS-onecard-00001-of-00007.gguf \
-c 32768 -np 1 -ngl 999 -t 16 -ub 2048 -fa on --jinja \
-ot 'blk\.(1[6-9]|[2-6][0-9])\.ffn_(up|down)_exps=CPU' -lm none \
--chat-template-kwargs '{"enable_thinking":false}'
โ7 tok/s decode on one RTX PRO 6000 Blackwell Max-Q (96 GB) + a 16-core Xeon w5-3525 with 256 GB of DDR5: 7.4 tok/s token-weighted over the eval runs (8k context, reasoning off), 6-7 tok/s on short chats. The -ot line keeps the routed experts of layers 1-15 on the card (โ88 GB of VRAM in use) and the rest in RAM (โ180 GB). On a card with less free VRAM, raise the first layer number in the pattern.
Faster: expert cache (โ17 tok/s, same weights). Keep the routed experts of layers 1-8 on the card and turn the
VRAM that frees up into a cache of the most-used experts from the other layers (llama.cpp's --moe-cache-mib):
llama-server -m Ergo-IQ2_XXS-onecard-00001-of-00007.gguf \
-c 32768 -np 1 -ngl 999 -t 16 -ub 2048 -fa on --jinja \
-ot 'blk\.(9|[1-5][0-9]|6[0-3])\.ffn_(up|down)_exps=CPU' --moe-cache-mib 24000 --moe-cache-cpu-share 0.7 -lm none \
--cache-ram 0 --chat-template-kwargs '{"enable_thinking":false}'
Median 16.87 tok/s against 7.41 for the command above, measured back to back on the same machine (8k context, 6
generations of 768 tokens each, โ85 GB of VRAM in use). --moe-cache-cpu-share 0.7 computes most cache misses on the
CPU instead of uploading every one to the card; without it the same command runs at 10.6 tok/s. The cache changes
where experts are computed, not what is computed. Eval gate on this command: perplexity 3.2526 (identical), GSM8K
241/250 (identical), MMLU 412/500 against 413 (exact McNemar p = 1.0), the same 19/20 refusals, 16.4 tok/s
token-weighted over the evals. -lm none is required here: the cache needs the experts in pinned RAM, โ212 GiB of
it, so this command needs โ215 GiB of free RAM. --cache-ram 0 turns off llama-server's prompt cache (8 GiB of RAM
by default), which otherwise grows on top of that over many requests. On a card with less free VRAM, lower
--moe-cache-mib. Speed tuning is ongoing;
results are in EVALS.md.
-lm none loads the weights into RAM instead of memory-mapping them; with mmap, decode drops to โ1.5 tok/s. Leave
out --chat-template-kwargs to keep Ergo's reasoning on. Tool calls work through --jinja (llama.cpp's parser reads
Ergo's <ctrl3>โฆ<ctrl4> tool-call format natively, including parallel calls).
Evals
| eval | result |
|---|---|
| wikitext-2 perplexity (512 ctx, 150 chunks) | 3.2526 ยฑ 0.0311 |
| GSM8K (250, greedy, reasoning off) | 241/250 = 96.4% |
| MMLU (500, seeded sample, greedy, reasoning off) | 413/500 = 82.6% |
| refusal spot check (20 prompts a stock model usually declines) | 19/20 declined, as the base model does |
| decode speed (token-weighted over the evals) | 7.4 tok/s |
Comparison numbers wanted. No full-precision baseline exists yet: Amazon's BF16 and MXFP4 releases need far more memory than one 96 GB card + 256 GB of RAM. Results from larger setups, speed numbers on other hardware, and tweaks that raise tokens per second are all welcome as an issue or pull request on GitHub.
Method, raw data and reproduce steps: EVALS.md.
Files
Ergo-IQ2_XXS-onecard-0000{1..7}-of-00007.gguf: the model, 265.5 GiB in 7 shards (2.06 bpw overall). Point llama.cpp at the first shard.- Routed experts:
upIQ1_M,downIQ2_XXS; layers 1-3 and 62-63 both IQ2_XXS (1.92 bpw). - Attention, shared expert, dense layer 0, embeddings and output: Q8_0. Routers, norms and scales: F32.
- Routed experts:
ergo-imatrix.gguf: the imatrix asllama-imatrixwrote it (372 ร 2048 tokens). Use it for other quants of Ergo or its fine-tunes.LICENSE.md: Amazon's license and Acceptable Use Policy, which apply to these weights.SHA256SUMS.
License
The weights are Amazon's, under the Amazon Ergo Open-Weights License (copied unchanged from the source repo), including its Acceptable Use Policy. Ergo is not intended for anyone under 18. Outputs are probabilistic and can be inaccurate or inappropriate: check them before relying on them, and add safeguards suited to the use case. The tools in the GitHub repo are MIT.
Credits
- Model: Amazon Frontier Model Research, from
Amazon-FMR/Ergo-bf16 rev
f47e685. - Runtime, converter and quantizer: ggml-org/llama.cpp. Ergo support by @ngxson (#33485).
- Calibration data: permissively licensed public datasets. Each source, revision and license is listed in SOURCES.md. Wikipedia and WikiText content is CC BY-SA (Wikipedia contributors).
- Built by Vergel Evans / Humanjava Enterprises. Get in touch.
- Downloads last month
- 3
2-bit
Model tree for HumanjavaEnterprises/Ergo-upstream-GGUF
Base model
Amazon-FMR/Ergo-bf16