MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llm_load_arch

Function llm_load_arch

llama.cpp:2274–2279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2272}
2273
2274static void llm_load_arch(llama_model_loader & ml, llama_model & model) {
2275 model.arch = ml.get_arch();
2276 if (model.arch == LLM_ARCH_UNKNOWN) {
2277 throw std::runtime_error("unknown model architecture: '" + ml.get_arch_name() + "'");
2278 }
2279}
2280
2281static void llm_load_hparams(
2282 llama_model_loader & ml,

Callers 2

llama_model_loadFunction · 0.85

Calls 2

get_archMethod · 0.45
get_arch_nameMethod · 0.45

Tested by

no test coverage detected