gpu_model_runner: Cache is_encoder_decoder from model config (#35099)
Signed-off-by: Patrick Schlangen <pschlan@amd.com>
This commit is contained in:
@@ -1365,7 +1365,7 @@ class ModelConfig:
|
|||||||
|
|
||||||
return diff_sampling_param
|
return diff_sampling_param
|
||||||
|
|
||||||
@property
|
@cached_property
|
||||||
def is_encoder_decoder(self) -> bool:
|
def is_encoder_decoder(self) -> bool:
|
||||||
"""Extract the HF encoder/decoder model flag."""
|
"""Extract the HF encoder/decoder model flag."""
|
||||||
return is_encoder_decoder(self.hf_config)
|
return is_encoder_decoder(self.hf_config)
|
||||||
|
|||||||
Reference in New Issue
Block a user