mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
Complete OPT load parameters
This commit is contained in:
parent
c5de7cd886
commit
99da7ce121
@ -444,14 +444,14 @@ class OPTDecoder(OPTPreTrainedModel):
|
||||
|
||||
if config.word_embed_proj_dim != config.hidden_size:
|
||||
self.project_out = FastLinear.load(
|
||||
config, prefix="model.decoder.project_out", bias=False
|
||||
config, prefix="model.decoder.project_out", weights=weights, bias=False
|
||||
)
|
||||
else:
|
||||
self.project_out = None
|
||||
|
||||
if config.word_embed_proj_dim != config.hidden_size:
|
||||
self.project_in = FastLinear.load(
|
||||
config, prefix="model.decoder.project_in", bias=False
|
||||
config, prefix="model.decoder.project_in", weights=weights, bias=False
|
||||
)
|
||||
else:
|
||||
self.project_in = None
|
||||
|
Loading…
Reference in New Issue
Block a user