MCPcopy
hub / github.com/ModelTC/LightLLM / get_config_json

Function get_config_json

lightllm/utils/config_utils.py:11–14  ·  view source on GitHub ↗
(model_path: str)

Source from the content-addressed store, hash-verified

9
10
11def get_config_json(model_path: str):
12 with open(os.path.join(model_path, "config.json"), "r") as file:
13 json_obj = json.load(file)
14 return json_obj
15
16
17def get_hidden_size(model_path: str) -> Optional[int]:

Callers 6

get_hidden_sizeFunction · 0.85
get_eos_token_idsFunction · 0.85
get_model_architecturesFunction · 0.85
get_vocab_sizeFunction · 0.85
get_dtypeFunction · 0.85
get_fixed_kv_lenFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected