Skip to content

Commit

Permalink
fix kernel config json load. (#684)
Browse files Browse the repository at this point in the history
Co-authored-by: wangzaijun <[email protected]>
  • Loading branch information
hiworldwzj and wangzaijun authored Dec 25, 2024
1 parent 8b08e1c commit d9305a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightllm/common/kernel_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def get_the_config(cls, params: Dict[str, Any]) -> Optional[dict]:
config_file_path = os.path.join(config_dir_path, json_file_name)

if os.path.exists(config_file_path):
return json.load(config_file_path)
with open(config_file_path, mode="r") as file:
return json.load(file)
else:
logger.warning(
f"can not find config_path {config_file_path} kernel name {cls.kernel_name} use default kernel setting"
Expand Down

0 comments on commit d9305a6

Please sign in to comment.