MCPcopy
hub / github.com/OpenBMB/VoxCPM / generate_with_prompt_cache

Method generate_with_prompt_cache

src/voxcpm/model/voxcpm.py:584–585  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

582 return merged_cache
583
584 def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
585 return next_and_close(self._generate_with_prompt_cache(*args, streaming=False, **kwargs))
586
587 def generate_with_prompt_cache_streaming(
588 self, *args, **kwargs

Callers

nothing calls this directly

Calls 2

next_and_closeFunction · 0.85

Tested by

no test coverage detected