MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / generate

Method generate

src/common/AutoModel/modeling_lfm2.cpp:86–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86std::string LFM2::generate(chat_meta_info_t& meta_info, int length_limit, std::ostream& os, std::function<bool()> is_cancelled) {
87 return this->_shared_generate(meta_info, length_limit, os, is_cancelled);
88}
89
90std::string LFM2::generate_with_prompt(chat_meta_info_t& meta_info, lm_uniform_input_t& input, int length_limit, std::ostream& os) {
91 if (!this->insert(meta_info, input)) {

Callers 1

generate_with_promptMethod · 0.95

Calls 14

cast_to_usFunction · 0.85
_shared_generateMethod · 0.80
push_backMethod · 0.80
forwardMethod · 0.80
run_time_decoderMethod · 0.80
sampleMethod · 0.80
clearMethod · 0.80
is_normal_tokenMethod · 0.80
is_eosMethod · 0.80
get_total_timeMethod · 0.80
reserveMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected