Skip to content

Commit 0f2d2ee

Browse files
Update config_utils.py
1 parent 0f3630d commit 0f2d2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/utils/config_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_hidden_size(model_path: str):
2121
except:
2222
# for some multimodal model
2323
try:
24-
hidden_size = config_json.get("llm_config", {}).get("hidden_size")
24+
hidden_size = config_json["llm_config"]["hidden_size"]
2525
except:
2626
hidden_size = config_json.get("text_config", {}).get("hidden_size")
2727
if not isinstance(hidden_size, int):

0 commit comments

Comments
 (0)