Text Generation
Transformers
Safetensors
llama
speculative-decoding
draft-model
eagle3
inference-acceleration
Eval Results (legacy)
text-generation-inference
Instructions to use nebius/EAGLE3-Llama-3.3-70B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nebius/EAGLE3-Llama-3.3-70B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nebius/EAGLE3-Llama-3.3-70B-Instruct")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nebius/EAGLE3-Llama-3.3-70B-Instruct") model = AutoModelForCausalLM.from_pretrained("nebius/EAGLE3-Llama-3.3-70B-Instruct") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nebius/EAGLE3-Llama-3.3-70B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nebius/EAGLE3-Llama-3.3-70B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nebius/EAGLE3-Llama-3.3-70B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nebius/EAGLE3-Llama-3.3-70B-Instruct
- SGLang
How to use nebius/EAGLE3-Llama-3.3-70B-Instruct 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 "nebius/EAGLE3-Llama-3.3-70B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nebius/EAGLE3-Llama-3.3-70B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "nebius/EAGLE3-Llama-3.3-70B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nebius/EAGLE3-Llama-3.3-70B-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nebius/EAGLE3-Llama-3.3-70B-Instruct with Docker Model Runner:
docker model run hf.co/nebius/EAGLE3-Llama-3.3-70B-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -76,6 +76,8 @@ Average acceptance length (τ) measured across MT-bench, HumanEval, and GSM8K wi
|
|
| 76 |
|
| 77 |
*Measured at temperature = 1 with K = 7*
|
| 78 |
|
|
|
|
|
|
|
| 79 |
## Usage with vLLM
|
| 80 |
```python
|
| 81 |
from vllm import LLM, SamplingParams
|
|
@@ -86,6 +88,8 @@ llm = LLM(
|
|
| 86 |
"method": "eagle3",
|
| 87 |
"model": "nebius/EAGLE3-Llama-3.3-70B-Instruct",
|
| 88 |
"num_speculative_tokens": 6,
|
|
|
|
|
|
|
| 89 |
},
|
| 90 |
)
|
| 91 |
|
|
@@ -93,8 +97,6 @@ sampling_params = SamplingParams(temperature=0.7)
|
|
| 93 |
outputs = llm.generate(["Explain speculative decoding in simple terms."], sampling_params)
|
| 94 |
```
|
| 95 |
|
| 96 |
-
> **Note**: The current vLLM implementation samples draft tokens greedily regardless of temperature settings, which can underestimate acceptance rates at temperature > 0. A community fix is under development (see [vllm-project/vllm#20459](https://github.com/vllm-project/vllm/pull/20459)). The acceptance metrics reported above were measured with proper rejection sampling.
|
| 97 |
-
|
| 98 |
## License
|
| 99 |
|
| 100 |
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
|
|
|
| 76 |
|
| 77 |
*Measured at temperature = 1 with K = 7*
|
| 78 |
|
| 79 |
+
> **Note:** Earlier vLLM versions sampled draft tokens greedily regardless of temperature, which underestimated acceptance rates at temperature > 0. Stochastic draft sampling was introduced in **v0.18.0**, and from **v0.21.0** it can be enabled via `speculative_config` using `rejection_sample_method` and `draft_sample_method`. The acceptance metrics reported above were measured under standard rejection sampling and are reproducible with the configuration below.
|
| 80 |
+
|
| 81 |
## Usage with vLLM
|
| 82 |
```python
|
| 83 |
from vllm import LLM, SamplingParams
|
|
|
|
| 88 |
"method": "eagle3",
|
| 89 |
"model": "nebius/EAGLE3-Llama-3.3-70B-Instruct",
|
| 90 |
"num_speculative_tokens": 6,
|
| 91 |
+
"rejection_sample_method": "standard",
|
| 92 |
+
"draft_sample_method": "gumbel",
|
| 93 |
},
|
| 94 |
)
|
| 95 |
|
|
|
|
| 97 |
outputs = llm.generate(["Explain speculative decoding in simple terms."], sampling_params)
|
| 98 |
```
|
| 99 |
|
|
|
|
|
|
|
| 100 |
## License
|
| 101 |
|
| 102 |
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|