Unverified Commit b9438904 authored by Woosuk Kwon's avatar Woosuk Kwon Committed by GitHub
Browse files

Fix OPT param names (#1819)

parent a1125ad4
......@@ -331,6 +331,9 @@ class OPTForCausalLM(nn.Module):
model_name_or_path, cache_dir, load_format, revision):
if "lm_head.weight" in name:
continue
if name.startswith("decoder."):
name = "model." + name
for (param_name, weight_name, shard_id) in stacked_params_mapping:
if weight_name not in name:
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment