MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / _load_model

Method _load_model

fastdeploy/spec_decode/mtp.py:155–160  ·  view source on GitHub ↗

Load MTP Layer

(self)

Source from the content-addressed store, hash-verified

153 self.speculative_config.model_type = "mtp"
154
155 def _load_model(self):
156 """
157 Load MTP Layer
158 """
159 model_loader = get_model_loader(load_config=self.fd_config.load_config)
160 self.model = model_loader.load_model(fd_config=self.fd_config)
161
162 def dummy_prefill_inputs(self, num_tokens: int, batch_size: int, expected_decode_len: int):
163 """Set dummy prefill inputs to model_inputs"""

Callers 1

__init__Method · 0.95

Calls 2

get_model_loaderFunction · 0.90
load_modelMethod · 0.45

Tested by

no test coverage detected