mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-05 20:19:51 +00:00
None for load config
This commit is contained in:
parent
1f85db3d73
commit
b9f0819a86
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue