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

Method load_arch

smallthinker/src/llama-model.cpp:450–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450void llama_model::load_arch(llama_model_loader & ml) {
451 arch = ml.get_arch();
452 if (arch == LLM_ARCH_UNKNOWN) {
453 throw std::runtime_error("unknown model architecture: '" + ml.get_arch_name() + "'");
454 }
455}
456
457void llama_model::load_hparams(llama_model_loader & ml) {
458 const gguf_context * ctx = ml.meta.get();

Callers 2

llama_model_loadFunction · 0.80

Calls 2

get_archMethod · 0.45
get_arch_nameMethod · 0.45

Tested by

no test coverage detected