char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
fa88ae936
char/aliceai-t5-moe
1from __future__import annotations 2 3from .base import ModelBase ,TextModel ,gguf 4 5 6@ ModelBase . register ( "MaincoderForCausalLM" ) 7@ ModelBase . example ( "Maincode/Maincoder-1B" ) 8class MaincoderModel (TextModel ): 9model_arch = gguf .MODEL_ARCH .MAINCODER 10 11def set_gguf_parameters (self ): 12super ().set_gguf_parameters () 13 14if (head_dim := self .hparams .get ("head_dim" ))is not None : 15self .gguf_writer .add_rope_dimension_count (head_dim )