(self,
input_ids: Sequence[torch.Tensor],
sampling_config: SamplingConfig,
streaming: bool = False,
**kwargs)
| 4275 | yield None |
| 4276 | |
| 4277 | def decode_batch(self, |
| 4278 | input_ids: Sequence[torch.Tensor], |
| 4279 | sampling_config: SamplingConfig, |
| 4280 | streaming: bool = False, |
| 4281 | **kwargs): |
| 4282 | input_ids, context_lengths = _prepare_input_ids(input_ids) |
| 4283 | return self.decode(input_ids, |
| 4284 | context_lengths, |
| 4285 | sampling_config, |
| 4286 | streaming=streaming, |
| 4287 | **kwargs) |
| 4288 | |
| 4289 | # As dynamic_decoder uses torch's current stream, we must ensure it runs on the same stream that |
| 4290 | # dynamic_decoder was set up with |
no test coverage detected