mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[Metax] adapt prefix caching & cpu swap (#5844)
Co-authored-by: root <root@lt-wks-10-0-180-15.pub.metax-tech.com>
This commit is contained in:
@@ -531,7 +531,12 @@ class EngineArgs:
|
||||
self.tokenizer = self.model
|
||||
if self.splitwise_role == "decode":
|
||||
self.enable_prefix_caching = False
|
||||
if not current_platform.is_cuda() and not current_platform.is_xpu() and not current_platform.is_intel_hpu():
|
||||
if (
|
||||
not current_platform.is_cuda()
|
||||
and not current_platform.is_xpu()
|
||||
and not current_platform.is_intel_hpu()
|
||||
and not current_platform.is_maca()
|
||||
):
|
||||
self.enable_prefix_caching = False
|
||||
if self.enable_logprob:
|
||||
if not current_platform.is_cuda() and not current_platform.is_xpu():
|
||||
|
||||
Reference in New Issue
Block a user