mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
[https://nvbugs/5519544][fix] fix invalid expression for disabling pa… (#7806)
Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com>
This commit is contained in:
parent
f8e811d134
commit
e0423bfaab
@ -895,7 +895,7 @@ def _load_weights_impl(model: Union[nn.Module, DecoderModelForCausalLM],
|
||||
p.data.copy_(module_weights[n][:])
|
||||
|
||||
if os.environ.get("TRT_LLM_DISABLE_LOAD_WEIGHTS_IN_PARALLEL",
|
||||
False) in ["True", "true", "1", "yes", "y"]:
|
||||
"True") in ["True", "true", "1", "yes", "y"]:
|
||||
for name, module in tqdm(list(model.named_modules()),
|
||||
desc="Loading weights"):
|
||||
load_single_module(name, module)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user