#4895·MNN

[Bug] Eagle 参数导出使用硬编码

Author: huluhuluuCreated Sep 20, 2026Updated Sep 29, 2026
Labelstype:bugmodule:llm

1. 问题描述

Eagle草稿模型导出时,'rope_theta'参数使用硬编码,带来不一致问题:

python
# transformers/llm/export/utils/eagle.py: 32
self.rope_theta = 10000

这里使用固定硬编码后,导出逻辑内没有使用任何config配置的对应参数覆盖,应该修改成:

python
self.rope_theta = getattr(self.eagle_config, 'rope_theta', 10000)

类似的参数还包括rope_ratio