Run this model with HF Jobs
Run Amazon-FMR/Ergo on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Amazon-FMR/Ergo. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Amazon-FMR/Ergo on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Amazon-FMR/Ergo. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Amazon-FMR/Ergo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Amazon-FMR/Ergo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Amazon-FMR/Ergo") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Amazon-FMR/Ergo") model = AutoModelForCausalLM.from_pretrained("Amazon-FMR/Ergo", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Amazon-FMR/Ergo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Amazon-FMR/Ergo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Amazon-FMR/Ergo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Amazon-FMR/Ergo
- SGLang
How to use Amazon-FMR/Ergo with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Amazon-FMR/Ergo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Amazon-FMR/Ergo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Amazon-FMR/Ergo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Amazon-FMR/Ergo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Amazon-FMR/Ergo with Docker Model Runner:
docker model run hf.co/Amazon-FMR/Ergo
2-bit Ergo, 391 GiB: 11 tok/s on two GPUs, 3 tok/s on a MacBook
Made a smaller Ergo: the most-used 20% of experts stay as Amazon released them, the rest go to ~2-bit.
391 GiB instead of 583.
- 2× RTX PRO 6000: 11.3 tok/s (release: 5.8)
- MacBook Pro M5 Max with 3 NVMe drives: 3.1 tok/s (release: 2.4)
- Cost: prose perplexity +5.7%, the same top token as the release 89% of the time
It runs on our engine only (not GGUF), streaming experts from SSD.
Dropping 1.1T Ergo onto 2x RTX PRO 6000 (192 GB VRAM total) with SSD expert streaming changes the cloud rental economics dramatically compared to full-memory hosting:
- Native MXFP4 (626 GB weights, ~678 GB GPU memory): requires an 8x H100/H200 node in the cloud (typically $13-$28/hr depending on provider and H100 vs H200).
- 2x RTX PRO 6000 96GB (for this 391 GiB SSD-streamed build): single RTX PRO 6000 96GB rentals currently sit around $1.10-$1.80/hr per card across GPU clouds (so ~$2.20-$3.60/hr for a 2x setup, roughly an 80% hourly reduction for single-user / low-concurrency testing).
Disclosure: I run FastGPU. Anyone comparing live hourly rates for RTX PRO 6000 vs 8x H100/H200 for Ergo can check them here: https://fastgpu.co/vram-calculator/Amazon-FMR/Ergo?utm_source=huggingface&utm_medium=discussion&utm_campaign=ergo-2bit
Dropping 1.1T Ergo onto 2x RTX PRO 6000 (192 GB VRAM total) with SSD expert streaming changes the cloud rental economics dramatically compared to full-memory hosting:
- Native MXFP4 (626 GB weights, ~678 GB GPU memory): requires an 8x H100/H200 node in the cloud (typically $13-$28/hr depending on provider and H100 vs H200).
- 2x RTX PRO 6000 96GB (for this 391 GiB SSD-streamed build): single RTX PRO 6000 96GB rentals currently sit around $1.10-$1.80/hr per card across GPU clouds (so ~$2.20-$3.60/hr for a 2x setup, roughly an 80% hourly reduction for single-user / low-concurrency testing).
Disclosure: I run FastGPU. Anyone comparing live hourly rates for RTX PRO 6000 vs 8x H100/H200 for Ergo can check them here: https://fastgpu.co/vram-calculator/Amazon-FMR/Ergo?utm_source=huggingface&utm_medium=discussion&utm_campaign=ergo-2bit
Thank you, that's a fair comparison. Please note the speed depends on fast local NVMe, because the experts stream from disk. Our 11.3 tok/s was with a RAID of three PCIe 5 drives (about 22–26 GiB/s); on slower cloud disks expect less.
Amazon's original 4-bit files also run on the same two cards with our engine, at 6–7 tok/s.