mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-21 22:35:48 +00:00
* convert: add @ModelBase.example * add docs * add more variants * BailingMoeV3ForCausalLM * rm pocket-tts
15 lines
453 B
Python
15 lines
453 B
Python
from __future__ import annotations
|
|
|
|
from .base import ModelBase, TextModel, gguf
|
|
|
|
|
|
@ModelBase.register("MaincoderForCausalLM")
|
|
@ModelBase.example("Maincode/Maincoder-1B")
|
|
class MaincoderModel(TextModel):
|
|
model_arch = gguf.MODEL_ARCH.MAINCODER
|
|
|
|
def set_gguf_parameters(self):
|
|
super().set_gguf_parameters()
|
|
|
|
if (head_dim := self.hparams.get("head_dim")) is not None:
|
|
self.gguf_writer.add_rope_dimension_count(head_dim)
|