MCPcopy Create free account
hub / github.com/microsoft/BitNet / to_ggml

Method to_ggml

utils/convert.py:796–797  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

794 return UnquantizedTensor(self.ndarray.astype(dtype), self.i2_scale)
795
796 def to_ggml(self) -> Self:
797 return self
798
799 def permute_part(self, n_part: int, n_head: int, n_head_kv: int) -> UnquantizedTensor:
800 r = self.ndarray.shape[0] // 3

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected