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

Method load_from_cache

subprojects/llama.cpp/common/preset.cpp:362–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362common_presets common_preset_context::load_from_cache() const {
363 common_presets out;
364
365 auto cached_models = common_list_cached_models();
366 for (const auto & model : cached_models) {
367 common_preset preset;
368 preset.name = model.to_string();
369 preset.set_option(*this, "LLAMA_ARG_HF_REPO", model.to_string());
370 out[preset.name] = preset;
371 }
372
373 return out;
374}
375
376struct local_model {
377 std::string name;

Callers 1

load_modelsMethod · 0.80

Calls 3

set_optionMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected