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

Method _verify_args

fastdeploy/config.py:1498–1502  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1496 return {key: str(value) for key, value in self.__dict__.items()}
1497
1498 def _verify_args(self):
1499 if self.gpu_memory_utilization > 1.0:
1500 raise ValueError("GPU memory utilization must be less than 1.0. Got " f"{self.gpu_memory_utilization}.")
1501 if self.kv_cache_ratio > 1.0:
1502 raise ValueError("KV cache ratio must be less than 1.0. Got " f"{self.kv_cache_ratio}.")
1503
1504 def postprocess(self, num_total_tokens, number_of_tasks):
1505 """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected