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

Method generate_with_prompt_cache

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

Source from the content-addressed store, hash-verified

772 return merged
773
774 def generate_with_prompt_cache(self, *args, **kwargs) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
775 return next_and_close(self._generate_with_prompt_cache(*args, streaming=False, **kwargs))
776
777 def generate_with_prompt_cache_streaming(
778 self, *args, **kwargs

Callers

nothing calls this directly

Calls 2

next_and_closeFunction · 0.85

Tested by

no test coverage detected