MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / create_state_ngram_cache

Function create_state_ngram_cache

common/speculative.cpp:869–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869static common_speculative_state_ngram_cache create_state_ngram_cache(
870 const std::string & path_static, const std::string & path_dynamic,
871 const common_speculative_config & config) {
872 uint16_t n_draft = 8; // TODO get from config?
873
874 // TODO bool param in common/common.h to set save_static/save_dynamic?
875 bool save_static = false;
876 bool save_dynamic = false;
877
878 common_speculative_state_ngram_cache state(config.type, path_static, path_dynamic, n_draft, save_static, save_dynamic);
879
880 return state;
881}
882
883std::string common_speculative_type_name_str() {
884 std::string result;

Callers 1

common_speculative_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected