[Refactor][EAGLE] 2/N: load model and generate token (#5437)

### What this PR does / why we need it?
1. Refactor eagle and mtp function: load_model and generate_token_ids
2. Remove redundant code in mtp and eagle file
3. Refactor the UT of file

2/N of Refactor and merge mtp and eagle
Relational RFC: https://github.com/vllm-project/vllm-ascend/issues/5467

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
ut and tests

- vLLM version: release/v0.13.0
- vLLM main:
https://github.com/vllm-project/vllm/commit/81786c87748b0177111dfdc07af5351d8389baa1

---------

Signed-off-by: lilinsiman <lilinsiman@gmail.com>
This commit is contained in:
lilinsiman authored and GitHub committed 2026-01-05 14:07:54 +08:00
1 parent 50e7934415
commit 52863c4165
8 files changed
+229 -609

No files matched your search

@@ -9,7 +9,6 @@ patch
ModelRunner_prepare_inputs
disaggregated_prefill
eplb_swift_balancer.md
Multi_Token_Prediction
ACL_Graph
KV_Cache_Pool_Guide
add_custom_aclnn_op
@@ -12,6 +12,7 @@ structured_output
lora
eplb_swift_balancer
netloader
Multi_Token_Prediction
dynamic_batch
kv_pool
external_dp