Gemma3_Text_Only **************/
| 24 | |
| 25 | /************ Gemma3_Text_Only **************/ |
| 26 | class Gemma3_Text_Only : public AutoModel { |
| 27 | private: |
| 28 | |
| 29 | void setup_tokenizer(std::string model_path); |
| 30 | |
| 31 | public: |
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected