[BugFix] Pass config_format via try_get_generation_config (#25912)
This commit is contained in:
@@ -1334,11 +1334,13 @@ class ModelConfig:
|
||||
self.hf_config_path or self.model,
|
||||
trust_remote_code=self.trust_remote_code,
|
||||
revision=self.revision,
|
||||
config_format=self.config_format,
|
||||
)
|
||||
else:
|
||||
config = try_get_generation_config(
|
||||
self.generation_config,
|
||||
trust_remote_code=self.trust_remote_code,
|
||||
config_format=self.config_format,
|
||||
)
|
||||
|
||||
if config is None:
|
||||
|
||||
Reference in New Issue
Block a user