char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
890f1a27e
char/aliceai-t5-moe
1#pragma once 2 3#include "input_model.h" 4#include "node_context.h" 5 6namespace ov { 7namespace frontend { 8namespace ggml { 9 10class TranslateSession { 11public : 12TranslateSession (const frontend ::InputModel ::Ptr & input_model , 13const std ::unordered_map < std ::string ,CreatorFunction > & translator_map , 14bool naive = false); 15 16std ::shared_ptr < Model > get_converted_model (); 17std ::shared_ptr < Model > translate_graph (const frontend ::InputModel ::Ptr & input_model ); 18 19private : 20std ::shared_ptr < Model > apply_transformations (std ::shared_ptr < Model > model ); 21const frontend ::InputModel ::Ptr m_input_model ; 22const std ::unordered_map < std ::string ,CreatorFunction > & m_translator_map ; 23std ::shared_ptr < Model > m_ov_model ; 24bool m_naive ; 25}; 26 27}// namespace ggml 28}// namespace frontend 29}// namespace ov