MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / update

Method update

tensorrt_llm/runtime/generation.py:738–745  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

736 min_p: Union[float, torch.Tensor] = field(default=0.0)
737
738 def update(self, **kwargs):
739 unused_kwargs = dict()
740 for key, value in kwargs.items():
741 if hasattr(self, key):
742 setattr(self, key, value)
743 else:
744 unused_kwargs[key] = value
745 return unused_kwargs
746
747
748class LogitsProcessor:

Callers 10

generateMethod · 0.95
generateMethod · 0.95
encoder_runMethod · 0.45
setupMethod · 0.45
add_tensorMethod · 0.45
add_tensor_with_shapeMethod · 0.45
add_tensor_with_bsMethod · 0.45
get_visual_featuresMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected