Merge pull request #52 from UnicornChan/fix-bug-load-config

Fix: None for load config
This commit is contained in:
UnicornChan 2024-08-22 23:54:17 +08:00 committed by GitHub
commit 0f054fe4ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ class KTransformersInterface(TransformersInterface):
with torch.device("meta"):
self.model=custom_models[config.architectures[0]](config)
if default_args.optimize_config_path is not None:
if default_args.optimize_config_path is None:
optimize_rule_path = default_optimize_rules[config.architectures[0]]
else:
optimize_rule_path = args.optimize_config_path