convert-hf : make model class definitions self-contained (#5825)
This commit is contained in:
parent
bbde6eb256
commit
c7a0ad8ec9
2 changed files with 101 additions and 105 deletions
|
@ -362,7 +362,7 @@ class GGUFWriter:
|
|||
self.add_bool(Keys.Attention.CAUSAL.format(arch=self.arch), value)
|
||||
|
||||
def add_pooling_type(self, value: PoolingType) -> None:
|
||||
self.add_uint32(Keys.LLM.POOLING_TYPE.format(arch=self.arch), value)
|
||||
self.add_uint32(Keys.LLM.POOLING_TYPE.format(arch=self.arch), value.value)
|
||||
|
||||
def add_rope_dimension_count(self, count: int) -> None:
|
||||
self.add_uint32(Keys.Rope.DIMENSION_COUNT.format(arch=self.arch), count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue