MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / load_arch

Method load_arch

subprojects/llama.cpp/src/llama-model.cpp:483–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void llama_model::load_arch(llama_model_loader & ml) {
484 arch = ml.get_arch();
485 if (arch == LLM_ARCH_UNKNOWN) {
486 throw std::runtime_error("unknown model architecture: '" + ml.get_arch_name() + "'");
487 }
488}
489
490void llama_model::load_hparams(llama_model_loader & ml) {
491 const gguf_context * ctx = ml.meta.get();

Callers 2

llama_model_loadFunction · 0.80

Calls 2

get_archMethod · 0.80
get_arch_nameMethod · 0.80

Tested by

no test coverage detected