Instructions to use Amazon-FMR/Ergo-dspark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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") - Notebooks
- Google Colab
- Kaggle
Download config.json from Amazon-FMR/Ergo-dspark: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/Amazon-FMR/Ergo-dspark/resolve/main/config.json
- Command line
-
hf download hf://Amazon-FMR/Ergo-dspark/config.json
-
curl -L -o config.json https://huggingface.co/Amazon-FMR/Ergo-dspark/resolve/main/config.json
1.57 kB
| { | |
| "architectures": [ | |
| "DSparkDraftModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoModel": "dspark.DSparkDraftModel" | |
| }, | |
| "block_size": 8, | |
| "bos_token_id": 2, | |
| "confidence_head_with_markov": true, | |
| "dflash_config": { | |
| "attention_mode": "gqa", | |
| "confidence_head_alpha": 1.0, | |
| "confidence_head_with_markov": true, | |
| "enable_confidence_head": true, | |
| "markov_head_type": "vanilla", | |
| "markov_rank": 256, | |
| "mask_token_id": 4, | |
| "projector_type": "dspark", | |
| "target_layer_ids": [ | |
| 1, | |
| 16, | |
| 31, | |
| 46, | |
| 61 | |
| ] | |
| }, | |
| "draft_vocab_size": 262144, | |
| "dtype": "bfloat16", | |
| "enable_confidence_head": true, | |
| "eos_token_id": 1, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 8192, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 16384, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention" | |
| ], | |
| "markov_head_type": "vanilla", | |
| "markov_rank": 256, | |
| "max_position_embeddings": 1048576, | |
| "max_window_layers": 5, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 64, | |
| "num_hidden_layers": 5, | |
| "num_key_value_heads": 8, | |
| "num_target_layers": 64, | |
| "pad_token_id": 0, | |
| "rms_norm_eps": 1e-12, | |
| "rope_parameters": { | |
| "rope_theta": 1000000, | |
| "rope_type": "default" | |
| }, | |
| "rope_theta": 1000000, | |
| "sliding_window": 32768, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.12.1", | |
| "use_cache": true, | |
| "use_sliding_window": true, | |
| "vocab_size": 262144 | |
| } | |