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

Method permute

utils/convert.py:807–808  ·  view source on GitHub ↗
(self, n_head: int, n_head_kv: int)

Source from the content-addressed store, hash-verified

805 return UnquantizedTensor(self.ndarray[r * n_part : r * n_part + r, ...])
806
807 def permute(self, n_head: int, n_head_kv: int) -> UnquantizedTensor:
808 return UnquantizedTensor(permute(self.ndarray, n_head, n_head_kv))
809
810
811def load_unquantized(lazy_tensor: LazyTensor, expected_dtype: Any = None, convert: bool = False) -> NDArray:

Callers

nothing calls this directly

Calls 2

UnquantizedTensorClass · 0.70
permuteFunction · 0.70

Tested by

no test coverage detected