[Model] Fix missing maybe_prefix (#42280)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -620,7 +620,7 @@ class GraniteSpeechForConditionalGeneration(
|
||||
self.encoder = GraniteSpeechCTCEncoder(
|
||||
config=config.encoder_config,
|
||||
quant_config=quant_config,
|
||||
prefix=f"{prefix}.encoder",
|
||||
prefix=maybe_prefix(prefix, "encoder"),
|
||||
)
|
||||
|
||||
# Blip2 QFormer
|
||||
@@ -628,7 +628,7 @@ class GraniteSpeechForConditionalGeneration(
|
||||
config=config,
|
||||
quant_config=quant_config,
|
||||
cache_config=cache_config,
|
||||
prefix=f"{prefix}.projector",
|
||||
prefix=maybe_prefix(prefix, "projector"),
|
||||
)
|
||||
|
||||
self.make_empty_intermediate_tensors = (
|
||||
|
||||
Reference in New Issue
Block a user