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

Function get_hf_target_modules

tensorrt_llm/lora_manager.py:202–208  ·  view source on GitHub ↗
(lora_weights, hf_modules)

Source from the content-addressed store, hash-verified

200
201
202def get_hf_target_modules(lora_weights, hf_modules):
203 def iter_fn(layer_idx, hf_module, expert_idx, inout, weights):
204 hf_target_modules.add(hf_module)
205
206 hf_target_modules = set()
207 iterate_hf_lora(iter_fn, lora_weights, hf_modules)
208 return hf_target_modules
209
210
211def invert_module_mapping(

Callers 1

get_target_modulesMethod · 0.85

Calls 1

iterate_hf_loraFunction · 0.85

Tested by

no test coverage detected