Amazon-Ergo
Collection
4 items โข Updated โข 61
How to use Amazon-FMR/Ergo-dspark with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="Amazon-FMR/Ergo-dspark", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("Amazon-FMR/Ergo-dspark", trust_remote_code=True)
model = AutoModel.from_pretrained("Amazon-FMR/Ergo-dspark", trust_remote_code=True, device_map="auto")Amazon Ergo DSpark is a 3.24B-parameter speculative decoding draft model for Amazon Ergo.
Ergo is available on Amazon Bedrock at $1 per million input tokens, $0.03 per million cached input tokens, and $3 per million output tokens.
| Component | Specification |
|---|---|
| Draft network | 5 decoder layers, hidden size 8,192, feed-forward size 16,384 |
| Attention | Grouped-query attention, 64 query heads, 8 key/value heads, 32,768-token sliding window |
| Target layer IDs | 1, 16, 31, 46, 61 |
| Draft block | 8 draft tokens (block_size: 8) |
| Confidence head | Rank-256 Markov head |
| Vocabulary | 262,144 tokens |
| Weights | BF16, 6.48 GB in a single safetensors file |
Use the model and tokenizer from Amazon-FMR/Ergo with Amazon-FMR/Ergo-dspark as the draft checkpoint. The serving runtime must provide the DSparkDraftModel implementation.
See the SGLang Ergo cookbook and vLLM Ergo recipe for serving instructions.
To verify the weights and configuration, run sha256sum -c SHA256SUMS from the checkpoint directory.