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

Method set_rank

tensorrt_llm/models/modeling_utils.py:556–557  ·  view source on GitHub ↗
(self, rank: int)

Source from the content-addressed store, hash-verified

554 return self.quantization._get_quant_cfg(module_name)
555
556 def set_rank(self, rank: int):
557 self.mapping.rank = rank
558
559 def get_config_group(self, group_cls: "Type[CG]") -> "CG":
560 cfg = {k: v for k, v in self.to_dict().items() if k in group_cls.keys()}

Callers 14

initializeFunction · 0.45
build_modelFunction · 0.45
refit_engineFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
for_each_rankMethod · 0.45
from_checkpointMethod · 0.45
quantizeFunction · 0.45
quantizeFunction · 0.45
from_hugging_faceFunction · 0.45
quantizeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected