Text Generation
Transformers
Safetensors
English
ergo
conversational
Mixture of Experts
coding
8-bit precision
mxfp4
Instructions to use DeepDive404-4/Ergo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepDive404-4/Ergo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepDive404-4/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("DeepDive404-4/Ergo") model = AutoModelForCausalLM.from_pretrained("DeepDive404-4/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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepDive404-4/Ergo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepDive404-4/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": "DeepDive404-4/Ergo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DeepDive404-4/Ergo
- SGLang
How to use DeepDive404-4/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 "DeepDive404-4/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": "DeepDive404-4/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 "DeepDive404-4/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": "DeepDive404-4/Ergo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DeepDive404-4/Ergo with Docker Model Runner:
docker model run hf.co/DeepDive404-4/Ergo
Commit ·
ddeb8ab
0
Parent(s):
Duplicate from Amazon-FMR/Ergo
Browse filesCo-authored-by: Hao <haoliu@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +38 -0
- Amazon_Ergo_Public_Summary_of_Training_Content.pdf +3 -0
- LICENSE.md +50 -0
- README.md +124 -0
- assets/benchmarks.png +3 -0
- chat_template.jinja +119 -0
- config.json +40 -0
- generation_config.json +11 -0
- model-00001-of-00065.safetensors +3 -0
- model-00002-of-00065.safetensors +3 -0
- model-00003-of-00065.safetensors +3 -0
- model-00004-of-00065.safetensors +3 -0
- model-00005-of-00065.safetensors +3 -0
- model-00006-of-00065.safetensors +3 -0
- model-00007-of-00065.safetensors +3 -0
- model-00008-of-00065.safetensors +3 -0
- model-00009-of-00065.safetensors +3 -0
- model-00010-of-00065.safetensors +3 -0
- model-00011-of-00065.safetensors +3 -0
- model-00012-of-00065.safetensors +3 -0
- model-00013-of-00065.safetensors +3 -0
- model-00014-of-00065.safetensors +3 -0
- model-00015-of-00065.safetensors +3 -0
- model-00016-of-00065.safetensors +3 -0
- model-00017-of-00065.safetensors +3 -0
- model-00018-of-00065.safetensors +3 -0
- model-00019-of-00065.safetensors +3 -0
- model-00020-of-00065.safetensors +3 -0
- model-00021-of-00065.safetensors +3 -0
- model-00022-of-00065.safetensors +3 -0
- model-00023-of-00065.safetensors +3 -0
- model-00024-of-00065.safetensors +3 -0
- model-00025-of-00065.safetensors +3 -0
- model-00026-of-00065.safetensors +3 -0
- model-00027-of-00065.safetensors +3 -0
- model-00028-of-00065.safetensors +3 -0
- model-00029-of-00065.safetensors +3 -0
- model-00030-of-00065.safetensors +3 -0
- model-00031-of-00065.safetensors +3 -0
- model-00032-of-00065.safetensors +3 -0
- model-00033-of-00065.safetensors +3 -0
- model-00034-of-00065.safetensors +3 -0
- model-00035-of-00065.safetensors +3 -0
- model-00036-of-00065.safetensors +3 -0
- model-00037-of-00065.safetensors +3 -0
- model-00038-of-00065.safetensors +3 -0
- model-00039-of-00065.safetensors +3 -0
- model-00040-of-00065.safetensors +3 -0
- model-00041-of-00065.safetensors +3 -0
- model-00042-of-00065.safetensors +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/benchmarks.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Amazon_Ergo_Public_Summary_of_Training_Content.pdf filter=lfs diff=lfs merge=lfs -text
|
Amazon_Ergo_Public_Summary_of_Training_Content.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e0c39aa4da5bd543192b10f5d1cbbaa1aab5f61626c4adfa9666c334582d246
|
| 3 |
+
size 288093
|
LICENSE.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Amazon Ergo Open-Weights License
|
| 2 |
+
|
| 3 |
+
Amazon hereby grants permission, free of charge, to any person (the “Licensee”) accessing or obtaining a copy of this model and associated documentation, including the model weights and configuration files (the “Model”), to use, run, deploy, copy, fine-tune or otherwise modify, merge, publish, distribute, sublicense, and/or sell copies of the Model, and permit persons to whom the Model is furnished to do the same, subject to the following conditions:
|
| 4 |
+
|
| 5 |
+
1. Licensee shall include this license in all copies or substantial portions of the Model.
|
| 6 |
+
|
| 7 |
+
2. Licensee's use of the Model must comply with all applicable laws, rules, and regulations and adhere to the Acceptable Use Policy attached as Exhibit A.
|
| 8 |
+
|
| 9 |
+
3. If Licensee or any of its affiliates operates a Model as a Service business (defined below), and the aggregate gross revenue of Licensee and its affiliates exceeds US$20,000,000 (or the equivalent in other currencies) during any consecutive 12 month period, Licensee must enter into a separate written agreement with Amazon before offering the Model or any customized versions as part of that Model as a Service business. **“Model as a Service business”** means providing third parties with access to artificial intelligence models for inference or fine-tuning, via API or hosted endpoint, where the third parties control the inputs and/or training data provided to, and receive the outputs of, such models. This Section 3 does not apply to (a) Licensee's internal use, research, or any commercial activity that is not part of a Model as a Service business, or (b) Licensee's use of the Model as a component to power features of the Licensee's own product or service that is not part of a Model as a Service business.
|
| 10 |
+
|
| 11 |
+
4. Licensee must not use, or facilitate others to use, Amazon Ergo to attempt to reverse engineer or reconstruct the data used to train Amazon Ergo
|
| 12 |
+
|
| 13 |
+
5. To the maximum extent permitted by applicable law, the Model and any outputs are provided on an "as is" basis, without warranty of any kind, express of implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. Licensee is solely responsible for determining the appropriateness of using or redistributing the Model and any outputs and assumes any risks associated with its use of the same.
|
| 14 |
+
|
| 15 |
+
6. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, will Amazon or its affiliates be liable to Licensee for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this license or out of the use or inability to use the Model (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Licensee has been advised of the possibility of such damages.
|
| 16 |
+
|
| 17 |
+
“Amazon” means Amazon Media EU S.à r.l. if Licensee is located in the EEA, Switzerland, or United Kingdom, and Amazon.com Services LLC if Licensee is located anywhere else.
|
| 18 |
+
|
| 19 |
+
## EXHIBIT A - Acceptable Use Policy
|
| 20 |
+
|
| 21 |
+
Dated: December 1, 2026
|
| 22 |
+
|
| 23 |
+
This Policy applies to Licensee's use of Amazon Ergo including any customized versions.
|
| 24 |
+
|
| 25 |
+
### Prohibitions.
|
| 26 |
+
|
| 27 |
+
Licensee may not use, or facilitate or allow others to use, Amazon Ergo:
|
| 28 |
+
|
| 29 |
+
- for any illegal or fraudulent activity;
|
| 30 |
+
- for intentional disinformation or deception;
|
| 31 |
+
- to violate the rights or privacy of others, including by unlawful tracking, monitoring, and identification;
|
| 32 |
+
- to threaten, incite, promote, facilitate, or actively encourage violence, terrorism, suicide, self-harm, or other serious harm;
|
| 33 |
+
- for harm or abuse of a minor, including grooming and child sexual exploitation or the creation of any content that promotes or facilitates the same;
|
| 34 |
+
- to harass, harm, abuse, or encourage the harm of individuals or specific groups;
|
| 35 |
+
- to violate the security, integrity, or availability of any user, network, computer or communications system, software application, or network or computing device;
|
| 36 |
+
- to infringe or misappropriate the intellectual property rights of others;
|
| 37 |
+
- to distribute, publish, send, or facilitate the sending of unsolicited mass email or other messages, promotions, advertising, or solicitations (or “spam”);
|
| 38 |
+
- to intentionally circumvent safety measures or model alignment to enable model functionality disabled by Amazon or that otherwise violates this Policy.
|
| 39 |
+
|
| 40 |
+
### Responsible AI Requirements
|
| 41 |
+
|
| 42 |
+
It is Licensee's obligation to ensure that Amazon Ergo is used and deployed in a safe and responsible manner with appropriate additional guardrails for its use case. Amazon Ergo is not intended for individuals under the age of 18. It is Licensee's duty to disclose the risks associated with its use of Amazon Ergo to end users.
|
| 43 |
+
|
| 44 |
+
Licensee and its end users are responsible for all decisions made, advice given, actions taken, and failures to take action based on use of Amazon Ergo. Output generated by a machine learning model is probabilistic, and generative AI may produce inaccurate or inappropriate content. Outputs should be evaluated for accuracy and appropriateness for each use case.
|
| 45 |
+
|
| 46 |
+
Amazon Ergo is not intended to be used for any prohibited practices under the EU AI Act or other applicable laws, and is not intended, designed, or validated for any use classified as high-risk under Article 6 of the EU AI Act.
|
| 47 |
+
|
| 48 |
+
If Licensee or its end users use Amazon Ergo to make consequential decisions, Licensee must evaluate the potential risks of its use case and implement appropriate human oversight, testing, and other use case-specific safeguards to mitigate such risks. Consequential decisions include those impacting a person’s fundamental rights, health, or safety (e.g., medical diagnosis, judicial proceedings, access to critical benefits like housing or government benefits, opportunities like education, decisions to hire or terminate employees, or access to lending/credit, and providing legal, financial, or medical advice).
|
| 49 |
+
|
| 50 |
+
It’s Licensee's responsibility to ensure compliance with any laws, rules, and regulations applicable to its use of Amazon Ergo including by providing any legally adequate notices and obtaining any necessary consents.
|
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: Amazon-FMR/Ergo-bf16
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
license: other
|
| 6 |
+
license_name: amazon-ergo-open-weight-license
|
| 7 |
+
license_link: https://huggingface.co/Amazon-FMR/Ergo/blob/main/LICENSE.md
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
tags:
|
| 12 |
+
- conversational
|
| 13 |
+
- moe
|
| 14 |
+
- coding
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<h1 align="center">Amazon Ergo</h1>
|
| 18 |
+
|
| 19 |
+
<p align="center">
|
| 20 |
+
<a href="https://www.aboutamazon.com/amazon-ergo">Launch Blog</a> |
|
| 21 |
+
<a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html">Try on Amazon Bedrock</a> |
|
| 22 |
+
<a href="https://huggingface.co/Amazon-FMR/Ergo">MXFP4</a> |
|
| 23 |
+
<a href="https://huggingface.co/Amazon-FMR/Ergo-mxfp8">MXFP8</a> |
|
| 24 |
+
<a href="https://huggingface.co/Amazon-FMR/Ergo-bf16">BF16</a> |
|
| 25 |
+
<a href="https://huggingface.co/Amazon-FMR/Ergo/blob/main/LICENSE.md">License</a>
|
| 26 |
+
</p>
|
| 27 |
+
|
| 28 |
+
Amazon Ergo is a frontier open-weights model for software engineering and agentic workflows. Ergo is designed to tackle complex, long-running tasks while being fast and cost efficient. Ergo is a 1.1 trillion parameter mixture-of-experts model with 55 billion active parameters and a 1M-token context window.
|
| 29 |
+
|
| 30 |
+
<p align="center"><img src="assets/benchmarks.png" alt="Ergo and leading open-weights models on five coding benchmarks" width="100%"></p>
|
| 31 |
+
|
| 32 |
+
## Highlights
|
| 33 |
+
|
| 34 |
+
- **Software engineering:** 74.2% on DeepSWE, 31.5% on FrontierSWE v2, 46.2% on Terminal-Bench 4.0, and 65.4% on FMR-Bench AI SWE, our internal benchmark of real engineering tasks.
|
| 35 |
+
- **Speed:** Over 400 output tokens per second on Amazon Bedrock. Turbo mode reaches 2,200 and is available in limited preview, with pricing to be announced later.
|
| 36 |
+
- **Safety:** Evaluated for release under Amazon's Frontier Model Safety Framework. For more information, refer to the forthcoming Ergo Frontier Model Safety Report.
|
| 37 |
+
|
| 38 |
+
## Get started
|
| 39 |
+
|
| 40 |
+
**Amazon Bedrock.** Ergo is available on [Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-amazon-ergo-1-0.html) at $1 per million input tokens, $0.03 per million cached input tokens, and $3 per million output tokens, at over 400 output tokens per second. Zero data retention: Amazon does not store your prompts or outputs, and never uses them to train models. Ergo runs on the AWS Nitro System with zero operator access.
|
| 41 |
+
|
| 42 |
+
**Your own hardware.** [SGLang](https://docs.sglang.io/cookbook/autoregressive/Amazon/Ergo) and [vLLM](https://recipes.vllm.ai/Amazon-FMR/Ergo) support Ergo from day one.
|
| 43 |
+
|
| 44 |
+
| Precision | Repository | Download size |
|
| 45 |
+
|---|---|---|
|
| 46 |
+
| MXFP4 | [Amazon-FMR/Ergo](https://huggingface.co/Amazon-FMR/Ergo) | 626 GB |
|
| 47 |
+
| MXFP8 | [Amazon-FMR/Ergo-mxfp8](https://huggingface.co/Amazon-FMR/Ergo-mxfp8) | 1.17 TB |
|
| 48 |
+
| BF16 | [Amazon-FMR/Ergo-bf16](https://huggingface.co/Amazon-FMR/Ergo-bf16) | 2.22 TB |
|
| 49 |
+
|
| 50 |
+
## Evaluations
|
| 51 |
+
|
| 52 |
+
<table>
|
| 53 |
+
<thead>
|
| 54 |
+
<tr><th style="text-align:left;padding:5px 8px">Benchmark</th><th style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08);font-size:12px">Ergo</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">Kimi<br>K3.1 Pro</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">GLM<br>5.3</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">Mistral<br>Large 4</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">Muse Spark<br>Open</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">Beam</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">Inkling 2<br>Small</th><th style="text-align:center;padding:5px 6px;font-size:12px;font-weight:500">Nemotron 3<br>Ultra</th></tr>
|
| 55 |
+
</thead>
|
| 56 |
+
<tbody>
|
| 57 |
+
<tr><td colspan="9" style="padding:5px 8px;background-color:rgba(128,128,128,0.1);font-weight:600">FMR-Bench <span style="font-weight:400;opacity:0.7">(internal)</span></td></tr>
|
| 58 |
+
<tr><td style="padding:5px 8px">AI SWE<br><span style="font-size:11px;opacity:0.7">pass@1</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)"><b>65.4</b></td><td style="text-align:center;padding:5px 6px">58.6</td><td style="text-align:center;padding:5px 6px">44.3</td><td style="text-align:center;padding:5px 6px">39.4</td><td style="text-align:center;padding:5px 6px">28.1</td><td style="text-align:center;padding:5px 6px">26.4</td><td style="text-align:center;padding:5px 6px">51.3</td><td style="text-align:center;padding:5px 6px">4.1</td></tr>
|
| 59 |
+
<tr><td style="padding:5px 8px">Ultra Long Horizon<br><span style="font-size:11px;opacity:0.7">pass@1</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)"><b>20.5</b></td><td style="text-align:center;padding:5px 6px">13.1</td><td style="text-align:center;padding:5px 6px">9.7</td><td style="text-align:center;padding:5px 6px">7.5</td><td style="text-align:center;padding:5px 6px">1.2</td><td style="text-align:center;padding:5px 6px">0.8</td><td style="text-align:center;padding:5px 6px">6.0</td><td style="text-align:center;padding:5px 6px">0.0</td></tr>
|
| 60 |
+
<tr><td style="padding:5px 8px">Code Quality<br><span style="font-size:11px;opacity:0.7">Rubric score</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)"><b>32.1</b></td><td style="text-align:center;padding:5px 6px">28.1</td><td style="text-align:center;padding:5px 6px">19.7</td><td style="text-align:center;padding:5px 6px">20.4</td><td style="text-align:center;padding:5px 6px">8.3</td><td style="text-align:center;padding:5px 6px">5.4</td><td style="text-align:center;padding:5px 6px">26.6</td><td style="text-align:center;padding:5px 6px">1.4</td></tr>
|
| 61 |
+
<tr><td colspan="9" style="padding:5px 8px;background-color:rgba(128,128,128,0.1);font-weight:600">Agentic coding <span style="font-weight:400;opacity:0.7">(public)</span></td></tr>
|
| 62 |
+
<tr><td style="padding:5px 8px">DeepSWE<br><span style="font-size:11px;opacity:0.7">pass@1</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">74.2</td><td style="text-align:center;padding:5px 6px"><b>77.9</b></td><td style="text-align:center;padding:5px 6px">69.5</td><td style="text-align:center;padding:5px 6px">59.1</td><td style="text-align:center;padding:5px 6px">56.6</td><td style="text-align:center;padding:5px 6px">42.0</td><td style="text-align:center;padding:5px 6px">67.3</td><td style="text-align:center;padding:5px 6px">3.7</td></tr>
|
| 63 |
+
<tr><td style="padding:5px 8px">FrontierSWE v2<br><span style="font-size:11px;opacity:0.7">Score</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)"><b>31.5</b></td><td style="text-align:center;padding:5px 6px">29.3</td><td style="text-align:center;padding:5px 6px">30.2†</td><td style="text-align:center;padding:5px 6px">15.8</td><td style="text-align:center;padding:5px 6px">11.1</td><td style="text-align:center;padding:5px 6px">9.0</td><td style="text-align:center;padding:5px 6px">25.9†</td><td style="text-align:center;padding:5px 6px">3.6</td></tr>
|
| 64 |
+
<tr><td style="padding:5px 8px">Terminal-Bench 4.0<br><span style="font-size:11px;opacity:0.7">pass@1</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">46.2</td><td style="text-align:center;padding:5px 6px"><b>63.3</b></td><td style="text-align:center;padding:5px 6px">36.9</td><td style="text-align:center;padding:5px 6px">30.1</td><td style="text-align:center;padding:5px 6px">5.1</td><td style="text-align:center;padding:5px 6px">4.5</td><td style="text-align:center;padding:5px 6px">12.9</td><td style="text-align:center;padding:5px 6px">0.0</td></tr>
|
| 65 |
+
<tr><td style="padding:5px 8px">ProgramBench<br><span style="font-size:11px;opacity:0.7">Almost resolved</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">23.5</td><td style="text-align:center;padding:5px 6px"><b>24.1</b></td><td style="text-align:center;padding:5px 6px">14.8</td><td style="text-align:center;padding:5px 6px">12.7</td><td style="text-align:center;padding:5px 6px">2.0</td><td style="text-align:center;padding:5px 6px">2.5</td><td style="text-align:center;padding:5px 6px">12.2</td><td style="text-align:center;padding:5px 6px">0.0</td></tr>
|
| 66 |
+
<tr><td colspan="9" style="padding:5px 8px;background-color:rgba(128,128,128,0.1);font-weight:600">Science and ML <span style="font-weight:400;opacity:0.7">(public)</span></td></tr>
|
| 67 |
+
<tr><td style="padding:5px 8px">Terminal-Bench Science 0.1<br><span style="font-size:11px;opacity:0.7">pass@1</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">21.3</td><td style="text-align:center;padding:5px 6px"><b>35.7</b></td><td style="text-align:center;padding:5px 6px">5.7†</td><td style="text-align:center;padding:5px 6px">3.1</td><td style="text-align:center;padding:5px 6px">1.0</td><td style="text-align:center;padding:5px 6px">1.0</td><td style="text-align:center;padding:5px 6px">2.9</td><td style="text-align:center;padding:5px 6px">0.2</td></tr>
|
| 68 |
+
<tr><td style="padding:5px 8px">FrontierML<br><span style="font-size:11px;opacity:0.7">Score</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">24.5</td><td style="text-align:center;padding:5px 6px"><b>29.6</b>†</td><td style="text-align:center;padding:5px 6px">19.6†</td><td style="text-align:center;padding:5px 6px">12.7</td><td style="text-align:center;padding:5px 6px">2.3</td><td style="text-align:center;padding:5px 6px">4.1</td><td style="text-align:center;padding:5px 6px">8.8</td><td style="text-align:center;padding:5px 6px">0.0</td></tr>
|
| 69 |
+
<tr><td colspan="9" style="padding:5px 8px;background-color:rgba(128,128,128,0.1);font-weight:600">Professional work <span style="font-weight:400;opacity:0.7">(public)</span></td></tr>
|
| 70 |
+
<tr><td style="padding:5px 8px">AutomationBench-AA<br><span style="font-size:11px;opacity:0.7">AA score</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">70.0†</td><td style="text-align:center;padding:5px 6px"><b>73.3</b>†</td><td style="text-align:center;padding:5px 6px">62.2†</td><td style="text-align:center;padding:5px 6px">57.8†</td><td style="text-align:center;padding:5px 6px">49.7†</td><td style="text-align:center;padding:5px 6px">48.5†</td><td style="text-align:center;padding:5px 6px">45.6†</td><td style="text-align:center;padding:5px 6px">3.0†</td></tr>
|
| 71 |
+
<tr><td style="padding:5px 8px">GDPval-AA 1.0<br><span style="font-size:11px;opacity:0.7">Weighted score</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">86.2</td><td style="text-align:center;padding:5px 6px"><b>89.0</b></td><td style="text-align:center;padding:5px 6px">87.4</td><td style="text-align:center;padding:5px 6px">86.7</td><td style="text-align:center;padding:5px 6px">86.3</td><td style="text-align:center;padding:5px 6px">81.9</td><td style="text-align:center;padding:5px 6px">88.4</td><td style="text-align:center;padding:5px 6px">78.7</td></tr>
|
| 72 |
+
<tr><td style="padding:5px 8px">Briefcase-AA 1.1<br><span style="font-size:11px;opacity:0.7">Elo</span></td><td style="text-align:center;padding:5px 6px;background-color:rgba(37,99,235,0.08)">1615†</td><td style="text-align:center;padding:5px 6px"><b>1672</b>†</td><td style="text-align:center;padding:5px 6px">1498†</td><td style="text-align:center;padding:5px 6px">1347†</td><td style="text-align:center;padding:5px 6px">1281†</td><td style="text-align:center;padding:5px 6px">976†</td><td style="text-align:center;padding:5px 6px">1527†</td><td style="text-align:center;padding:5px 6px">879†</td></tr>
|
| 73 |
+
</tbody>
|
| 74 |
+
</table>
|
| 75 |
+
|
| 76 |
+
Ergo compared with leading open-weights models. Higher scores are better. The metric is under each benchmark name. Bold: best open-weights score in each row. † Result from an independently run public leaderboard. Unmarked cells: our runs.
|
| 77 |
+
|
| 78 |
+
Full results and methodology are in the [announcement](https://www.aboutamazon.com/amazon-ergo).
|
| 79 |
+
|
| 80 |
+
## Model details
|
| 81 |
+
|
| 82 |
+
<table>
|
| 83 |
+
<tbody>
|
| 84 |
+
<tr><td><b>Developer</b></td><td>Amazon Frontier Model Research (FMR)</td></tr>
|
| 85 |
+
<tr><td><b>Release date</b></td><td>December 1, 2026</td></tr>
|
| 86 |
+
<tr><td><b>License</b></td><td>Amazon Ergo Open-Weights License</td></tr>
|
| 87 |
+
<tr><td><b>Architecture</b></td><td>Mixture-of-experts transformer</td></tr>
|
| 88 |
+
<tr><td><b>Experts per layer</b></td><td>256 routed (8 active per token) + 1 shared</td></tr>
|
| 89 |
+
<tr><td><b>Parameters</b></td><td>1.1T total, 55B active per token</td></tr>
|
| 90 |
+
<tr><td><b>Precision</b></td><td>MXFP4</td></tr>
|
| 91 |
+
<tr><td><b>Context window</b></td><td>1M tokens</td></tr>
|
| 92 |
+
<tr><td><b>Maximum output</b></td><td>128K tokens</td></tr>
|
| 93 |
+
<tr><td><b>Knowledge cutoff</b></td><td>June 2026</td></tr>
|
| 94 |
+
</tbody>
|
| 95 |
+
</table>
|
| 96 |
+
|
| 97 |
+
## Safety and Privacy
|
| 98 |
+
|
| 99 |
+
Ergo is built to work as a coding agent, and an agent that can run commands can also delete files or expose credentials. We evaluated Ergo before release in three areas: harmful content, agentic behavior, and privacy. In each area we tested both sides: that Ergo declines what it should, and that it still helps with legitimate requests.
|
| 100 |
+
|
| 101 |
+
In our tests, Ergo consistently declines requests for harmful content, including requests disguised as role-play, fiction, or claimed authority, while still answering legitimate questions on sensitive topics. In sandboxed agentic scenarios, we checked that it stops and asks before a dangerous action and simply does the work when a request is safe. Ergo is trained to be resistant to malicious instructions planted in the content it reads. We also checked that it avoids outputting private information about people. These behaviors are enabled by safety-focused scaling: data curation and processing in pretraining and safety post-training. In addition, we worked with specialized firms to evaluate Ergo under Amazon's Frontier Model Safety Framework, including on Offensive Cyberoperations, Chemical, Biological, Radiological and Nuclear (CBRN) capabilities, Loss of Control, and Harmful Manipulation. You can read more about our approach to evaluations in Ergo's AI Service Card and our upcoming Frontier Model Safety Report.
|
| 102 |
+
|
| 103 |
+
**Privacy on Amazon Bedrock.** On Bedrock, Ergo runs with zero data retention: Amazon does not store your prompts or outputs, and your data is never used to train models. It runs on infrastructure built on the AWS Nitro System, with zero operator access. Amazon Bedrock Guardrails add another optional layer of protection.
|
| 104 |
+
|
| 105 |
+
**Self-hosted deployments.** Because the weights are open, customers who fine-tune or self-host Ergo are responsible for evaluating and safeguarding their own deployments, including protecting their own runtime data, and applying appropriate runtime controls.
|
| 106 |
+
|
| 107 |
+
## Bias, Risks and Limitations
|
| 108 |
+
|
| 109 |
+
- **Text only:** Amazon Ergo cannot read images, screenshots, or diagrams in this release.
|
| 110 |
+
- **Fixed reasoning effort:** Amazon Ergo always reasons, which helps on hard tasks but uses more output tokens on simple ones.
|
| 111 |
+
- **First-attempt accuracy:** Trails the strongest closed models, so for long-running agentic work we recommend letting the agent test and verify its own changes.
|
| 112 |
+
- **Narrower focus:** We focused this release on coding and agentic work, so expect lower relative scores on general knowledge and scientific reasoning benchmarks.
|
| 113 |
+
- **Incorrect output:** Like all language models, Amazon Ergo can produce confident but incorrect answers, including code that looks right and fails. Review its changes before you merge them, especially in production systems.
|
| 114 |
+
- **Bias:** Amazon Ergo may reflect demographic, cultural, or linguistic biases in its training data. It may also perform unevenly across programming languages, frameworks, and domains that were less represented in training. Test it with your own users and tasks before deployment.
|
| 115 |
+
|
| 116 |
+
## License
|
| 117 |
+
|
| 118 |
+
Ergo's weights are available under the [Amazon Ergo Open-Weights License](https://huggingface.co/Amazon-FMR/Ergo/blob/main/LICENSE.md). The license is free of charge. You can run, fine-tune, modify, and redistribute Ergo, and build it into commercial products, as long as you follow the acceptable use policy.
|
| 119 |
+
|
| 120 |
+
## Regulatory Information
|
| 121 |
+
|
| 122 |
+
- Under the EU AI Act, Amazon Media EU S.à r.l. is the provider that placed the model on the market in the EU. The public summary of training content for Amazon Ergo is available [here](https://huggingface.co/Amazon-FMR/Ergo/blob/main/Amazon_Ergo_Public_Summary_of_Training_Content.pdf). If you are a rightsholder or authorized representative and have a complaint regarding our commitments under the Copyright Chapter of the Code of Practice for General-Purpose AI Models under the EU AI Act, you may contact us at [gpai-models@amazon.com](mailto:gpai-models@amazon.com). Please be sure to include enough detail for us to investigate your complaint.
|
| 123 |
+
- This model card includes the information to be documented and made available to downstream providers as part of the Transparency Chapter of the Code of Practice.
|
| 124 |
+
- If a user is concerned that their private information has been included in an Amazon Ergo model output, the user should contact us [here](https://titan.aws.com/privacy).
|
assets/benchmarks.png
ADDED
|
Git LFS Details
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{#- Ergo chat format. Each turn is `Label<ctrl0>...<ctrl100>` and turns are joined by a newline. -#}
|
| 2 |
+
{%- set labels = {'system': 'System', 'developer': 'System', 'user': 'User', 'assistant': 'Assistant', 'tool': 'CodeExecutor', 'function': 'CodeExecutor'} -%}
|
| 3 |
+
{%- set default_system_prompt = 'You are Ergo, a model built by Amazon. You are a helpful agent that is good at everything. Do not present yourself as a real human being; act as a helpful assistant.' -%}
|
| 4 |
+
|
| 5 |
+
{#- Message content is a string or a list of text parts. -#}
|
| 6 |
+
{%- macro text_of(content) -%}
|
| 7 |
+
{%- if content is string -%}
|
| 8 |
+
{{- content -}}
|
| 9 |
+
{%- elif content is defined and content is not none -%}
|
| 10 |
+
{%- for part in content -%}
|
| 11 |
+
{%- if part is string -%}
|
| 12 |
+
{{- part -}}
|
| 13 |
+
{%- elif part.type == 'text' -%}
|
| 14 |
+
{{- part.text -}}
|
| 15 |
+
{%- else -%}
|
| 16 |
+
{{- raise_exception('Ergo supports text content only, got ' ~ part.type) -}}
|
| 17 |
+
{%- endif -%}
|
| 18 |
+
{%- endfor -%}
|
| 19 |
+
{%- endif -%}
|
| 20 |
+
{%- endmacro -%}
|
| 21 |
+
|
| 22 |
+
{#- Preserve complete tool schemas in client key order, adding missing root defaults. -#}
|
| 23 |
+
{%- macro tool_definitions(tools) -%}
|
| 24 |
+
{%- set out = namespace(definitions=[]) -%}
|
| 25 |
+
{%- for tool in tools -%}
|
| 26 |
+
{%- set function = tool.function -%}
|
| 27 |
+
{%- set parameters = function.get('parameters') -%}
|
| 28 |
+
{%- if parameters is none -%}
|
| 29 |
+
{%- set parameters = {} -%}
|
| 30 |
+
{%- endif -%}
|
| 31 |
+
{%- if parameters is not mapping -%}
|
| 32 |
+
{{- raise_exception('Tool parameters must be a JSON object') -}}
|
| 33 |
+
{%- endif -%}
|
| 34 |
+
{%- set schema = namespace(value={}) -%}
|
| 35 |
+
{%- if 'type' not in parameters -%}
|
| 36 |
+
{%- set schema.value = {'type': 'object'} -%}
|
| 37 |
+
{%- if 'properties' not in parameters -%}
|
| 38 |
+
{%- set schema.value = dict(schema.value, properties={}) -%}
|
| 39 |
+
{%- endif -%}
|
| 40 |
+
{%- endif -%}
|
| 41 |
+
{%- for key, value in parameters.items() -%}
|
| 42 |
+
{%- set schema.value = dict(schema.value, **{key: value}) -%}
|
| 43 |
+
{%- if key == 'type' and 'properties' not in parameters -%}
|
| 44 |
+
{%- set schema.value = dict(schema.value, properties={}) -%}
|
| 45 |
+
{%- endif -%}
|
| 46 |
+
{%- endfor -%}
|
| 47 |
+
{%- set definition = {'type': 'function', 'function': {'name': function.name, 'description': function.get('description') or '', 'parameters': schema.value}} -%}
|
| 48 |
+
{%- set out.definitions = out.definitions + [definition] -%}
|
| 49 |
+
{%- endfor -%}
|
| 50 |
+
{{- '\nThe tool definition is:\n\n```json\n' ~ (out.definitions | tojson(ensure_ascii=false, separators=(',', ':'), sort_keys=false)) ~ '\n```' -}}
|
| 51 |
+
{%- endmacro -%}
|
| 52 |
+
|
| 53 |
+
{%- macro turn(message, state) -%}
|
| 54 |
+
{%- if message.role not in labels -%}
|
| 55 |
+
{{- raise_exception('Unsupported Ergo chat role: ' ~ message.role) -}}
|
| 56 |
+
{%- endif -%}
|
| 57 |
+
{{- ('\n' if state.started else '') ~ labels[message.role] ~ '<ctrl0>' -}}
|
| 58 |
+
{%- set state.started = true -%}
|
| 59 |
+
{%- if message.role == 'assistant' -%}
|
| 60 |
+
{#- Every assistant turn has a reasoning block, empty when there is no reasoning. -#}
|
| 61 |
+
{{- '<ctrl1>' ~ text_of(message.reasoning_content) ~ '<ctrl2>' ~ text_of(message.content) -}}
|
| 62 |
+
{%- for call in message.tool_calls or [] -%}
|
| 63 |
+
{%- set arguments = call.function.arguments or {} -%}
|
| 64 |
+
{%- if arguments is string -%}
|
| 65 |
+
{{- '<ctrl3>{"name":' ~ (call.function.name | tojson) ~ ',"arguments":' ~ arguments ~ '}<ctrl4>' -}}
|
| 66 |
+
{%- else -%}
|
| 67 |
+
{{- '<ctrl3>' ~ ({'name': call.function.name, 'arguments': arguments} | tojson(separators=(',', ':'))) ~ '<ctrl4>' -}}
|
| 68 |
+
{%- endif -%}
|
| 69 |
+
{%- endfor -%}
|
| 70 |
+
{%- else -%}
|
| 71 |
+
{{- text_of(message.content) -}}
|
| 72 |
+
{#- The tool definitions go at the end of the first system turn. -#}
|
| 73 |
+
{%- if labels[message.role] == 'System' and state.tools -%}
|
| 74 |
+
{{- tool_definitions(state.tools) -}}
|
| 75 |
+
{%- set state.tools = none -%}
|
| 76 |
+
{%- endif -%}
|
| 77 |
+
{%- endif -%}
|
| 78 |
+
{{- '<ctrl100>' -}}
|
| 79 |
+
{%- endmacro -%}
|
| 80 |
+
|
| 81 |
+
{%- set state = namespace(started=false, tools=tools, answered=false) -%}
|
| 82 |
+
{%- if messages | selectattr('role', 'in', ['system', 'developer']) | list | length == 0 -%}
|
| 83 |
+
{{- turn({'role': 'system', 'content': default_system_prompt}, state) -}}
|
| 84 |
+
{%- endif -%}
|
| 85 |
+
{%- for message in messages -%}
|
| 86 |
+
{%- if message.role in ['tool', 'function'] and state.answered -%}
|
| 87 |
+
{#- Already written right after the assistant turn it answers. -#}
|
| 88 |
+
{%- continue -%}
|
| 89 |
+
{%- endif -%}
|
| 90 |
+
{%- set state.answered = false -%}
|
| 91 |
+
{{- turn(message, state) -}}
|
| 92 |
+
{%- if message.role == 'assistant' and message.tool_calls -%}
|
| 93 |
+
{#- The format has no call id: the n-th tool result answers the n-th call. Write the results that follow
|
| 94 |
+
in the order of the calls, then the results that match no call. -#}
|
| 95 |
+
{%- set state.answered = true -%}
|
| 96 |
+
{%- set results = namespace(messages=[]) -%}
|
| 97 |
+
{%- for result in messages[loop.index:] -%}
|
| 98 |
+
{%- if result.role not in ['tool', 'function'] -%}
|
| 99 |
+
{%- break -%}
|
| 100 |
+
{%- endif -%}
|
| 101 |
+
{%- set results.messages = results.messages + [result] -%}
|
| 102 |
+
{%- endfor -%}
|
| 103 |
+
{%- set call_ids = message.tool_calls | selectattr('id', 'defined') | map(attribute='id') | unique | list -%}
|
| 104 |
+
{%- for call_id in call_ids -%}
|
| 105 |
+
{%- for result in results.messages if result.tool_call_id == call_id -%}
|
| 106 |
+
{{- turn(result, state) -}}
|
| 107 |
+
{%- endfor -%}
|
| 108 |
+
{%- endfor -%}
|
| 109 |
+
{%- for result in results.messages if result.tool_call_id not in call_ids -%}
|
| 110 |
+
{{- turn(result, state) -}}
|
| 111 |
+
{%- endfor -%}
|
| 112 |
+
{%- endif -%}
|
| 113 |
+
{%- endfor -%}
|
| 114 |
+
{%- if add_generation_prompt -%}
|
| 115 |
+
{{- '\nAssistant<ctrl0><ctrl1>' -}}
|
| 116 |
+
{%- if enable_thinking is defined and not enable_thinking -%}
|
| 117 |
+
{{- '<ctrl2>' -}}
|
| 118 |
+
{%- endif -%}
|
| 119 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ErgoForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"bos_token_id": 2,
|
| 6 |
+
"eos_token_id": 1,
|
| 7 |
+
"first_dense_intermediate_size": 32768,
|
| 8 |
+
"global_attention_every_n_layers": 4,
|
| 9 |
+
"global_attention_scale": null,
|
| 10 |
+
"head_dim": 128,
|
| 11 |
+
"hidden_size": 8192,
|
| 12 |
+
"intermediate_size": 4096,
|
| 13 |
+
"local_attention_window": 512,
|
| 14 |
+
"max_position_embeddings": 1048576,
|
| 15 |
+
"model_flavor": "55b",
|
| 16 |
+
"model_type": "ergo",
|
| 17 |
+
"moe_expert_output_rms_norm": true,
|
| 18 |
+
"moe_intermediate_size": 4096,
|
| 19 |
+
"moe_latent_size": 0,
|
| 20 |
+
"moe_load_balance_strategy": "deepseek",
|
| 21 |
+
"moe_routed_scaling_factor": 2.8284271247461903,
|
| 22 |
+
"moe_routing_method": "sigmoid_topk",
|
| 23 |
+
"num_attention_heads": 64,
|
| 24 |
+
"num_dense_blocks": 1,
|
| 25 |
+
"num_experts": 256,
|
| 26 |
+
"num_experts_per_tok": 8,
|
| 27 |
+
"num_hidden_layers": 64,
|
| 28 |
+
"num_key_value_heads": 8,
|
| 29 |
+
"pad_token_id": 0,
|
| 30 |
+
"quantization_config": {
|
| 31 |
+
"quant_method": "mxfp4"
|
| 32 |
+
},
|
| 33 |
+
"rms_norm_eps": 1e-12,
|
| 34 |
+
"rope_theta": 1000000.0,
|
| 35 |
+
"shared_intermediate_size": 8192,
|
| 36 |
+
"source_tp_size": 1,
|
| 37 |
+
"tie_word_embeddings": false,
|
| 38 |
+
"torch_dtype": "bfloat16",
|
| 39 |
+
"vocab_size": 262144
|
| 40 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
1,
|
| 5 |
+
248
|
| 6 |
+
],
|
| 7 |
+
"max_new_tokens": 131072,
|
| 8 |
+
"pad_token_id": 0,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"top_p": 0.99
|
| 11 |
+
}
|
model-00001-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26ba9f876dca26f015a5899f0cc4ae6e56bcda80379d4b715f6176dcaf130711
|
| 3 |
+
size 12885983240
|
model-00002-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5570345637384892ff08be15b0fb5cc9a15acccb4846a54f844bc09edc58719
|
| 3 |
+
size 1376977928
|
model-00003-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9420f98fc352b18fba6f41684ad1286e483f291dc83058353be47cc76ce11f2b
|
| 3 |
+
size 9711093768
|
model-00004-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4dae5f90a6879f85589ff1c1405d427f2083dec22fac0c7436fce7663f224cc8
|
| 3 |
+
size 9711093768
|
model-00005-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:530ca20b1099d4cf86ddd41cf80827db69fd0159f9d648e7d0c707a0c6766520
|
| 3 |
+
size 9711093768
|
model-00006-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:884009679f35c6e32bd9a270ca1309cfdb77c2154e0ed5ee69d64b768dd2aab2
|
| 3 |
+
size 9711093768
|
model-00007-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f28c4c1b8cd4e6cc557041912e611a67f3221bd6846681bc6c8fd4050c5a550
|
| 3 |
+
size 9711093768
|
model-00008-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34a877b8732fb40c387c85281f9124b3accfefcc6c5dfc06236cb76748f9da64
|
| 3 |
+
size 9711093768
|
model-00009-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:530fe45931c1ea5ea3e92bac897cb1a68ec4542257832da4caf96e815aa653d1
|
| 3 |
+
size 9711093768
|
model-00010-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebc1f040319ccbc09c80da8c616f31457338eeb9b01ad668aeb6ce573eb55619
|
| 3 |
+
size 9711093768
|
model-00011-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b453c1c891bc317db4754d0dc854ead5d6b7cc7592fdcf28a701ff1c456905a
|
| 3 |
+
size 9711093768
|
model-00012-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bca39fdae5e631d66727ce165149117436844c145518f8a649ab144d8b9f7cb6
|
| 3 |
+
size 9711093768
|
model-00013-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9bfaa7616b42801e1292c4e23a39ab6e57a2c81486e084bdf8c414ec4e7af8d
|
| 3 |
+
size 9711093768
|
model-00014-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24d5f3c4f3d7baa1ef45384602aebb733596faa382fb228a6d52a9b88a4634b1
|
| 3 |
+
size 9711093768
|
model-00015-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66963a310cce4e35f603ca9714c5491d86f85ae02a09f56668c536cf2a244fd6
|
| 3 |
+
size 9711093768
|
model-00016-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52da5170ac0a65525af70f34467cc8beada9d453c95bb243e19f80b5ee97e516
|
| 3 |
+
size 9711093768
|
model-00017-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f32c65f53e64caf0ca59c09ed8234f8f41636c2f5485b746d3b34dcd9c67503
|
| 3 |
+
size 9711093768
|
model-00018-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb04394a8832b5f2a709de033a5806bc67e102a2f268e561a4ababf8e8377ab5
|
| 3 |
+
size 9711093768
|
model-00019-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe5a5578ffce9a7e6cb7731f5265b06f9c8e7b02ee56c4e57fdf3252b291f863
|
| 3 |
+
size 9711093768
|
model-00020-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:408f302d47a111bb030e3fb5e1a96f8924934022e7fd1e329733573eacd80be9
|
| 3 |
+
size 9711093768
|
model-00021-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e284e8fe96313fb5331e18143ff94c4f87b2fbcdd81deda82fe67bd52b8b709c
|
| 3 |
+
size 9711093768
|
model-00022-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61af8691291bf433212772d87b832ed9c3fea2010d069d90490d2c3f1fc22ce4
|
| 3 |
+
size 9711093768
|
model-00023-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:809539e8af99974e65245b94932d353bd81d096776bda380e3d0a7cec64a9c47
|
| 3 |
+
size 9711093768
|
model-00024-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37c0649323b65e0b8b64aa730033b6f98d287e88bfefb6cbb0028a07d9a566b4
|
| 3 |
+
size 9711093768
|
model-00025-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b5199d9970783c36ced4161f57a30b1421b40ad743e80accf15538b293fc3c6
|
| 3 |
+
size 9711093768
|
model-00026-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efcf25245a7219b2127afd9aa87b67a58b2029bad556a13c49780916e5e82f3a
|
| 3 |
+
size 9711093768
|
model-00027-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5abe5dacb780c907a23bcb8f6fbd1ede53c24541e2a0992e6b7b19713da921ff
|
| 3 |
+
size 9711093768
|
model-00028-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:873eb51770212e1762324100c520af241c5aefdb89f9bd6f4000d452f0295f3f
|
| 3 |
+
size 9711093768
|
model-00029-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4c492e1bc6d728b76ed33061b869b7814a05ae046c45bdc7ce53971d0f4f445
|
| 3 |
+
size 9711093768
|
model-00030-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a236ac9aea636f89900c8e607a29d69e48bb564ccde77d9ad20beea1c357f28
|
| 3 |
+
size 9711093768
|
model-00031-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aeb9dd24bf94aa67cc4e2492b219cffbdc0e7031f3caada5afae6b6e833b1931
|
| 3 |
+
size 9711093768
|
model-00032-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c096494190bc5d1a6a7bffff4e451ff3b84b104976ba78957cc27ac72f99face
|
| 3 |
+
size 9711093768
|
model-00033-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cea858f7d420d1d929060c774a3f98e542c62ad9228ff5fce43e121693641a4
|
| 3 |
+
size 9711093768
|
model-00034-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fe5396b018e21f4f4432a95ed4da1268ae6f3a1a34751d9fa97afafe10773da
|
| 3 |
+
size 9711093768
|
model-00035-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03c4ee5dcf4cc9f7367ef75b4036fa06c2f22db929e6f8758847d0e9442a49f5
|
| 3 |
+
size 9711093768
|
model-00036-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:566340dcd83bb3f4df7442cd44652f4933aaa93b20b6b101b990ee14fe715a54
|
| 3 |
+
size 9711093768
|
model-00037-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90d570c8f48ad3c1bd1de8d3a9a8586008ee091749dd02424a8ba09166e4719d
|
| 3 |
+
size 9711093768
|
model-00038-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:742767a13d4571d9b91c477c91f5ca7dcdc156ab134e7ee4c26bfa512fa4802f
|
| 3 |
+
size 9711093768
|
model-00039-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1791fd0124f00b946c12cd95bb870a8c8802394dcbfaab94ca532eeb38cc26e
|
| 3 |
+
size 9711093768
|
model-00040-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7b9983b56fdc96e87c33a5f94d9271be77a597ef2791cb7449a064ff51ff2dc
|
| 3 |
+
size 9711093768
|
model-00041-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67f3cf91b1e5bfb7ff98b342dd6d1c228ed14083551c3cbda64950e1c873aeee
|
| 3 |
+
size 9711093768
|
model-00042-of-00065.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe77807a3fc0f14551d7ed61def1c8f82ffe6ae5695601ef78965052b63f885e
|
| 3 |
+
size 9711093768
|