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

Class Gemma3_Text_Only

src/include/AutoModel/modeling_gemma3_text.hpp:26–40  ·  view source on GitHub ↗

Gemma3_Text_Only **************/

Source from the content-addressed store, hash-verified

24
25/************ Gemma3_Text_Only **************/
26class Gemma3_Text_Only : public AutoModel {
27private:
28
29 void setup_tokenizer(std::string model_path);
30
31public:
32 Gemma3_Text_Only(xrt::device* npu_device_inst);
33
34 void load_model(std::string model_path, json model_inf, int default_context_length = -1, bool enable_preemption = false) override;
35 //void toggle_enable_think() override;
36 bool insert(chat_meta_info_t& meta_info, lm_uniform_input_t& input, std::function<bool()> is_cancelled = [] { return false; }) override;
37 std::string generate(chat_meta_info_t& meta_info, int length_limit, std::ostream& os, std::function<bool()> is_cancelled = [] { return false; }) override;
38 std::string generate_with_prompt(chat_meta_info_t& meta_info, lm_uniform_input_t& input, int length_limit, std::ostream& os = std::cout) override;
39 std::string apply_chat_template(nlohmann::ordered_json& messages, nlohmann::ordered_json tools = nlohmann::ordered_json::object()) override;
40};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected