mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Speculative Decoding][MTP]Support mtp in epdptp mode (#4614)
* support mtp many features * support mtp reshard in rl mode * fix function * support mtp ep * support mtp in hybird-dp-tp mode * default open scheduler_v1 in mtp
This commit is contained in:
@@ -65,6 +65,11 @@ class DefaultModelLoaderV1(BaseModelLoader):
|
||||
# register rl model
|
||||
import fastdeploy.rl # noqa
|
||||
|
||||
if fd_config.speculative_config.model_type != "mtp":
|
||||
architectures = architectures.replace("Ernie5ForCausalLM", "Ernie5MoeForCausalLM")
|
||||
else:
|
||||
architectures = architectures.replace("Ernie5ForCausalLM", "Ernie5MTPForCausalLM")
|
||||
|
||||
architectures = architectures + "RL"
|
||||
|
||||
enable_cache, _, weight_cache_context = is_weight_cache_enabled(fd_config)
|
||||
|
||||
Reference in New Issue
Block a user