Amazon Ergo
Guida Rapida

Deployment e Self-Hosting

Come eseguire Amazon Ergo

Avvia Amazon Ergo in serverless su Amazon Bedrock, esegui fine-tuning privato su SageMaker AI oppure ospita i 626 GB di pesi MXFP4 con vLLM + DSpark o SGLang.

Profilo Bedrock Richiesto

Usa un Cross-Region Inference Profile

Bedrock instrada Amazon Ergo tramite profili di inferenza cross-region (regionali o globali), non tramite un semplice ID modello di singola regione.

Budget di Ragionamento

Imposta maxTokens >= 8.192

Ergo consuma token di output per la catena di ragionamento interna prima di stampare la risposta finale. Limiti bassi rischiano di troncare l'output prima del codice.

Opzione 01 · Serverless Gestito

Amazon Bedrock Converse API (Python boto3)

import boto3
from botocore.exceptions import ClientError

# Use a region supporting Ergo cross-region inference profiles (e.g., us-west-2, us-east-1)
client = boto3.client("bedrock-runtime", region_name="us-west-2")

# IMPORTANT: Use a Bedrock cross-region inference profile ID for Amazon Ergo
model_id = "us.amazon.ergo"  # or "global.amazon.ergo"

messages = [{
    "role": "user",
    "content": [{"text": "Refactor this Python pipeline to remove the O(n^2) bottleneck and add unit tests."}]
}]

# IMPORTANT: Ergo is a reasoning model — set maxTokens >= 8192 for thinking headroom
inference_config = {"maxTokens": 8192, "temperature": 0.2}

try:
    response = client.converse(
        modelId=model_id,
        messages=messages,
        inferenceConfig=inference_config,
    )
    print(response["output"]["message"]["content"][0]["text"])
    print("Usage:", response.get("usage", {}))
except ClientError as err:
    print(f"Bedrock error: {err.response['Error']['Message']}")

Opzione 02 · Self-Host Consigliato

vLLM con Parser Ergo e Speculazione DSpark

# Dedicated Ergo image: vllm/vllm-openai:amazon-fmr-ergo
export VLLM_USE_RUST_FRONTEND=1

vllm serve Amazon-FMR/Ergo \
  --max-model-len 1048576 \
  --override-generation-config '{"max_new_tokens": 131072}' \
  --enable-prefix-caching \
  --async-scheduling \
  --enable-expert-parallel \
  --tensor-parallel-size 4 \
  --enable-auto-tool-choice \
  --tool-call-parser ergo \
  --tool-strict-level function \
  --reasoning-parser ergo \
  --speculative-config '{"method":"dspark","model":"Amazon-FMR/Ergo-dspark","num_speculative_tokens":8,"attention_backend":"FLASH_ATTN","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'

Opzione 03 · Self-Host in Container

Server SGLang tramite Docker

docker run --gpus all \
  --shm-size 32g \
  -p 30000:30000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  --env "HF_TOKEN=<your_huggingface_token>" \
  --ipc=host \
  lmsysorg/sglang:latest \
  python3 -m sglang.launch_server \
  --model-path "Amazon-FMR/Ergo" \
  --host 0.0.0.0 \
  --port 30000

Opzione 04 · Personalizzazione Enterprise

Fine-Tuning e Hosting su Amazon SageMaker AI

Specializza Ergo su SDK interni e repository privati con ricette gestite SageMaker AI ed endpoint isolati in VPC.

Apri SageMaker AI

Infrastruttura

Matrice di dimensionamento GPU e VRAM

Anche il checkpoint MXFP4 richiede circa 626 GB prima della KV-cache: il self-hosting richiede quindi nodi GPU da data center, non schede consumer.

Hardware / PiattaformaCheckpointParallelismoThroughputNote
4× NVIDIA B200 / GB200 / GB300 Amazon-FMR/Ergo (MXFP4 · ~626 GB) TP=4 + EP + DSpark I tensor core nativi FP4/MXFP4 offrono il massimo throughput in self-hosting con ampia HBM per la KV-cache.
8× NVIDIA H200 (141 GB HBM3e) Amazon-FMR/Ergo (MXFP4 · ~626 GB) TP=8 / EP=8 1.128 GB totali di HBM3e ospitano comodamente i pesi MXFP4 e sessioni concorrenti da 1M token.
Multi-Node H200 / B200 Cluster MXFP8 (1.17 TB) or BF16 (2.22 TB) PP + TP + EP Necessario per fine-tuning BF16 non quantizzato, distillazione o benchmark ad alta precisione.
Amazon Bedrock (Trainium3) Managed Amazon Ergo Serverless AWS 400+ OTPS pronti all'uso (2.200 OTPS Turbo preview), $1/$3 per 1M token e zero data retention.

Distribuisci Ergo

Scarica i pesi MXFP4 da 626 GB da Hugging Face oppure esegui Amazon Ergo su Amazon Bedrock a oltre 400 token al secondo.