(self)
| 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 | """ |