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

Method get_weight

subprojects/llama.cpp/src/llama-adapter.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136// lora
137
138llama_adapter_lora_weight * llama_adapter_lora::get_weight(ggml_tensor * w) {
139 const std::string name(w->name);
140
141 const auto pos = ab_map.find(name);
142 if (pos != ab_map.end()) {
143 return &pos->second;
144 }
145
146 return nullptr;
147}
148
149static void llama_adapter_lora_init_impl(llama_model & model, const char * path_lora, llama_adapter_lora & adapter) {
150 LLAMA_LOG_INFO("%s: loading lora adapter from '%s' ...\n", __func__, path_lora);

Callers 3

build_lora_mmMethod · 0.45
build_lora_mm_idMethod · 0.45
build_inp_embdMethod · 0.45

Calls 2

findMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected