hxgy610 commited on
Commit
5b72cf2
·
verified ·
1 Parent(s): 60e40a3

Add benchmarking command.

Browse files
Files changed (1) hide show
  1. README.md +23 -2
README.md CHANGED
@@ -6,7 +6,7 @@ license: apache-2.0
6
  P-EAGLE is a parallel-drafting speculative decoding model that generates K draft tokens in a single forward pass. It transforms EAGLE—the state-of-the-art speculative decoding method—from autoregressive to parallel draft generation.
7
 
8
  ### Model Details
9
- The model architecture is illustrated in the following figure. Specifically, we trained a 4-layer P-EAGLE for GPT-OSS 120B as the target model.
10
 
11
  <img src="https://cdn-uploads.huggingface.co/production/uploads/64ab5fe189aa67e4a251b6b4/UBBMgZvXkOduu_LpUunQy.png" width="50%">
12
 
@@ -48,8 +48,29 @@ CUDA_VISIBLE_DEVICES=0 VLLM_USE_FLASHINFER_MOE_MXFP4_MXFP8=1 \
48
  ```
49
 
50
  ### Evaluation
51
- From vllm-bench, with speculation length of 5, we see the following acceptance length.
52
  - **MT-Bench**: 2.68.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  ### Ciatation
55
  ```
 
6
  P-EAGLE is a parallel-drafting speculative decoding model that generates K draft tokens in a single forward pass. It transforms EAGLE—the state-of-the-art speculative decoding method—from autoregressive to parallel draft generation.
7
 
8
  ### Model Details
9
+ The model architecture is illustrated in the following figure. Specifically, we trained a 4-layer P-EAGLE for GPT-OSS 120B as the target model, with number of parallel-token prediction as 8.
10
 
11
  <img src="https://cdn-uploads.huggingface.co/production/uploads/64ab5fe189aa67e4a251b6b4/UBBMgZvXkOduu_LpUunQy.png" width="50%">
12
 
 
48
  ```
49
 
50
  ### Evaluation
51
+ From vllm-bench, with speculation length of 5 and max-new-token of 2048, we see the following acceptance length.
52
  - **MT-Bench**: 2.68.
53
+ - **HumanEval**: 3.15.
54
+ - **GSM-8K**: 3.55.
55
+
56
+ The command to run benchmarking is shown as below.
57
+
58
+ ```
59
+ vllm bench serve \
60
+ --backend openai-chat \
61
+ --base-url http://localhost:8040 \
62
+ --endpoint /v1/chat/completions \
63
+ --model openai/gpt-oss-120b \
64
+ --dataset-name custom \
65
+ --dataset-path /home/ubuntu/eval_datasets/humaneval_custom.jsonl \
66
+ --custom-output-len 2048 \
67
+ --num-prompts 164 \
68
+ --max-concurrency 1 \
69
+ --request-rate inf \
70
+ --temperature 0 \
71
+ --save-result \
72
+ --save-detailed \
73
+ ```
74
 
75
  ### Ciatation
76
  ```