| 867 | } |
| 868 | |
| 869 | static 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 | |
| 883 | std::string common_speculative_type_name_str() { |
| 884 | std::string result; |
no outgoing calls
no test coverage detected