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

Method _share_external_data

fastdeploy/spec_decode/mtp.py:1220–1224  ·  view source on GitHub ↗
(self, cache, cache_name, cache_shape)

Source from the content-addressed store, hash-verified

1218 reorder_split_prefill_and_decode_form_index_to_batch_id(self.model_inputs, target_model_input_batch)
1219
1220 def _share_external_data(self, cache, cache_name, cache_shape):
1221 if current_platform.is_xpu():
1222 return share_external_data(cache, cache_name, cache_shape, False)
1223 else:
1224 return share_external_data(cache, cache_name, cache_shape)

Callers 1

initialize_kv_cacheMethod · 0.95

Calls 1

is_xpuMethod · 0.45

Tested by

no test coverage detected